【问题标题】:botan development package not found没有找到botan开发包
【发布时间】:2021-10-23 14:51:19
【问题描述】:

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。

sudo apt-get install botan

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

【问题讨论】:

  • 尝试安装sudo apt-get install libbotan-2-dev
  • @eyllanesc 我试过了。错误还是一样。 “未找到植物开发包”
  • 我刚刚在 Ubuntu 上进行了测试,如果我安装了我指定的软件包,它就可以工作。我怀疑问题出在您的配置上,您的表述不清楚:我正在尝试在 qtcreator 中进行 SFTP(安装在 rpi noobs 中),您能否提供更多详细信息。

标签: qt sftp botan


【解决方案1】:

您需要安装已构建的库。在构建 botan-2 后运行 make install。 将创建一个包含库的文件夹。 (对我来说是C:/mingw/lib/libbotan-2.a)。 将已安装的botan-2 库添加到Qt 中的qssh 项目中(右键单击项目文件夹-> Add Library -> External 并选择一个文件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 项目... 我希望我的解决方案会有所帮助!

【讨论】:

    猜你喜欢
    • 2019-09-20
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-10
    • 2020-08-13
    相关资源
    最近更新 更多