BertaBescos / DynaSLAM

DynaSLAM is a SLAM system robust in dynamic environments for monocular, stereo and RGB-D setups
https://bertabescos.github.io/DynaSLAM/
Other
829 stars 201 forks source link

Python.h error #96

Open vinay06vinay opened 11 months ago

vinay06vinay commented 11 months ago

Hi, In file included from /home/vinay/Documents/809k_project/DynaSLAM/src/MaskNet.cc:9: /home/vinay/Documents/809k_project/DynaSLAM/include/MaskNet.h:15:10: fatal error: python2.7/Python.h: No such file or directory 15 | #include <python2.7/Python.h> | ^~~~~~~~ In file included from /home/vinay/Documents/809k_project/DynaSLAM/src/Conversion.cc:9: /home/vinay/Documents/809k_project/DynaSLAM/include/Conversion.h:13:10: fatal error: Python.h: No such file or directory 13 | #include

Can anyone help here. I have Python in my system and also included in CMakeLists

set(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS} /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy)

include_directories( ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/include ${EIGEN3_INCLUDE_DIR} ${Pangolin_INCLUDE_DIRS} /usr/include/python2.7/ /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ ${Boost_INCLUDE_DIRS}