植物开发包未找到

  • 本文关键字:开发包 qt sftp botan
  • 更新时间 :
  • 英文 :


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 development package not found"。我还使用以下命令安装了botan。

sudo apt-get install botan

,现在botan出现了。但我一次又一次地得到同样的错误。我错过了什么

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

在我的例子中,Qtssh.pro文件

中添加了以下命令
LIBS += -L$$PWD/../../../../../mingw/lib/ -lbotan-2
INCLUDEPATH += $$PWD/../../../../../mingw/include/botan-2
DEPENDPATH += $$PWD/../../../../../mingw/include/botan-2

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

最新更新