[C++-sig] Re: Mac OS 10 success
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Thu May 22 01:52:38 CEST 2003
--- David Abrahams <dave at boost-consulting.com> wrote:
>
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/cctbx/libtbx/libtbx/command_line/mac_os_x_ld_pyd.csh?rev=1.1&content-type=text/vnd.viewcvs-markup
>
> This appears to refer to a removed file (?)
Oh, sorry; I was hoping that the link remains valid because the rev=1.1 is
explicit.
In the meantime I've done some cleanup work. I attach the essential compilation
commands for easy consumption.
Ralf
Note that SCons uses the extension ".os" instead of the usual ".o" for object
files compiled for shared libraries.
Compiling Boost.Python sources:
g++ -fPIC -ftemplate-depth-120 -w -O0 -fno-inline -DBOOST_PYTHON_MAX_BASES=2
-DBOOST_PYTHON_SOURCE -I/net/cci/rwgk/boost_releases/1_30_0/mac/boost
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c -o
boost/libs/python/src/tuple.os
/net/cci/rwgk/boost_releases/1_30_0/mac/boost/libs/python/src/tuple.cpp
Linking libboost_python.dylib (three commands):
ld -dynamic -m -r -d -o libboost_python.lo boost/libs/python/src/numeric.os
boost/libs/python/src/list.os boost/libs/python/src/long.os
boost/libs/python/src/dict.os boost/libs/python/src/tuple.os
boost/libs/python/src/str.os boost/libs/python/src/aix_init_module.os
boost/libs/python/src/converter/from_python.os
boost/libs/python/src/converter/registry.os
boost/libs/python/src/converter/type_id.os boost/libs/python/src/object/enum.os
boost/libs/python/src/object/class.os boost/libs/python/src/object/function.os
boost/libs/python/src/object/inheritance.os
boost/libs/python/src/object/life_support.os
boost/libs/python/src/object/pickle_support.os boost/libs/python/src/errors.os
boost/libs/python/src/module.os
boost/libs/python/src/converter/builtin_converters.os
boost/libs/python/src/converter/arg_to_python_base.os
boost/libs/python/src/object/iterator.os
boost/libs/python/src/object_protocol.os
boost/libs/python/src/object_operators.os
g++ -nostartfiles -Wl,-dylib -ldylib1.o -framework
/Library/Frameworks/Python.framework/Versions/2.3/Python -o
libtbx/libboost_python.dylib libboost_python.lo
rm -f libboost_python.lo
Compiling an extension module:
g++ -fPIC -ftemplate-depth-120 -w -O0 -fno-inline -DBOOST_PYTHON_MAX_BASES=2
-Ilibtbx/include -I/net/cci/rwgk/boost_releases/1_30_0/mac/libtbx/include
-I/net/cci/rwgk/boost_releases/1_30_0/mac/scitbx/include
-I/net/cci/rwgk/boost_releases/1_30_0/mac/boost
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c -o
scitbx/fftpack/boost_python/fftpack_ext.os
/net/cci/rwgk/boost_releases/1_30_0/mac/scitbx/fftpack/boost_python/fftpack_ext.cpp
Linking an extension module:
g++ -w -bundle /Library/Frameworks/Python.framework/Versions/2.3/Python
-bundle_loader /Library/Frameworks/Python.framework/Versions/2.3/Python -o
libtbx/scitbx_boost/fftpack_ext.so scitbx/fftpack/boost_python/fftpack_ext.os
-Llibtbx -L/net/cci/rwgk/boost_releases/1_30_0/mac/libtbx -lscitbx_boost_python
-lboost_python -lm
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
More information about the Cplusplus-sig
mailing list