On Dec 30, 2011, at 6:35 PM, Tiago de Paula Peixoto wrote:
Hi Claudio,
On 12/30/2011 02:46 PM, Martella, C. wrote:
Hi Tiago,
to be honest, I can't see how lib boost can be linked to python. I ldd it and couldn't find any linkage to python.
boost-python must be linked with python…
true! don't know why it passed my otool -L libboost* | grep python. $ otool -L libboost_python-mt.dylib libboost_python-mt.dylib: /usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.1) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0) Should I also build again libboost by myself (instead of using the homebrew version)?
But the problem is indeed with libgraphtool being linked to Xcode python:
$ otool -L libgraph_tool_core.so libgraph_tool_core.so: /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.1) /usr/local/lib/libboost_iostreams-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_regex-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0) /usr/local/lib/libCGAL.8.0.0.dylib (compatibility version 8.0.0, current version 8.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
I don't get why/how it happened. Any idea?
I must admit i'm pretty unfamiliar with DYLD_LIBRARY_PATH. Should I set it at compile time or runtime?
It may be that your DYLD_LIBRARY_PATH environment variable does not have the correct value. Try adding the homebrew python path to it.
Cheers, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool