Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python.h error #96

Open
vinay06vinay opened this issue Dec 8, 2023 · 0 comments
Open

Python.h error #96

vinay06vinay opened this issue Dec 8, 2023 · 0 comments

Comments

@vinay06vinay
Copy link

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 <Python.h>

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant