如何建立只需要升压模块?(How to build boost required modules o

2019-07-28 19:39发布

我刚开始编译Boost C ++库。 用下面的命令我发出它是建筑整体Boost库,这是耗时的,并且不需要我的需要。

只是解压缩boost_1_49_0.7z归档和Visual Studio 2010 command line tool我跑bootstrap.bat ,它创造了b2的可执行文件。

使用该可执行我跑b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage来构建文库。

这时所有我需要的是“信号”模块来构建。

什么切换命令需要提供创建可执行文件编译和构建也只有这些特定库中的引导?

Answer 1:

b2.exe --help以下输出。

--show-libraries Displays the list of Boost libraries that require build and installation steps, then exit.

--with-<library> Build and install the specified <library> If this option is used, only libraries specified using this option will be built.

也可以使用-jX选项编译BOOST在X过程并行。



文章来源: How to build boost required modules only?