简体   繁体   中英

Headers not found when using Qt5 and Crypto++

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

As suggested by vahancho, you need to add below line in you qmake project file.

INCLUDEPATH += path to parent directory of 'cryptopp'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM