From: David B. <dbr...@st...> - 2011-02-27 22:50:42
|
On 2/26/2011 8:35 PM, Mark Moll wrote: > On Feb 25, 2011, at 1:37 PM, David Breeden wrote: >> I'm trying to install OMPL on my 64-bit Windows 7 machine. I've installed all the dependencies but when I hit Configure in the CMake GUI I get: >> >> CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): >> Could NOT find Python (missing: PYTHON_LIBRARIES) >> Call Stack (most recent call first): >> C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE) >> ompl/CMakeModules/FindPython.cmake:115 (find_package_handle_standard_args) >> CMakeLists.txt:32 (find_package) >> >> >> Configuring incomplete, errors occurred! >> >> The CMake window shows the right values for PYTHON_EXEC and PYTHON_INCLUDE_DIRS (C:/Python27/python.exe and C:/Python27/include, respectively). >> >> I'm guessing this is something simple but I don't have a lot of experience with CMake or Python. > > The python executable and python header files are apparently not the problem, but cmake can’t find the python libraries. Can you tell me if there is a *.lib or *.dll file somewhere in C:/Python27 or one of its subdirectories Yes, there are libraries in C:/Python27/libs and C:/Python27/DLLs. I think I found the issue. In FindPython.cmake the pertinent line is: find_library(PYTHON_LIBRARIES "python${PYTHON_VERSION}" PATHS "${PYTHON_PREFIX}/lib" [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${PYTHON_VERSION}\\InstallPath]/libs PATH_SUFFIXES "" "python${PYTHON_VERSION}/config" DOC "Python libraries" NO_DEFAULT_PATH) ${PythonVersion} is "2.7", though, and the library is python27.lib. I hack around this by replacing the library name "python${PYTHON_VERSION}" with "python27" and CMake finds the library. Should a different variable be used here instead of PYTHON_VERSION? OK, so now I'm getting the following error: CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Could NOT find PY_PyQt4 (missing: PY_PYQT4) Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE) ompl/CMakeModules/FindPython.cmake:95 (find_package_handle_standard_args) CMakeLists.txt:33 (find_python_module) I see in the top-level OMPL directory CMakeLists.txt has "find_package(PyQt4 REQUIRED)" but I installed PySide instead of PyQt4. I tried replacing this line with "find_package(PySide REQUIRED)" but this produced the same error. I'm going to try installing PyQt4 instead, but is there something else I could do to use PySide instead of PyQt4? Thanks, David |