boost::python : project outside boost tree
I have trouble getting a boost::python project to compile outside the boost directory tree. I can compile the "hello, world" example in {boost}/libs/python/example/tutorial witout problem. But now I would like to start my own project outside the boost tree. To start with I copied the above "tutorial" directory into my home-directory and modified the Jamfile to: #--- begin Jamfile # 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) ; #---- end Jamfile I set export PYTHON_ROOT=/usr export PYTHON_VERSION=2.2 export BOOST_BUILD_PATH=/usr/lib/boost_1_29_0 export BOOST_ROOT=/usr/lib/boost_1_29_0 (boost is in /usr/lib/boost_1_29_0 and Python 2.2.1 is in /usr/lib/python2.2 and /usr/include/python2.2) When I now call bjam I get the messages: ../../../Jamrules: No such file or directory /usr/lib/boost/tools/build/boost-base.jam:1455: in find-compatible-subvariant *** argument error * rule is-link-compatible ( feature : value1 : value2 ) * called with: ( <target-type> : PYD : ) * missing argument value2 /usr/lib/boost/tools/build/boost-base.jam:1416:see definition of rule 'is-link-compatible' being called /usr/lib/boost/tools/build/boost-base.jam:1502: in link-libraries /usr/lib/boost/tools/build/boost-base.jam:1712: in subvariant-target /usr/lib/boost/tools/build/boost-base.jam:1797: in main-target /usr/lib/boost/tools/build/boost-base.jam:1330: in declare-local-target /usr/lib/boost/tools/build/python.jam:302: in extension Jamfile:29: in load-jamfiles /usr/lib/boost/tools/build/bootstrap.jam:15: in boost-build /usr/lib/boost/boost-build.jam:2: in module scope I suspect something is wrong with my Jamfile, but what? Any help would be greatly appreciated. Juerg
Juerg Tschirren
I have trouble getting a boost::python project to compile outside the boost directory tree.
I can compile the "hello, world" example in {boost}/libs/python/example/tutorial witout problem.
But now I would like to start my own project outside the boost tree. To start with I copied the above "tutorial" directory into my home-directory and modified the Jamfile to:
You should start with the archive linked to in last paragraph of http://www.boost.org/libs/python/doc/building.html#building_ext. HTH, Dave -- David Abrahams dave@boost-consulting.com * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
David Abrahams wrote:
You should start with the archive linked to in last paragraph of http://www.boost.org/libs/python/doc/building.html#building_ext.
HTH, Dave
I have seen this file (http://www.boost.org/libs/python/example/project.zip) before. The problem is that it is corrupted -- I can not unzip it (it also has a suspiciously short size of only 133 Bytes). It looks like the beginning of a valid zip file, but it seems to be truncated. The same zip file seems to be in boost/libs/python/example/, but it is identical to the one from the webpage. Is there any other location where I can get project.zip? Juerg
Juerg Tschirren
David Abrahams wrote:
You should start with the archive linked to in last paragraph of http://www.boost.org/libs/python/doc/building.html#building_ext.
HTH, Dave
I have seen this file (http://www.boost.org/libs/python/example/project.zip) before. The problem is that it is corrupted -- I can not unzip it (it also has a suspiciously short size of only 133 Bytes). It looks like the beginning of a valid zip file, but it seems to be truncated.
The same zip file seems to be in boost/libs/python/example/, but it is identical to the one from the webpage. Is there any other location where I can get project.zip?
I have fixed the file on the website. You can also get the file from the Boost CVS repository. -- David Abrahams dave@boost-consulting.com * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
participants (2)
-
David Abrahams
-
Juerg Tschirren