[C++-sig] libboost_python-gcc43-mt.so or without "mt"?
Neal Becker
ndbecker2 at gmail.com
Fri May 29 20:27:55 CEST 2009
Werner Joergensen wrote:
>
> Dear list participants,
>
> I have installed boost including the python lib using the boostrap.sh
> installation script, and now I have the following libraries under /lib
> (linux system): libboost_python-gcc43-mt-1_39.a
> libboost_python-gcc43-mt-1_39.so libboost_python-gcc43-mt-1_39.so.1.39.0
> libboost_python-gcc43-mt.a
> libboost_python-gcc43-mt.so
>
> However when I build a python extension module with bjam, and when I
> import the newly built module in python, the problem is:
> $ ipython
> In [1]: import myModule
> ImportError: libboost_python-gcc43-1_39.so.1.39.0: cannot open shared
> object file: No such file or directory
>
> Of course, I can copy and rename the mt-libraries to the expected library
> name. But is there a possibility to build the python extension so that the
> exististing libboost_python-gcc43-mt.so will be linked instead of some
> other name? Can I configure which libboost_python will be used somewhere
> in boost-build.jam or user-config.jam or Jamroot?
>
> Thanks
> Werner
Here's what I do
1. Get updated 1.39 from svn (the --layout=tagged option was just added, at
my request).
Then,
I use:
bjam -sICU_PATH=/usr -sEXPAT_INCLUDE=/usr -sEXPAT_LIBPATH=/usr/lib64 --
layout=tagged threading=single,multi stage
You will then have (sorry for ugly formatting):
-rw-rw-r-- 1 nbecker nbecker 161294 2009-05-18 15:17 libboost_date_time.a
-rw-rw-r-- 1 nbecker nbecker 161294 2009-05-18 15:17 libboost_date_time-
mt.a
lrwxrwxrwx 1 nbecker nbecker 31 2009-05-18 15:17 libboost_date_time-
mt.so -> libboost_date_time-mt.so.1.40.0
-rwxrwxr-x 1 nbecker nbecker 76680 2009-05-18 15:17 libboost_date_time-
mt.so.1.40.0
lrwxrwxrwx 1 nbecker nbecker 28 2009-05-18 15:17
libboost_date_time.so -> libboost_date_time.so.1.40.0
-rwxrwxr-x 1 nbecker nbecker 76648 2009-05-18 15:17
libboost_date_time.so.1.40.0
...
More information about the Cplusplus-sig
mailing list