When trying to make g2o fork. I get a fatal error when the make is trying to include the Eigen/Core directory. I checked the /src/eigen/ directory and the Eigen folder is there. This maybe a simple fix. I checked to make sure the system eigen3 headers are in the /usr/include/eigen3/. I noticed the note of this will fail with errors if your are using the system eigen headers, where/how do I change this? Here is the exact output I received when executing the make command:
[ 0%] Building CXX object EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/freeglut_font.cpp.o
In file included from /home/eric/src/g2o/build/g2o/config.h:18:0,
from /home/eric/src/g2o/g2o/stuff/opengl_wrapper.h:4,
from /home/eric/src/g2o/EXTERNAL/freeglut/freeglut_minimal.h:31,
from /home/eric/src/g2o/EXTERNAL/freeglut/freeglut_font.cpp:28:
/home/eric/src/g2o/g2o/core/eigen_types.h:30:22: fatal error: Eigen/Core: No such file or directory
compilation terminated.
EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/build.make:62: recipe for target 'EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/freeglut_font.cpp.o' failed
make[2]: [EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/freeglut_font.cpp.o] Error 1
CMakeFiles/Makefile2:103: recipe for target 'EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/all' failed
make[1]: [EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
In order to avoid the issue, is to link the folders. Basically if you run into this issue run the line below:
sudo ln -s /usr/include/eigen3/Eigen /usr/local/include/Eigen
When trying to make g2o fork. I get a fatal error when the make is trying to include the Eigen/Core directory. I checked the /src/eigen/ directory and the Eigen folder is there. This maybe a simple fix. I checked to make sure the system eigen3 headers are in the /usr/include/eigen3/. I noticed the note of this will fail with errors if your are using the system eigen headers, where/how do I change this? Here is the exact output I received when executing the make command:
[ 0%] Building CXX object EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/freeglut_font.cpp.o In file included from /home/eric/src/g2o/build/g2o/config.h:18:0, from /home/eric/src/g2o/g2o/stuff/opengl_wrapper.h:4, from /home/eric/src/g2o/EXTERNAL/freeglut/freeglut_minimal.h:31, from /home/eric/src/g2o/EXTERNAL/freeglut/freeglut_font.cpp:28: /home/eric/src/g2o/g2o/core/eigen_types.h:30:22: fatal error: Eigen/Core: No such file or directory compilation terminated. EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/build.make:62: recipe for target 'EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/freeglut_font.cpp.o' failed make[2]: [EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/freeglut_font.cpp.o] Error 1 CMakeFiles/Makefile2:103: recipe for target 'EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/all' failed make[1]: [EXTERNAL/freeglut/CMakeFiles/freeglut_minimal.dir/all] Error 2 Makefile:127: recipe for target 'all' failed