felixendres / rgbdslam_v2

RGB-D SLAM for ROS
GNU General Public License v3.0
935 stars 399 forks source link

Invoking "make -j4 -l4" failed #98

Open KamithaVihanga opened 6 years ago

KamithaVihanga commented 6 years ago
In file included from /home/kamitha/Code/rgbdslam_catkin_ws/build/rgbdslam/src/moc_graph_manager.cpp:9:0:
/home/kamitha/Code/rgbdslam_catkin_ws/build/rgbdslam/src/../../../src/rgbdslam/src/graph_manager.h:58:39: fatal error: g2o/core/sparse_optimizer.h: No such file or directory
compilation terminated.
rgbdslam/CMakeFiles/rgbdslam.dir/build.make:158: recipe for target 'rgbdslam/CMakeFiles/rgbdslam.dir/src/moc_graph_manager.cpp.o' failed
make[2]: *** [rgbdslam/CMakeFiles/rgbdslam.dir/src/moc_graph_manager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/kamitha/Code/rgbdslam_catkin_ws/build/rgbdslam/src/../../../src/rgbdslam/src/openni_listener.h:31:0,
                 from /home/kamitha/Code/rgbdslam_catkin_ws/build/rgbdslam/src/moc_openni_listener.cpp:9:
/home/kamitha/Code/rgbdslam_catkin_ws/build/rgbdslam/src/../../../src/rgbdslam/src/graph_manager.h:58:39: fatal error: g2o/core/sparse_optimizer.h: No such file or directory
compilation terminated.
rgbdslam/CMakeFiles/rgbdslam.dir/build.make:110: recipe for target 'rgbdslam/CMakeFiles/rgbdslam.dir/src/moc_openni_listener.cpp.o' failed
make[2]: *** [rgbdslam/CMakeFiles/rgbdslam.dir/src/moc_openni_listener.cpp.o] Error 1
In file included from /home/kamitha/Code/rgbdslam_catkin_ws/src/rgbdslam/src/openni_listener.h:31:0,
                 from /home/kamitha/Code/rgbdslam_catkin_ws/src/rgbdslam/src/main.cpp:17:
/home/kamitha/Code/rgbdslam_catkin_ws/src/rgbdslam/src/graph_manager.h:58:39: fatal error: g2o/core/sparse_optimizer.h: No such file or directory
compilation terminated.
rgbdslam/CMakeFiles/rgbdslam.dir/build.make:254: recipe for target 'rgbdslam/CMakeFiles/rgbdslam.dir/src/main.cpp.o' failed
make[2]: *** [rgbdslam/CMakeFiles/rgbdslam.dir/src/main.cpp.o] Error 1
In file included from /home/kamitha/Code/rgbdslam_catkin_ws/src/rgbdslam/src/openni_listener.h:31:0,
                 from /home/kamitha/Code/rgbdslam_catkin_ws/src/rgbdslam/src/openni_listener.cpp:29:
/home/kamitha/Code/rgbdslam_catkin_ws/src/rgbdslam/src/graph_manager.h:58:39: fatal error: g2o/core/sparse_optimizer.h: No such file or directory
compilation terminated.
rgbdslam/CMakeFiles/rgbdslam.dir/build.make:302: recipe for target 'rgbdslam/CMakeFiles/rgbdslam.dir/src/openni_listener.cpp.o' failed
make[2]: *** [rgbdslam/CMakeFiles/rgbdslam.dir/src/openni_listener.cpp.o] Error 1
CMakeFiles/Makefile2:3155: recipe for target 'rgbdslam/CMakeFiles/rgbdslam.dir/all' failed
make[1]: *** [rgbdslam/CMakeFiles/rgbdslam.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
felixendres commented 6 years ago

g2o is not found by the compiler. More information about what you did in what environment would make a more specific diagnosis possible