[C++-sig] Using bjam Outside of the Boost Directory
cleung at eos.ubc.ca
cleung at eos.ubc.ca
Tue Nov 19 01:30:11 CET 2002
Hi,
I've been trying to build my extension modules using bjam in the
libs/python directory and it works well. However, when I try compiling
the modules outside of Boost root, bjam gives me some problems. I've
already set the BOOST_BUILD_PATH and BOOST_ROOT environment variables.
For example, when I try building the "hello world" module in a directory
outside of libs/python, I wrote a Jamfile as following:
# Include definitions needed for Python modules
SEARCH on python.jam = $(BOOST_BUILD_PATH) ;
include python.jam ;
extension hello : hello.cpp <dll>$(BOOST_ROOT)/libs/python/build/boost_python
: <sysinclude>$(BOOST_ROOT)
;
It gives me the following error...
/nfs/kite/users/cleung/install/boost_gcc3.2/tools/build/boost-base.jam:1470:
in find-compatible-subvariant
*** argument error
* rule is-link-compatible ( feature : value1 : value2 )
* called with: ( <target-type> : PYD : )
* missing argument value2
/nfs/kite/users/cleung/install/boost_gcc3.2/tools/build/boost-base.jam:1416:see
definition of rule 'is-link-compatible' being called
/nfs/kite/users/cleung/install/boost_gcc3.2/tools/build/boost-base.jam:1517:
in link-libraries
/nfs/kite/users/cleung/install/boost_gcc3.2/tools/build/boost-base.jam:1754:
in subvariant-target
/nfs/kite/users/cleung/install/boost_gcc3.2/tools/build/boost-base.jam:1839:
in main-target
/nfs/kite/users/cleung/install/boost_gcc3.2/tools/build/boost-base.jam:1330:
in declare-local-target
/nfs/kite/users/cleung/install/boost_gcc3.2/tools/build/python.jam:302: in
extension
Jamfile:13: in load-jamfiles
/nfs/kite/users/cleung/install/boost_gcc3.2/tools/build/bootstrap.jam:15:
in boost-build
/nfs/kite/users/cleung/install/boost_gcc3.2/boost-build.jam:17: in module
scope
Using print statements, I figured that the subvariant is not set correctly
Does anyone know how to fix this or where I can find more
information/examples in using bjam outside of boost/libs?
Thanks,
Charles
More information about the Cplusplus-sig
mailing list