gpt4 book ai didi

c++ - boost_1_60_0 .zip 在 Windows 中的安装

转载 作者:可可西里 更新时间:2023-11-01 14:41:10 27 4
gpt4 key购买 nike

我已经为 Windows 7 执行了以下步骤

Boost link http://www.boost.org/doc/libs/1_49_0/libs/python/doc/

1. Downloaded boost_1_60_0 .zip

2. cd \boost_1_60_0\tools\build

3. Ran below command in command prompt

bootstrap.bat gcc
bjam --toolset=gcc "--prefix=C:\DestinationFolder" install


Now i have b2.exe & bjam.exe in C:\DestinationFolder\bin

谁能帮我下一步做什么,因为我无法进一步处理

最佳答案

既然你的现在是第三个“我如何在 Windows 上构建 boost ?”自从 1.60.0 发布以来我看到的问题是我个人的 Windows boost 构建说明:

Windows不直接支持boost,所以你可以下载它放在任何你想放的地方。
boost 用户指南建议使用 boost 的位置创建一个 BOOST_ROOT 环境变量。

注意:在下面的例子中2>&1 | tee ??_build.txt 是可选的,但保留构建日志很有用...

为 Visual Studio 2015 构建

在 Visual Studio 工具命令提示符中:

cd boost_1_xx_0
call bootstrap.bat

对于静态库:

b2 -j8 toolset=msvc-14.0 address-model=64 architecture=x86 link=static threading=multi runtime-link=shared --build-type=complete stage
2>&1 | tee msvc_static_build.txt

注意:必须使用动态链接构建线程,请参阅:https://studiofreya.com/2015/05/20/the-simplest-way-of-building-boost-1-58-for-32-bit-and-64-bit-architectures-with-visual-studio/

对于动态线程库:

b2 -j8 toolset=msvc-14.0 address-model=64 architecture=x86 link=shared threading=multi runtime-link=shared --with-thread --build-type=minimal stage
2>&1 | tee msvc_thread_build.txt

对于所有动态库:

b2 -j8 toolset=msvc-14.0 address-model=64 architecture=x86 link=shared threading=multi runtime-link=shared --build-type=complete stage
2>&1 | tee msvc_dynamic_build.txt

为 MinGw 构建

确保gcc/mingw在路径中,例如:C:\Qt\Tools\mingw491_32\bin

cd boost_1_xx_0
bootstrap.bat mingw

b2 toolset=gcc link=shared threading=multi --build-type=complete stage
2>&1 | tee mingw_build.txt

注意:由于 boost 1.61.0,您可能需要将:bootstrap.bat mingw 更改为 bootstrap.bat gcc

关于c++ - boost_1_60_0 .zip 在 Windows 中的安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35217511/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com