在 QT Creator 中构建时无法更改 Boost 的版本

问题描述 投票:0回答:1

我正在尝试使用此处的说明构建Fritzinghttps://github.com/fritzing/fritzing-app/wiki/1.-Building-Fritzing

这里: https://siytek.com/build-fritzing-windows/

这里: https://www.youtube.com/watch?v=deyyxNkQPSM

它们基本上是相同的,并且当我在 QT 创建者 11.0.2 中构建或运行它时产生相同的错误

Checking for boost... no
Project MESSAGE: Boost 1.54 has a bug in a function that Fritzing uses, so download or install some other version
Project ERROR: Easiest to copy the Boost library to ..., so that you have .../boost_1_xx_0

我已经按照错误消息的建议进行操作,并将 Boost 库作为其他库的同级库,但仍然出现相同的错误。

我的文件夹结构如下所示: image

我正在使用

  • libgit2-0.28.5
  • boost_1_80_0
  • 来自 github 的 Fritzing 最新版本

如何更改 Boost 的版本?

操作系统: Windows 10

更新

使用 boost 1.81.0 解决了这个问题。然而现在我又遇到了另一个错误。

Project MESSAGE: Using fritzing ngspice detect script.
Project ERROR: ngspice not found in C:/Users/myUser/Desktop/Fritzing/source/ngspice-40

我确实将 ngspice 放入了它建议的文件夹中并且有效。

更新2 我现在遇到了一个新错误: :-1:错误:项目错误:在 C:/include/quazip 中找不到 quazip 包含路径

我下载了 quazip 并在 Qt Creater 的另一个实例中运行它并配置了项目。然后我收到错误消息...

C:\Program Files\cmake-3.18.0-rc2-win64-x64\share\cmake-3.18\Modules\FindPackageHandleStandardArgs.cmake:165: error: Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) C:/Program Files/cmake-3.18.0-rc2-win64-x64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/cmake-3.18.0-rc2-win64-x64/share/cmake-3.18/Modules/FindZLIB.cmake:115 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:141 (find_package)
c++ boost build qt-creator
1个回答
0
投票

您是否解决了该问题并正确安装了Fritzing?但愿如此。我现在陷入了 quazip“无法找到 ZLIB(缺少:ZLIB_LIBRARY ZLIB_INCLUDE_DIR)”

© www.soinside.com 2019 - 2024. All rights reserved.