Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build boost required modules only?

Tags:

I just started compiling boost C++ libraries. With the following commands I issued it is building whole of the boost libraries, which is time consuming, and is not necessary for my need.

Just unpacked the boost_1_49_0.7z archive and from Visual Studio 2010 command line tool I ran bootstrap.bat and it created the b2 executable.

Using this executable I ran b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage to build the libraries.

At this moment all I need is the "signals" module to be built.

What switch commands need to be supplied to the bootstrap created executable to compile and build only those specific libraries?

like image 874
Ashwin Avatar asked Apr 05 '12 03:04

Ashwin


1 Answers

b2.exe --help outputs the following.

--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.

Also is possible to use the -jX option to compile BOOST in X processes in parallel.

like image 125
megabyte1024 Avatar answered Sep 23 '22 04:09

megabyte1024