[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

help building boost-python hello world example on Debian



Dear People,

This is probably somewhat off topic, but I am hoping someone here
might be able to help me.

I have spent the last couple of hours trying to understand how to use
bjam so as to build the `hello world' tutorial example for
boost-python. I have not succeeded.

I'm running Debian sarge. Debian seems me to want to use boost-python
1.30.2, though I also have 1.31 installed. I have also installed bjam.

The Jamfile from the hello world example appears below. How should I
modify this to work on my system? Alternatively, I'd be happy with a
regular Makefile.

I would prefer not to have to do extensive configuration of other
files, and I'd also prefer not to have to modify the jamfile if I
moved it to a different location in the directory hierarchy. Can these
preferences be satisfied?

When running bjam on the script below I get the following. 

***********************************************************************
bjam
Unable to load Boost.Build: could not find build system.
---------------------------------------------------------
/home/faheem/wc/boost/example/boost-build.jam attempted to load the
build system by invoking

   'boost-build ../../../tools/build/v1 ;'

but we were unable to find "bootstrap.jam" in the specified directory
or in BOOST_BUILD_PATH (searching
/home/faheem/wc/boost/example/../../../tools/build/v1,
/usr/share/boost-build).

******************************************************************

I have tried reading the documentation but it seems very complicated
and I just get more confused. Some guidance would be appreciated.

Do I need to compile the example in the sources directory? I tried
this, and I just get a lot of output which it is difficult to make
sense of. I only want to compile this module.

                                                            Faheem.

*****************************************************************
#   Hello World Example from the tutorial
#   [Joel de Guzman 10/9/2002]

#   Specify our location in the boost project hierarchy
subproject libs/python/example/tutorial ;

#   Include definitions needed for Python modules
import python ;

extension hello                     # Declare a Python extension called hello
:   hello.cpp                       # source
    <dll>../../build/boost_python   # dependencies
    ;



Reply to: