Reputation:
I have compiled and tried to link the cryptopp library to my .pro file but I get this error:
error: 'cryptopp/aes.h' file not found
#include <cryptopp/aes.h>
Below is my .pro file:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Journal
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
LIBS += -L/usr/local/lib/libcryptopp.a -lcryptopp
CONFIG += console c++11
SOURCES += \
main.cpp \
mainwindow.cpp \
encrypt.cpp
HEADERS += \
mainwindow.h \
filesio.h \
encrypt.h
FORMS += \
mainwindow.ui
How could I resolve this error? Thanks
Upvotes: 0
Views: 832
Reputation: 164
As suggested by vahancho, you need to add below line in you qmake project file.
INCLUDEPATH += path to parent directory of 'cryptopp'
Upvotes: 1