Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between b2 and ./bootstrap.sh when building python

Tags:

c++

boost

bjam

b2

Sorry if this has already been asked? I've build boost from source but have always been confused about the build tools. Which tool should be used when building the boost libraries from scratch. To me it seems that bootstrap.sh is used to create the bjam executable and then bjam should be used to do the actual build. However, I've noticed that you can pass lots of parameters to bootstrap.sh such as the toolset (compiler) to use and the libraries to build, etc...and launch the build with bootstrap.sh

Also, there are at least three different ways of starting a build: ./bootstrap.sh, bjam, b2

Could someone summarize the purpose of each as the online docs don't seem to explain this

Thanks!

Anwar

like image 553
BigONotation Avatar asked May 15 '14 15:05

BigONotation


1 Answers

b2 is just the second version of bjam. The bootstrap.sh script just builds the boost jam executable from the source code contained in the boost source, creates project-config.jam and executes the executable. You can see the shell script here

like image 124
Matt Clarkson Avatar answered Sep 20 '22 02:09

Matt Clarkson