help needed building boost_1_34 with v2

Hi I have checked out the latest boost_1_34 RC from svn and am trying to build it for the first time. For various reasons, I have both gcc and Python in 'non-standard' locations on my linux box. For the v1 build system, I used the following command to build the libraries bjam -a --without-wave --without-test --prefix=/usr/local/boost-1.34.0_gcc-4.1.1 --includedir=/usr/local/boost-1.34.0_gcc-4.1.1 "-sTOOLS=gcc" "-sGCC_ROOT_DIRECTORY=/usr/local/gcc-4.1.1" "-sPYTHON_ROOT=/usr/local/python-2.4.4_gcc-4.1.1" "-sPYTHON_VERSION=2.4" stage This doesn't work with v2 build. The getting started help page still seems to have the v1 related information. So my question is: what would be the v2 bjam that corresponds to the v1 version above? Thanks for any help. Dave Riedel

David P. Riedel wrote:
Hi
I have checked out the latest boost_1_34 RC from svn and am trying to build it for the first time. For various reasons, I have both gcc and Python in 'non-standard' locations on my linux box. For the v1 build system, I used the following command to build the libraries
bjam -a --without-wave --without-test --prefix=/usr/local/boost-1.34.0_gcc-4.1.1 --includedir=/usr/local/boost-1.34.0_gcc-4.1.1 "-sTOOLS=gcc" "-sGCC_ROOT_DIRECTORY=/usr/local/gcc-4.1.1" "-sPYTHON_ROOT=/usr/local/python-2.4.4_gcc-4.1.1" "-sPYTHON_VERSION=2.4" stage
This doesn't work with v2 build. The getting started help page still seems to have the v1 related information.
The CVS version of getting started is about V2: http://boost-consulting.com/boost/more/getting_started/index.html
So my question is: what would be the v2 bjam that corresponds to the v1 version above?
bjam -a --without-wave --without-test --prefix=/usr/local/boost-1.34.0_gcc-4.1.1 --includedir=/usr/local/boost-1.34.0_gcc-4.1.1 toolset=gcc on the command line and using gcc : : /usr/local/gcc-4.1.1/bin/g++ ; using python : 2.4 : /usr/local/python-2.4.4_gcc-4.1.1 ; in your user-config.jam HTH, Volodya

Thanks !! Vladimir Prus wrote:
David P. Riedel wrote:
Hi
I have checked out the latest boost_1_34 RC from svn and am trying to build it for the first time. For various reasons, I have both gcc and Python in 'non-standard' locations on my linux box. For the v1 build system, I used the following command to build the libraries
bjam -a --without-wave --without-test --prefix=/usr/local/boost-1.34.0_gcc-4.1.1 --includedir=/usr/local/boost-1.34.0_gcc-4.1.1 "-sTOOLS=gcc" "-sGCC_ROOT_DIRECTORY=/usr/local/gcc-4.1.1" "-sPYTHON_ROOT=/usr/local/python-2.4.4_gcc-4.1.1" "-sPYTHON_VERSION=2.4" stage
This doesn't work with v2 build. The getting started help page still seems to have the v1 related information.
The CVS version of getting started is about V2:
http://boost-consulting.com/boost/more/getting_started/index.html
So my question is: what would be the v2 bjam that corresponds to the v1 version above?
bjam -a --without-wave --without-test --prefix=/usr/local/boost-1.34.0_gcc-4.1.1 --includedir=/usr/local/boost-1.34.0_gcc-4.1.1 toolset=gcc
on the command line and
using gcc : : /usr/local/gcc-4.1.1/bin/g++ ; using python : 2.4 : /usr/local/python-2.4.4_gcc-4.1.1 ;
in your user-config.jam
HTH, Volodya

