Building rc_1_34_0 (w/python)
Greetings, I have downloaded the latest RC from cvs and am trying to build on Linux and Windows without success. Could someone nudge me in the right direction? On Linux (SuSE 10.1 x86-64), I've done this: cd ~/downloads/boost/rc_1_34_0_nearing_release cvs -d:pserver:anonymous@boost.cvs.sf.net:/cvsroot/boost login cvs -z3 -d:pserver:anonymous@boost.cvs.sf.net:/cvsroot/boost co -rRC_1_34_0 -P boost cd boost cd tools/jam/src/ . ./build.sh cd ../../../ I then created a user-config.jam file that looks like this: # Compiler configuration using gcc : : : <compileflags>-DBOOST_SIGNALS_NAMESPACE=tb_signals ; # Python configuration using python : 2.4 : /usr ; And then ran:
./tools/jam/src/bin.linux/bjam --prefix=/opt/boost --build-dir=../build_dir stage Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (don't panic: this is a strictly optional feature). warning: Python location is not configured warning: the Boost.Python library won't be built warning: No toolsets are configured. warning: Configuring default toolset "gcc". warning: If the default is wrong, you may not be able to build C++ programs. warning: Use the "--toolset=xxxxx" option to override our guess. warning: For more configuration options, please consult warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html <I interrupted build here>
Why is python not found? I've used the following 'using python' lines in user-config.jam without success: using python ; using python : 2.4 ; using python : 2.4 : /usr ; using python : 2.4 : /usr/bin/python ; Similar steps on Windows (VS.net 2003), user-config.jam looks like this: # Compiler configuration using msvc : : : <compileflags>-DBOOST_SIGNALS_NAMESPACE=tb_signals ; # Python configuration using python : 2.5 : c:\python25 ; I've also tried: using python : 2.5 : c:\python25\python.exe ; Build command: C:\...>tools\jam\src\bin.ntx86\bjam.exe --build-dir=..\boost_build --prefix=c:\Boost Warning: "using python" expects a two part (major, minor) version number; got Python25 instead warning: No working Python interpreter found. warning: falling back to "python" Warning: "using python" expects a two part (major, minor) version number; got 0 instead Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (don't panic: this is a strictly optional feature). ^C I'm sure there is some trivial thing I'm not doing correctly, however I'm not able to see it in the getting started pages. Is there some building_boost_for_non_bjam_gurus.html file that I'm not seeing? Thanks, -K
Is your user-config.jam in your home directory? if not, it might not be found. Dave Riedel Kelly Burkhart wrote:
Greetings, I have downloaded the latest RC from cvs and am trying to build on Linux and Windows without success. Could someone nudge me in the right direction?
[snip]
Thanks,
-K
on Wed Mar 28 2007, "Kelly Burkhart"
Greetings, I have downloaded the latest RC from cvs and am trying to build on Linux and Windows without success. Could someone nudge me in the right direction?
On Linux (SuSE 10.1 x86-64), I've done this:
cd ~/downloads/boost/rc_1_34_0_nearing_release cvs -d:pserver:anonymous@boost.cvs.sf.net:/cvsroot/boost login cvs -z3 -d:pserver:anonymous@boost.cvs.sf.net:/cvsroot/boost co -rRC_1_34_0 -P boost cd boost cd tools/jam/src/ . ./build.sh cd ../../../
I then created a user-config.jam file that looks like this:
# Compiler configuration using gcc : : : <compileflags>-DBOOST_SIGNALS_NAMESPACE=tb_signals ;
# Python configuration using python : 2.4 : /usr ;
Looks OK, but it's better to pass a command that invokes your python interpreter in the 3rd argument instead of /usr.
Why is python not found? I've used the following 'using python' lines in user-config.jam without success:
using python ; using python : 2.4 ; using python : 2.4 : /usr ; using python : 2.4 : /usr/bin/python ;
Pass --debug-configuration to bjam and look at the [python-cfg] lines.
Similar steps on Windows (VS.net 2003), user-config.jam looks like this:
# Compiler configuration using msvc : : : <compileflags>-DBOOST_SIGNALS_NAMESPACE=tb_signals ;
# Python configuration using python : 2.5 : c:\python25 ;
You need to escape your backslashes.
I've also tried:
using python : 2.5 : c:\python25\python.exe ;
Build command:
C:\...>tools\jam\src\bin.ntx86\bjam.exe --build-dir=..\boost_build --prefix=c:\Boost Warning: "using python" expects a two part (major, minor) version number; got Python25 instead
This makes it look like you didn't accurately copy your "using python" line above.
warning: No working Python interpreter found. warning: falling back to "python" Warning: "using python" expects a two part (major, minor) version number; got 0 instead Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (don't panic: this is a strictly optional feature). ^C
I'm sure there is some trivial thing I'm not doing correctly, however I'm not able to see it in the getting started pages. Is there some building_boost_for_non_bjam_gurus.html file that I'm not seeing?
The instructions for building Boost.Python with BBv2 are still being written. Thanks for your patience. -- Dave Abrahams Boost Consulting www.boost-consulting.com Don't Miss BoostCon 2007! ==> http://www.boostcon.com
On 3/28/07, David Abrahams
The instructions for building Boost.Python with BBv2 are still being written. Thanks for your patience.
David, Thanks for the reply, the primary problem was that I did not have user-config.jam in my home directory. I was in some sense wearing blinders. After years of building and installing like this: ./configure make (become root) make install It didn't occur to me that I needed a configuration file in some directory other than where I issued the bjam command. This could have been caused by my reluctance to dig through the substantial boost build documentation to use the tool one time. Or my thick skull. Is there some file that bjam looks for in the source directory in which I could have put the contents of user-config.jam? Even with the knowledge that HOME is the proper location for the file, it is still not nice in this scenario: - download boost - build bjam - create user-config.jam in home directory - bjam ... stage - check that build succeeded - become root - copy the same user-config.jam to root's home directory - bjam ... install - clean up user-config.jam files so that they don't surprise me 2 years from now when I try to remember this process to build 1.35. Hope my experience assists you in improving the build documentation. Thanks again, -K
on Thu Mar 29 2007, "Kelly Burkhart"
On 3/28/07, David Abrahams
wrote: <snip> The instructions for building Boost.Python with BBv2 are still being written. Thanks for your patience.
David,
Thanks for the reply, the primary problem was that I did not have user-config.jam in my home directory. I was in some sense wearing blinders. After years of building and installing like this:
./configure make (become root) make install
It didn't occur to me that I needed a configuration file in some directory other than where I issued the bjam command. This could have been caused by my reluctance to dig through the substantial boost build documentation to use the tool one time. Or my thick skull.
We do have a configure script in the Boost root directory, if you're more comfortable with that.
Is there some file that bjam looks for in the source directory in which I could have put the contents of user-config.jam? Even with the knowledge that HOME is the proper location for the file, it is still not nice in this scenario:
- download boost - build bjam - create user-config.jam in home directory - bjam ... stage - check that build succeeded - become root - copy the same user-config.jam to root's home directory - bjam ... install - clean up user-config.jam files so that they don't surprise me 2 years from now when I try to remember this process to build 1.35.
Yep, agreed. I would use sudo. But you can set BOOST_BIULD_PATH in your environment to point to the directory where your user-config.jam resides.
Hope my experience assists you in improving the build documentation.
I hate to say this, but that's someone else's job... (even if I might end up being forced to do it). The Getting Started Guide is enough of a challenge for me. -- Dave Abrahams Boost Consulting www.boost-consulting.com Don't Miss BoostCon 2007! ==> http://www.boostcon.com
participants (3)
-
David Abrahams
-
David P. Riedel
-
Kelly Burkhart