使用 MinGW 构建 Boost 1.52 [英] Building Boost 1.52 with MinGW
问题描述
我试图找到一个关于如何使用 MinGW 构建 Boost 1.52 的权威答案.我在互联网上找到了一些归结起来可以像这样构建它的指针:
I am trying to find an authorative answer on how to build Boost 1.52 with MinGW. I found some pointers in the Internet that boil down to build it like so:
cd toolsuildv2engine
build.bat mingw
copy bin.ntx86jam.exe ........
cd ........
bjam --toolset=gcc
由于这些说明可以追溯到 Boost 1.45 并且由于我无法使用 Boost 自己的说明验证这一点,因此我想验证上述步骤是否是构建 Boost 的正确步骤与 MinGW.
Since those instructions date back as far as for Boost 1.45 and since I couldn't verify this with Boost's own instructions I'd like to verify if the steps above are the correct ones to build Boost with MinGW.
我自己尝试了这些步骤,似乎可以构建 Boost,但是我还没有进行广泛的测试(我也没有这样做的概念).
I tried these steps myself and it seemed to build Boost, however I have not yet done extensive testing (nor would I have a concept to do this).
推荐答案
是的,没错.然而,会有一种更简单但相同的方式;bootstrap.bat
自动完成直到 bjam 调用的步骤:
Yes, that is correct. However there would have been a simpler, yet identical way; your steps until the bjam call are automatically done by bootstrap.bat
:
C:oost_1_52_0> bootstrap.bat mingw
Building Boost.Build engine
...
C:oost_1_52_0> b2 toolset=gcc
如果没有明确指定,库将被放置在stagelib
目录中,包含路径为安装根目录.要测试安装,您可以使用 将您的程序链接到 Boost 库.
If not explicitly specified, the libraries will be placed into the stagelib
directory, include path is the installation root. To test the installation, you can use the example from Link Your Program to a Boost Library.
参考:安装、
这篇关于使用 MinGW 构建 Boost 1.52的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!