Hey, As I'm also wondering how to compile Boost 1.34 with STLport 5.1 (and not 5.0.*) support, which toolset should I use ? What I've modified in user-config.jam: using gcc ; using stlport : : /home/torri/local/include/stlport /home/torri/local/lib ; (that's where STLport 5.1 is located) Which toolset must I use ? toolset=gcc-stlport like in v1 ? Also, must the static lib of STLport be available, or only the shared ones are necessary ? Must I launch bjam in tools/build/v2 in order to compile Boost ? or else the top dir is sufficient ? thank you Vincent Torri PS: http://boost-consulting.com/boost/more/getting_started/index.html does not provide any information. Is it normal ? On Tue, 6 Feb 2007, Vladimir Prus wrote:
David P. Riedel wrote:
The CVS version of getting started is about V2:
http://boost-consulting.com/boost/more/getting_started/index.html
So my question is: what would be the v2 bjam that corresponds to the v1 version above?
bjam -a --without-wave --without-test --prefix=/usr/local/boost-1.34.0_gcc-4.1.1 --includedir=/usr/local/boost-1.34.0_gcc-4.1.1 toolset=gcc
on the command line and
using gcc : : /usr/local/gcc-4.1.1/bin/g++ ; using python : 2.4 : /usr/local/python-2.4.4_gcc-4.1.1 ;
in your user-config.jam

Vincent Torri wrote:
Hey,
As I'm also wondering how to compile Boost 1.34 with STLport 5.1 (and not 5.0.*) support, which toolset should I use ?
What I've modified in user-config.jam:
using gcc ; using stlport : : /home/torri/local/include/stlport /home/torri/local/lib ;
(that's where STLport 5.1 is located)
Which toolset must I use ? toolset=gcc-stlport like in v1 ?
You'd use bjam gcc stdlib=stlport
Also, must the static lib of STLport be available, or only the shared ones are necessary ?
Linking to stlport is done by adding -lstlport_<whatever> and -L<path> to linker options. Therefore, whatever flavour gets picked by the linker gets used.
Must I launch bjam in tools/build/v2 in order to compile Boost ? or else the top dir is sufficient ?
When working using RC branch in CVS, running bjam anywhere in boost tree uses Boost.Build V2. - Volodya

On Tue, 6 Feb 2007, Vladimir Prus wrote:
As I'm also wondering how to compile Boost 1.34 with STLport 5.1 (and not 5.0.*) support, which toolset should I use ?
You'd use
bjam gcc stdlib=stlport
I've read in stlport.jam that stdlib=stlport-5.1 would use the version 5.1 of stlport. But I have that error message: error: "5.1" is not a known subfeature value of <stdlib>stlport Is my syntax wrong ? or that (sub ?)feature not yet available ? Can I set the used version of stlport ?
Also, must the static lib of STLport be available, or only the shared ones are necessary ?
Linking to stlport is done by adding -lstlport_<whatever> and -L<path> to linker options. Therefore, whatever flavour gets picked by the linker gets used.
Without specifying any version of stlport, the linking is against libstlport_gcc.a. I've not found in the help of bjam how to specify the linker options. What should I do ? thank you Vincent Torri

Here's what I've since found that seems to work. 1. set up a user-config.jam file in my home directory. 2. add a gcc toolset entry which looks like: using gcc : : /usr/local/gcc-4.1.1/bin/g++ : <linkflags>"-Wl,-rpath -Wl,/usr/local/gcc-4.1.1/lib" ; 3. add a python entry which looks like: using python : 2.4 : /usr/local/python-2.4.4_gcc-4.1.1 ; then, I can issue the following command: bjam -a --without-wave --without-test --prefix=/usr/local/boost-1.34.0_gcc-4.1.1 --includedir=/usr/local/boost-1.34.0_gcc-4.1.1 --toolset=gcc stage This seems to work -- it is using the compiler I want it to and the shared libraries are pointing to the compiler's runtime libraries. The build is still running so I don't know if the code will run but it looks correct so far.... Dave David P. Riedel wrote:
Hi
I have checked out the latest boost_1_34 RC from svn and am trying to build it for the first time. For various reasons, I have both gcc and Python in 'non-standard' locations on my linux box. For the v1 build system, I used the following command to build the libraries
bjam -a --without-wave --without-test --prefix=/usr/local/boost-1.34.0_gcc-4.1.1 --includedir=/usr/local/boost-1.34.0_gcc-4.1.1 "-sTOOLS=gcc" "-sGCC_ROOT_DIRECTORY=/usr/local/gcc-4.1.1" "-sPYTHON_ROOT=/usr/local/python-2.4.4_gcc-4.1.1" "-sPYTHON_VERSION=2.4" stage
This doesn't work with v2 build. The getting started help page still seems to have the v1 related information.
So my question is: what would be the v2 bjam that corresponds to the v1 version above?
Thanks for any help.
Dave Riedel
participants (3)
-
David P. Riedel
-
Vincent Torri
-
Vladimir Prus