sincerely seeking help on pythonlibs,missing PYTHON_INCLUDE_DIRS after hours of searching
Hey all,
I tried to build urkinpy and I have also boost.numpy in my workspace. I tried to use catkin_make and I get the following error.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find PythonLibs (missing: PYTHONINCLUDEDIRS) (found version "2.7.6") Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (FPHSAFAILUREMESSAGE) /usr/share/cmake-2.8/Modules/FindPythonLibs.cmake:208 (FINDPACKAGEHANDLESTANDARDARGS) urkinpy/CMakeLists.txt:75 (findpackage)
I have libboost_python installed
/usr/lib/x8664-linux-gnu/libboostpython-py27.a /usr/lib/x8664-linux-gnu/libboostpython-py27.so /usr/lib/x8664-linux-gnu/libboostpython-py27.so.1.54.0 /usr/lib/x8664-linux-gnu/libboostpython-py34.a /usr/lib/x8664-linux-gnu/libboostpython-py34.so /usr/lib/x8664-linux-gnu/libboostpython-py34.so.1.54.0 /usr/lib/x8664-linux-gnu/libboostpython.a /usr/lib/x8664-linux-gnu/libboostpython.so
My python version is 2.7.6. One possible solution seems to be located at here. But I don't know how to setthedirectory in CmakeList.txt. I would really really appreciate your help on this. Any suggestions would be appreciated.
I uploaded the CmakeList.txt under urkinpy and my FindPythonLibs.cmake here. I have been searching online for 5 hours. I would really appreciate your help.
Asked by thompson104 on 2017-08-18 22:42:00 UTC
Comments
Do you have the
python-dev
pkg installed?Asked by gvdhoorn on 2017-08-19 05:18:02 UTC
Right. I have it installed. I'm not sure how the CMake works. It seems like updating Cmake might be an option. But I don't know if it's going to influence ROS dependence.
Asked by thompson104 on 2017-08-19 15:30:58 UTC