sincerely seeking help on pythonlibs,missing PYTHON_INCLUDE_DIRS after hours of searching

asked 2017-08-18 22:42:00 -0600

thompson104 gravatar image

Hey all,

I tried to build ur_kin_py 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: PYTHON_INCLUDE_DIRS) (found version "2.7.6") Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindPythonLibs.cmake:208 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) ur_kin_py/CMakeLists.txt:75 (find_package)

I have libboost_python installed

/usr/lib/x86_64-linux-gnu/libboost_python-py27.a /usr/lib/x86_64-linux-gnu/libboost_python-py27.so /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.54.0 /usr/lib/x86_64-linux-gnu/libboost_python-py34.a /usr/lib/x86_64-linux-gnu/libboost_python-py34.so /usr/lib/x86_64-linux-gnu/libboost_python-py34.so.1.54.0 /usr/lib/x86_64-linux-gnu/libboost_python.a /usr/lib/x86_64-linux-gnu/libboost_python.so

My python version is 2.7.6. One possible solution seems to be located at here. But I don't know how to set_the_directory in CmakeList.txt. I would really really appreciate your help on this. Any suggestions would be appreciated.

I uploaded the CmakeList.txt under ur_kin_py and my FindPythonLibs.cmake here. I have been searching online for 5 hours. I would really appreciate your help.

edit retag flag offensive close merge delete

Comments

Do you have the python-dev pkg installed?

gvdhoorn gravatar image gvdhoorn  ( 2017-08-19 05:18:02 -0600 )edit

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.

thompson104 gravatar image thompson104  ( 2017-08-19 15:30:58 -0600 )edit