[C++-sig] Problems with compiling with 'Hello World' from Boost::python
martin.rosekeit at freenet.de
Fri Sep 7 15:16:55 CEST 2007
Moin, moin, group,
I have problems to compile the 'Hello World' from Boost::python (http://www.boost.org/libs/python/doc/tutorial/doc/html/index.html).
When I start bjam I get the following error message:
error: Could not find parent for project at '.'
error: Did not find Jamfile or project-root.jam in any parent directory.
hellp.cpp Jamfile Jamrules
# This is the top of our own project tree
import python ;
extension hello # Declare a Python extension called hello
: hello.cpp # source
# requirements and dependencies for Boost.Python extensions
I am a little irritated, where this last line points to?
# Boost.Build top level Jamrules
# Set some important global variables if they haven't already been set by the
# user on the command-line or in the environment
path-global PYTHON_ROOT : /usr ;
path-global PYTHON_VERSION : 2.5 ;
# Establish this as the root of the boost installation. Most targets will want
# $(BOOST_ROOT) in their #include path.
path-global BOOST_ROOT : /usr/include ;
# The current version of Boost.
BOOST_VERSION ?= 1.33.1 ;
# Compiler configuration
using gcc ;
# Python configuration
using python : 2.5 ;
Installed packets (with apt-get):
boost-build, libboost-dev, libboost-python1.33.1, libboost-python-dev, python, python2.5, python2.5-dev
<<Experience is what you get, when you don't get what you want.>>
More information about the Cplusplus-sig