繁体   English   中英

未找到 botan 开发包

[英]botan development package not found

0我正在尝试在 qtcreator 中执行 SFTP(安装在 rpi noobs 中)。 我遇到过这个项目https://github.com/sandsmark/QSsh 在执行以下步骤时:

git clone https://github.com/sandsmark/QSsh.git
cd QSsh
mkdir build
cd build
qmake ../qssh.pro
make (or mingw32-make or nmake depending on your platform)

在最后一个命令中,我收到一条错误消息,提示“找不到 botan 开发包”。 我还使用以下命令安装了 botan。

sudo apt-get install botan

现在botan出现了。 但我一次又一次地得到同样的错误。 我在这里缺少什么。

您需要安装构建的库。 构建 qssh 项目后运行“make install”。 将创建一个包含库的文件夹。 (对我来说,它是一个 C:/mingw/lib/libbotan-2.a)。 将已安装的 botan-2 库添加到 Qt 中的“qssh”项目中(右键单击项目文件夹 ->“添加库”->“外部”并选择一个文件“libbotan-2.a”。

就我而言,Qt 在 ssh.pro 文件 LIBS += -L$$PWD/../../../../../mingw/lib/ -lbotan-2 中添加了以下命令

INCLUDEPATH += $$PWD/../../../../../mingw/include/botan-2 DEPENDPATH += $$PWD/../../../../.. /mingw/include/botan-2

现在Qt项目可以正确构建...我希望我的解决方案会有所帮助!

暂无
暂无

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

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