On Tue, Feb 28, 2012 at 3:03 PM, Gary Kedziora <[email protected]> wrote:
> Hi,
>
> cmake/modules/PythonDeps.cmake is having trouble finding SIP on my
> system. The sip.h on my system is in a nonstandard place. I have a
> work around, but it is not fully tested yet. I made my own
> FindSIP.cmake that is called from PythonDeps.cmake. It both finds
> sip.h and tests that the sip module loads in Python. It works through
> completion of cmake. I haven't found out if the build requires and
> finds the sip.h yet though due to other problems with building. I
> definitely found this problem in the master and in Geoff's
> pettt-master branch. I'm waiting to see if the build works to know if
> the cmake changes work.
>
This was in a version of Geoff's with that was merged to the master.
I checked the master also, and it had a construct that was not general
enough for the SIP portion of PythonDeps.cmake.
I got it to build with some modification to cmake files. I modified
~/cmake/modules/PythonDeps.cmake by calling find_package(SIP). In
FindSIP.cmake the main thing is that I have
find_path(SIP_INCLUDE_DIR NAMES sip.h
PATHS
${INCLUDE_INSTALL_DIR}
${CMAKE_INCLUDE_DIR}
PATH_SUFFIXES SIP
)
Should probably include other directories in there as well. And
finally, in ~/libavogadro/src/python/CMakeLists.txt I add
${SIP_INCLUDE_DIR} to the include_directories() function.
Let me know if I should provide further details and the best way to do that.
Thanks,
Gary
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel