Tuesday August 14, 2007 Here is the summary of comments to my previous post and results of my experiments.
First of all to build Boost you need bjam. If you work on Linux take pre-compiled binaries of bjam here. If you target OS is Solaris look at my instruction how to build bjam.
If you need to build Boost for 32-bit architecture just untar Boost archive, go to boost_1_34_1 directories and type bjam toolset=sun stdlib=sun-stlport stage. That is all you need.
If you want to build Boost for 64-bit architecture the life became is a bit more complicated. You have to fix tools/build/v2/tools/sun.jam. Add following lines to this file just before comment line # Declare generators.
flags sun OPTIONS <architecture>/<address-model>32 : -m32 ; flags sun OPTIONS <architecture>/<address-model>64 : -m64 ; flags sun OPTIONS <link>shared : -Kpic ;
After that you can type bjam toolset=sun stdlib=sun-stlport address-model=64 stage to build Boost. Unfortunately Python Boost library shows an error during compilation. The error comes from python2.5/pyport.h so maybe the reason of this error my own broken Python configuration.
I do not have a time to fix configuration error in the Boost library so if somebody file a bug or/and a patch to Boost bug track it would be really nice.
And the last point. I recommend to read Boost Getting Started article. It has been rewritten since Boost 1.33.
Permalink
Comments [5]