简体   繁体   English

未找到 botan 开发包

[英]botan development package not found

0I'm trying to do SFTP in qtcreator (installed in rpi noobs). 0我正在尝试在 qtcreator 中执行 SFTP(安装在 rpi noobs 中)。 I have come across this project https://github.com/sandsmark/QSsh .我遇到过这个项目https://github.com/sandsmark/QSsh While following these steps:在执行以下步骤时:

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)

In the last command I get an error saying "botan development package not found".在最后一个命令中,我收到一条错误消息,提示“找不到 botan 开发包”。 I have also installed botan using the following command.我还使用以下命令安装了 botan。

sudo apt-get install botan

and now botan is present.现在botan出现了。 But I get the same error again and again.但我一次又一次地得到同样的错误。 What I'm missing here.我在这里缺少什么。

You need install builded library.您需要安装构建的库。 Run "make install" after you build qssh project.构建 qssh 项目后运行“make install”。 A folder with the library will be created.将创建一个包含库的文件夹。 (For me it was a C:/mingw/lib/libbotan-2.a). (对我来说,它是一个 C:/mingw/lib/libbotan-2.a)。 Add installed botan-2 library into "qssh" project in Qt (right click on project folder -> "Add Library" -> "External" and choose a file "libbotan-2.a".将已安装的 botan-2 库添加到 Qt 中的“qssh”项目中(右键单击项目文件夹 ->“添加库”->“外部”并选择一个文件“libbotan-2.a”。

In my case, Qt added the following commands in ssh.pro file LIBS += -L$$PWD/../../../../../mingw/lib/ -lbotan-2就我而言,Qt 在 ssh.pro 文件 LIBS += -L$$PWD/../../../../../mingw/lib/ -lbotan-2 中添加了以下命令

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

Now Qt project can be correct build... I hope my solution will help!现在Qt项目可以正确构建...我希望我的解决方案会有所帮助!

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

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