- Unpack:
% tar -xvf boost_1_43_0.tar
% cd boost_1_43_0
- Build the project-config.jam bootstrap file:
% ./bootstrap.sh --prefix=/util/boost-1.43.0 --with-python-root=/util/python
- In the project-config.jam file you just created, edit the 'using python' clause. Note: Only configure 'using python' in one bootstrap file (site-config.jam, user-config.jam, or project-config.jam), or you'll get ambiguity errors.
# Python configuration
# using python : 2.6 : /util/python ;
using python : 2.6 : /util/python/bin/python : /util/python/include/python2.6 : /util/python/lib ;
# Message Passing Interface (MPI) configuration
using mpi ;
- Add a flag to gcc so buggy (?) gcc v. 4.1.2 won't scuttle the pycuda build:
% vi tools/build/v2/user-config.jam
Add line:
# Configure specific gcc version, giving alternative name to use.
# using gcc : 3.2 : g++-3.2 ;
using gcc : 4.1.2 : gcc : cxxflags='-DBOOST_PYTHON_NO_PY_SIGNATURES' ;
- Test embedding and extending functionality. I think this builds sources, too.
vi boost/type_traits/detail/cv_traits_impl.hpp
Add this line:
#define BOOST_PYTHON_NO_PY_SIGNATURES
Then run:
% cd libs/python/example/quickstart
% sudo /src/util/boost_1_43_0/bjam --toolset=gcc --verbose-test test
- Build boost:
% cd /src/util/boost_1_43_0
% sudo ./bjam -a install