Boost logo

Boost :

Subject: [boost] Unable to build boost python library in 1.46.1
From: Richard Hadsell (hadsell_at_[hidden])
Date: 2011-03-24 18:33:43


I am trying to build the Boost 1.46.1 libraries on a Fedora 7 Linux
system with the default g++ 4.1.2 and Python 2.5. The compilations do
not find the python headers, producing a zillion error messages starting
with one like this:

In file included from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/converter/registrations.hpp:8,
                 from libs/python/src/object/function_doc_signature.cpp:9:
./boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory

The reported compilation command looks like this:

"/usr/bin/g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -fno-strict-aliasing -fno-tree-ccp -march=opteron -pthread -fPIC -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." -c -o "bin.v2/libs/python/build/gcc-4.1.2/release/address-model-64/instruction-set-opteron/threading-multi/object/function_doc_signature.o" "libs/python/src/object/function_doc_signature.cpp"

I tried to follow the latest Getting Started instructions, which changed
a bit from the last version I built (1.44.0) to build bjam:

cd tools/build/v2
bootstrap.sh
bjam install --prefix=../../..
cd ../../..
bin/bjam --user-config=user-config.LINUX_AMDF7 threading=multi instruction-set=opteron address-model=64 variant=release link=static,shared --stagedir=stageF7 stage

My user-config.LINUX_AMDF7 file contains this:

using gcc : 4.1.2 : /usr/bin/g++ : <compileflags>"-fPIC -fno-strict-aliasing -fno-tree-ccp" <linkflags>"-fPIC -fno-strict-aliasing -fno-tree-ccp" ;
using python : 2.5 : /usr ;

Can someone explain why the compilations are not getting the correct
include path for Python (/usr/include/python2.5/)?

BTW, the Getting Started page
http://www.boost.org/doc/libs/1_46_1/more/getting_started/unix-variants.html
in section 5.2.1 step 2 tells me to "Run bootstrap.bat".

-- 
Dick Hadsell			203-992-6320  Fax: 203-992-6001
Reply-to:			hadsell_at_[hidden]
Blue Sky Studios                http://www.blueskystudios.com
1 American Lane, Greenwich, CT 06831-2560

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk