Scanning dependencies of target g2o
[100%] Building CXX object python/CMakeFiles/g2o.dir/g2o.cpp.o
In file included from /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12:0,
from /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/yuan/XStudio/g2opy/python/g2o.cpp:1:
/home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
you have probably already figured this out but you are missing the python development headers. They just have to be installed. e.g. if you are on Ubuntu run sudo apt-get install python-dev
Scanning dependencies of target g2o [100%] Building CXX object python/CMakeFiles/g2o.dir/g2o.cpp.o In file included from /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12:0, from /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13, from /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13, from /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43, from /home/yuan/XStudio/g2opy/python/g2o.cpp:1: /home/yuan/XStudio/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: No such file or directory
include
compilation terminated. make[2]: [python/CMakeFiles/g2o.dir/g2o.cpp.o] Error 1 make[1]: [python/CMakeFiles/g2o.dir/all] Error 2 make: *** [all] Error 2