This may be more appropriate for the KDE lists, since we’re now using
their Cmake macro for Boost.Python.
I can’t get our Boost.Python code to work because Cmake can’t find it
anymore. I looked through the module and found several problems:
- On the Mac, you usually have to install Boost separately (e.g.,
from source). At the moment, I have /usr/local/include/boost-1_34_1
for headers. I do not see any sort of pkg-config file which would
indicate how you would find this (other than looking in various
include directories for names starting with boost*).
This prevents this line from working in FindBoostPython.cmake:
check_include_file_cxx(boost/shared_ptr.hpp HAVE_BOOST_SHARED_PTR_HPP)
Everything else in the Cmake module relies on this test.
- The Python include and library directories in
FindBoostPython.cmake look Linux-only. I’m running Leopard, which
does links in /usr/include where necessary. I don’t know if this is
true of Tiger.
I have Python headers in /System/Library/Frameworks/Python.framework/
Headers and /usr/include/python2.5
I have Python libraries in /usr/lib/python.dylib (etc.)
- The PYTHON_LIBS variable is version and platform dependent.
I have /usr/local/lib/libboost_python-mt-1_34_1. (Note that there’s no
gcc in this, and the 1_34 and 1_35 releases are not listed in the
current FindBoostPython.cmake module.
I’d be happy to handle testing if there’s a fixed version of the Cmake
module – but am not familiar enough with Cmake to fix it myself.
Cheers,
-Geoff