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
库添加到Qt
的qssh
项目中(右键单击项目文件夹->Add Library
→External
,选择文件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项目可以正确构建…我希望我的解决方案会有所帮助!