OK, i didn't specify the --prefix but i did specify the library position through LDFLAGS. Mac OS X doesn't have many gnu libraries in its default. A project exists called Macports which is very similar to Gentoo packaging (in the sense that is sourcebased, handles dependencies, patches online etc.) and installs everything under /opt/local/. So, I tried specifing some more options: ./configure LDFLAGS="-L/opt/local/lib" --prefix="/opt/local/" --with-boost-python="libboost_python-mt" --with-boost="/opt/local/include/boost/" --with-boost-libdir="/opt/local/lib/" error: checking for the distutils Python package... yes checking for Python include path... -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 checking for Python library path... -L/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 -lpython2.6 checking for Python site-packages path... /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages checking python extra libraries... -ldl checking python extra linking flags... -u _PyMac_Error /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python checking consistency of all components of python development environment... yes checking for boostlib >= 1.33.1... configure: error: We could not detect the boost libraries (version 1.33 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation. config.log: attached config.log.1 ./configure LDFLAGS="-L/opt/local/lib" --prefix="/opt/local/" --with-boost-python="libboost_python-mt" error: checking for the distutils Python package... yes checking for Python include path... -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 checking for Python library path... -L/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 -lpython2.6 checking for Python site-packages path... /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages checking python extra libraries... -ldl checking python extra linking flags... -u _PyMac_Error /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python checking consistency of all components of python development environment... yes checking for boostlib >= 1.33.1... yes checking for python build information... checking for python2.5... python2.5 checking for main in -lpython2.5... yes checking python2.5/Python.h usability... yes checking python2.5/Python.h presence... yes checking for python2.5/Python.h... yes results of the Python check: Binary: python2.5 Library: python2.5 Include Dir: /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 checking whether the Boost::Python library is available... no configure: error: No usable boost::python found config.log: attached config.log.2 which is the same as setting BOOST_ROOT="/opt/local/include/boost" I guess it's missing something from python too! I attach two files that list the content of the boost and python26 package and where they are put Hope it helps On Fri, Oct 16, 2009 at 9:36 AM, Tiago de Paula Peixoto <tiago@forked.de> wrote:
Claudio Martella wrote:
OK, here I have /opt/local/lib/libboost_python-mt.a /opt/local/lib/libboost_python-mt.dylib
I tried --with-boost-library="/opt/local/lib/libboost_python-mt" and --with-boost-library="-mt" but no success. Do you have any suggestions?
You should try --with-boost-python=boost_python-mt. But you should also pass --prefix=/opt/local, in case you haven't done so, since it seems like a non-default directory. In general, these are the following parameters you have to tweak for a particular environment, in order of importance, if it is not automatically detected:
--prefix [general prefix, defaults to /usr/local] --with-boost [_include_ directory, if not prefix/include] --with-boost-libdir [_library_ directory, if not prefix/lib] --with-boost-python [library name, i.e., libboost_python-mt] --with-boost-iostreams [the same for boost iostreams] --with-boost-regex [the same for boost regex]
Check if the include files and library files are in the expected places according to the above. If it still fails, take a look at config.log, to see what it is trying to do, and why it fails. It would also be good if you could attach this file to your messages if you are still having problems.
Cheers, Tiago
_______________________________________________ graph-tool mailing list graph-tool@forked.de http://lists.forked.de/mailman/listinfo/graph-tool
-- Claudio Martella claudio.martella@gmail.com