問(wèn)題描述
我已經(jīng)為 Windows 7 執(zhí)行了以下步驟
I have performed below steps for 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 oost_1_60_0 oolsuild
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:DestinationFolderin
任何人都可以幫助我下一步做什么,因?yàn)槲覠o(wú)法進(jìn)一步處理
Can anyone please help me in what to do next as I am unable to process further
推薦答案
因?yàn)槟愕默F(xiàn)在是第三個(gè)我如何在 Windows 上構(gòu)建提升?"自從 1.60.0
發(fā)布以來(lái),我在這里看到的問(wèn)題是我個(gè)人的 Windows boost 構(gòu)建說(shuō)明:
Since yours is now the third "How do I build boost on Windows?" question that I've seen since 1.60.0
was released here are my own personal Windows boost build notes:
Windows 不直接支持 boost,所以你可以下載它并把它放在任何你想要的地方.
boost 用戶指南建議使用 boost 的位置創(chuàng)建一個(gè) BOOST_ROOT
環(huán)境變量.
Windows does not directly support boost, so you can download it and put it wherever you want.
The boost user guide recommends creating a BOOST_ROOT
environment variable with the location of boost.
注意:在下面的例子中2>&1 |tee ??_build.txt
是可選的,但保留構(gòu)建日志很有用...
Note: in the following examples 2>&1 | tee ??_build.txt
is optional, but it's useful to keep a build log...
在 Visual Studio 工具命令提示符中:
In a Visual Studio tools Command Prompt:
cd boost_1_xx_0
call bootstrap.bat
對(duì)于靜態(tài)庫(kù):
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
注意:線程必須使用動(dòng)態(tài)鏈接構(gòu)建,參見(jiàn):https://studiofreya.com/2015/05/20/the-simplest-way-of-building-boost-1-58-for-32-bit-and-64-bit-architectures-with-visual-studio/
Note: thread must be built with dynamic linking see: https://studiofreya.com/2015/05/20/the-simplest-way-of-building-boost-1-58-for-32-bit-and-64-bit-architectures-with-visual-studio/
對(duì)于動(dòng)態(tài)線程庫(kù):
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
對(duì)于所有動(dòng)態(tài)庫(kù):
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 構(gòu)建
確保 gcc/mingw 在路徑中,例如:C:QtToolsmingw491_32in
Building for MinGw
Ensure that gcc/mingw is in the path, e.g.: C:QtToolsmingw491_32in
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
開(kāi)始,您可能需要將:bootstrap.bat mingw
更改為 bootstrap.bat gcc
Note: since boost 1.61.0
you may need to change: bootstrap.bat mingw
to bootstrap.bat gcc
這篇關(guān)于Windows 中的 boost_1_60_0 .zip 安裝的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!