简体   繁体   English

使用Qt5和Crypto ++时找不到标题

[英]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: 我已经编译并尝试将cryptopp库链接到我的.pro文件,但是出现此错误:

error: 'cryptopp/aes.h' file not found
#include <cryptopp/aes.h>

Below is my .pro file: 以下是我的.pro文件:

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. 根据vahancho的建议,您需要在qmake项目文件中添加以下行。

INCLUDEPATH += path to parent directory of 'cryptopp' INCLUDEPATH + ='cryptopp'的父目录的路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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