On Mon, Mar 1, 2010 at 11:24 AM, Gianluca Sforna <[email protected]> wrote:
> Sorry for resurrecting this topic, but I just realized the Q4 2009
> release tarball do not compile out of the box due to the previously
> discussed PYTHON_PATH/PYTHON_DIR trick.
wow, the only thing better than making things work across platforms is
making them work across versions of the system you are using to make
them work across platforms. :-S
I believe that the problem you are experiencing is due to something in
cmake v2.6 that has been changed in v2.8.
The Q42009_1 release works just fine with cmake v2.8. It also seems to
work with cmake v2.6 if you provide the appropriate configuration
variable for the python include libraries:
/usr/bin/cmake -D PYTHON_INCLUDE_DIR=/usr/include/python2.6 ..
The useage of PYTHON_INCLUDE_PATH, as you propose below, has been
deprecated in cmake v2.8. I suppose the correct thing for me to do is
to add a version check in CMakeLists.txt to detect the older version
and adjust the variable names accordingly. I'll do this for the next
release.
Thanks for pointing out the problem.
-greg
> Basically, I need to apply this:
>
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index d58237c..86c0f43 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -34,7 +34,7 @@ if(RDK_BUILD_PYTHON_WRAPPERS)
> #-------
> # pull in python:
> find_package(PythonLibs)
> - include_directories(${PYTHON_INCLUDE_DIR})
> + include_directories(${PYTHON_INCLUDE_PATH})
> link_directories(${PYTHON_LIBRARIES})
> find_package(NumPy REQUIRED)
> include_directories(${PYTHON_NUMPY_INCLUDE_PATH})
>
> to let the build proceed as expected.
>
> HTH
>
> Gianluca
>
> --
> Gianluca Sforna
>
> http://morefedora.blogspot.com
> http://www.linkedin.com/in/gianlucasforna
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Rdkit-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss