On 05/11/10 14:42, John Reid wrote:
Hi,

I can't get boost.build configured for 2 different python versions, of
which one is a debug build. I follow the instructions here:
http://www.boost.org/doc/libs/1_44_0/libs/python/doc/building.html

My user-config.jam has entries like this
# default python - this picks up a standard Ubuntu 2.6 install
using python ;

# debug python build - this picks up my debug build from source
using python : 2.7 : /home/john/local/python-dbg/bin/python2.7
:
:
: <python-debugging>on
;


Unfortunately when I build my project
bjam -q -j3 debug

which is configured thus:
project Proj
: requirements
<variant>debug:<python-debugging>on
: usage-requirements
: default-build debug
;

It uses a boost.python built against the default python. This
libboost_python.so.1.44.0 has an undefined symbol
PyUnicodeUCS4_AsUTF8String.

If I comment out the line in user-config.jam
using python ;

so that all my builds use the debug 2.7 python it works ok but
presumably then I have a problem with release builds.

This looks like a bug to me. How am I supposed to configure this in
user-config.jam?

I have a work-around. If I always remember to put "python=2.7" for the debug builds as a bjam option it works ok. E.g.:
bjamc -q -j3 -d+2 debug python=2.7


Thanks,
John.

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to