[C++-sig] Problem building Boost.Python

Wenning Qiu wenning_qiu at yahoo.com
Fri Jun 20 00:05:10 CEST 2003


I am trying to build boost_1_30_0 on Linux and have
not succeeded so far. I am new to boost and Jam. I
think I've followed the build/install instructions,
but obviously there's something I am not doing right.
I'd appreciate it if anybody can point out.

Thanks.
Wenning Qiu

Here's the software versions:

Red Hat Linux 8.0 
gcc (GCC) 3.2 20020903 
Python.2.2.3 built from source locally.
boost-jam-3.1.4 built locally with command "build.sh
gcc".

I set the evrironment variables:

export PYTHON_ROOT=/home/qiuw01/linux/Python
export PYTHON_VERSION=2.2

And do the build:

qiuw01$ cd boost_1_30_0/libs/python/build
qiuw01$ bjam "-sTOOLS=gcc"

I got the error message "unknown target type for
libboost_python.so" right away. However, it builds
when I comment out following lines from Jamfile:

  stage bin-stage : <dll>boost_python
<lib>boost_python
    : <tag><debug>"_debug"
      <tag><debug-python>"_pydebug"
    :
        debug release
    ;

Attempt to build hello.cpp also failed:

qiuw01$ cd boost_1_30_0/libs/python/example/tutorial
qiuw01$ bjam "-sTOOLS=gcc"
don't know how to make
<libs!python!build>../src/numeric.cpp
don't know how to make
<libs!python!build>../src/list.cpp
don't know how to make
<libs!python!build>../src/long.cpp
don't know how to make
<libs!python!build>../src/dict.cpp
don't know how to make
<libs!python!build>../src/tuple.cpp
don't know how to make
<libs!python!build>../src/str.cpp
don't know how to make
<libs!python!build>../src/aix_init_module.cpp
don't know how to make
<libs!python!build>../src/converter/from_python.cpp
don't know how to make
<libs!python!build>../src/converter/registry.cpp
don't know how to make
<libs!python!build>../src/converter/type_id.cpp
don't know how to make
<libs!python!build>../src/object/enum.cpp
don't know how to make
<libs!python!build>../src/object/class.cpp
don't know how to make
<libs!python!build>../src/object/function.cpp
don't know how to make
<libs!python!build>../src/object/inheritance.cpp
don't know how to make
<libs!python!build>../src/object/life_support.cpp
don't know how to make
<libs!python!build>../src/object/pickle_support.cpp
don't know how to make
<libs!python!build>../src/errors.cpp
don't know how to make
<libs!python!build>../src/module.cpp
don't know how to make
<libs!python!build>../src/converter/builtin_converters.cpp
don't know how to make
<libs!python!build>../src/converter/arg_to_python_base.cpp
don't know how to make
<libs!python!build>../src/object/iterator.cpp
don't know how to make
<libs!python!build>../src/object_protocol.cpp
don't know how to make
<libs!python!build>../src/object_operators.cpp
...found 898 targets...
...can't find 23 targets...
...can't make 25 targets...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>numeric.o
for lack of <libs!python!build>../src/numeric.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>list.o
for lack of <libs!python!build>../src/list.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>long.o
for lack of <libs!python!build>../src/long.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>dict.o
for lack of <libs!python!build>../src/dict.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>tuple.o
for lack of <libs!python!build>../src/tuple.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>str.o
for lack of <libs!python!build>../src/str.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>aix_init_module.o
for lack of
<libs!python!build>../src/aix_init_module.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>from_python.o
for lack of
<libs!python!build>../src/converter/from_python.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>registry.o
for lack of
<libs!python!build>../src/converter/registry.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>type_id.o
for lack of
<libs!python!build>../src/converter/type_id.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>enum.o
for lack of
<libs!python!build>../src/object/enum.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>class.o
for lack of
<libs!python!build>../src/object/class.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>function.o
for lack of
<libs!python!build>../src/object/function.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>inheritance.o
for lack of
<libs!python!build>../src/object/inheritance.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>life_support.o
for lack of
<libs!python!build>../src/object/life_support.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>pickle_support.o
for lack of
<libs!python!build>../src/object/pickle_support.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>errors.o
for lack of <libs!python!build>../src/errors.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>module.o
for lack of <libs!python!build>../src/module.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>builtin_converters.o
for lack of
<libs!python!build>../src/converter/builtin_converters.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>arg_to_python_base.o
for lack of
<libs!python!build>../src/converter/arg_to_python_base.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>iterator.o
for lack of
<libs!python!build>../src/object/iterator.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>object_protocol.o
for lack of
<libs!python!build>../src/object_protocol.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>object_operators.o
for lack of
<libs!python!build>../src/object_operators.cpp...
...skipped
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>libboost_python.so
for lack of
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>numeric.o...
...skipped
<libs!python!example!tutorial/hello.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>hello.so
for lack of
<libs!python!build/libboost_python.so/gcc/debug/runtime-link-dynamic/shared-linkable-true>libboost_python.so...
...skipped 25 targets...



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com




More information about the Cplusplus-sig mailing list