embed python in C++

David Konerding dek at cgl.ucsf.edu
Mon Aug 20 20:37:27 CEST 2001

On Mon, 20 Aug 2001 16:15:50 +0200, Alex Martelli <aleax at aleax.it> wrote:
> "wkuang" <wkuang at usc.edu> wrote in message
> news:Pine.GSO.4.21.0108101436070.18685-100000 at aludra.usc.edu...
>> Is there anyone know how to install boost.python. The website said most
>> boost libary are implemented entirely within their header files, but the
>> makefile for linux have libboost_python.a, so I assume boost.python is one
>> of the exception. Basically, I havenot been able to run a single example
>> successfully. Any idea? Thanks.
>> I am using linux 7.1 with KCC 4.0e, gcc2.96 is kind of ok.
> Right.  Go to boost_1_23_0\libs\python\build where you've unpacked
> the sources and you'll see a file named linux_gcc.mak.  Run GNU
> make, specifying that file as the makefile, and off you go.

That's not enough.

1) extract boost.

2) make a new directory, preferably not in the boost source tree

3) cp the linux_gcc.mak from boost_1_23_0/libs/python/build to the new

4) edit linux_gcc.mak so the settings for the variables are correct

5) run "make -f linux_gcc.mak softlinks"

6) finally run "make -f linux_gcc.mak" and cross your fingers. 

More information about the Python-list mailing list