Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-05-18 02:12:59

On Wednesday 17 May 2006 19:45, Michael Krasnyk wrote:
> Hello,
> I have Jamroot file to make a python extension:
> using python ;
> import python ;
> python-extension hello
> : hello.cpp
> : <include>/usr/local/include/boost-1_33_1
> <include>/usr/local/include/python2.4
> <library-path>/usr/local/lib
> <find-shared-library>boost_python-gcc-mt

Hi Michael,
note that the above requirements are only needed if you're linking against
installed Boost.Python. If you have Boost source, the easiest way would be:

 python-extension hello
    : hello.cpp path_to_boost_src/libs/python/build//boost_python

For a start, you can go to boost_src/libs/python/example, edit boost-build.jam
so that it refers to V2, and run "bjam --v2 getting_started1". On my Linux
box, this works fine.

> The first problem is how to specify automatically
> suffixes gcc, mt in the line
> <find-shared-library>boost_python-gcc-mt or
> make in other way linking with boost_python library?

For installed Boost.Python, you'd need to specify the name under which
Boost.Python is installed, I think.

> The second problem is that bjam produces
> How it's possible to make it as

With CVS version of Boost.Build, there's no "lib" prefix. You can download the
current nighly build from


Vladimir Prus
Boost.Build V2:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at