I built Boost for VS2013, 64-bit architecture using both b2.exe
and bjam.exe
. According to Boost documentation, b2
must be used over bjam
. The differences I notice are:
Also I mentioned different build directory using the build option --build-dir
, but what is the use of this directory? It consists of .obj, .rsp along with respective .dll and .lib files. Can this directory be deleted?
Here are the commands I used to build Boost:
b2:
b2 toolset=msvc-12.0 --build-type=complete architecture=x86 address-model=32 install --build-dir=<build-dir> stage --stagedir=<stage-dir> -j2
bjam:
bjam stage --stagedir=<stage-dir>
Build, b2 , bjam and Perforce Jam? Boost. Build is the name of the complete build system. The executable that runs it is b2 . That executable is written in C and implements performance-critical algorithms, like traversal of dependency graph and executing commands.
However, this Infrastructure does setup more granular targets (like Boost::signals2 instead of Boost::headers ) and provide the ability to build compile-necessary targets too (like filesystem). That infrastructure does warn in their README that building Boost with CMake does not work yet and is not supported .
b2 and bjam are identical files except for their names. The different results are a consequence of calling them with different arguments.
About the preferred name: calling ./b2 --help
and ./bjam --help
both yield the name b2
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With