23

BoostC++ライブラリのコンパイルを開始しました。私が発行した次のコマンドを使用すると、ブーストライブラリ全体が構築されますが、これには時間がかかり、私の必要性には必要ありません。

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、ライブラリをビルドするために実行しました。

現時点で必要なのは、構築する「シグナル」モジュールだけです。

これらの特定のライブラリのみをコンパイルおよびビルドするには、ブートストラップで作成された実行可能ファイルにどのスイッチコマンドを提供する必要がありますか?

4

1 に答える 1

31

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、XプロセスでBOOSTを並列にコンパイルすることもできます。

于 2012-04-05T07:37:38.157 に答える