且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带有Boost库的CMake Windows 10库未正确找到

更新时间:2022-06-03 18:03:16

好吧,我在阅读了互联网上很多很多页面之后终于找到了解决方案.

Ok finally i've found a solution after reading many, many and many more pages on the internet.

解决方案非常简单.在下载boost软件包并安装(或从源代码构建)之后,您只需要以下两个部分:

The solution is really simple. After downloading the boost package and installing it (or building from source) you just need the following two parts:

  • 打开您的CMD(cmd.exe)
  • 切换到boost的安装目录(例如C:\ local \ boost_1_58_0)

只需运行以下命令:

bootstrap.bat
b2 link=static runtime-link=static release stage

这将创建所有静态库,并使它可用于cmake.

This will create all librarys static and makes it useable for cmake.

此解决方案对我有用,并使我能够构建所需的软件包.

This solution works for me and made me able to build the needed package.

感谢所有帮手