Boost logo

Boost-Build :

From: Chris Hoeppler (hoeppler_at_[hidden])
Date: 2006-08-16 16:51:01


Hi Jane,

thanks for pointing out, that python support can only be enabled by adding an
appropriate using-construct in user-config.jam. This works for me, as well.

So something needs to be fixed because at the moment bjam --v2 --help
advertises the following options

  --with-python-root[=PYTHON_ROOT]
                          Build Boost.Python libraries with the Python
                          devel packages located at PYTHON_ROOT.
                          Default PYTHON_ROOT; C:\Python24 on Win32.
                          Default PYTHON_ROOT; /usr on Unix, Linux,
                              Cygwin, etc.

  --with-python-version[=2.4]
                          Build Boost.Python libraries with the Python
                          version indicated.
                          Default; 2.4.

  --with-pydebug Build Boost.Python libraries for use with a
                          debug build of Python.

all of which result in an error:

error: wrong library name 'python-root=/usr/local' in the --with-<library>
option.

error: wrong library name 'python-version=2.4' in the --with-<library> option.

error: wrong library name 'pydebug' in the --with-<library> option.

I tried this with todays anonymous cvs version (both RC_1_34_0 and HEAD).

Chris

On Thursday 29 June 2006 00:20, Jane Lin wrote:
> > This works for me as long as I use BBv1 but with BBv2 I also get an
> > error:
> >
> > src/boost_RC_1_34_0> export PYTHON_VERSION=2.4
> > src/boost_RC_1_34_0> export PYTHON_ROOT=/usr/local
> > src/boost_RC_1_34_0> bjam --v2
> > Building Boost.Regex with the optional Unicode/ICU support disabled.
> > Please refer to the Boost.Regex documentation for more information
> > (and if you don't know what ICU is then you probably don't need it).
> > warning: Python location is not configured
> > warning: the Boost.Python library won't be built
> > ...patience...
>
> I'm just using the release version of boost 1_33_1, but I get those
> warnings if I don't have the version and root path in user-config.jam
> in my home directory -- not the user-config.jam in the boost
> directory. You'd want to add something like:
>
> using python : 2.4 : "/usr/local" ;
>
> Did you try that already?
>
> -Jane


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk