gaoxiang12 / ORBSLAM2_with_pointcloud_map

830 stars 346 forks source link

Getting compile error related to g2o header not found. #19

Open rnunziata opened 6 years ago

rnunziata commented 6 years ago

I compile both the g20_with_orbslam2 and compiled the Thirdparty ...all compiled ok. I also did a make install in its build dir with created a install dir in g20_with_orbslam2 . I do not see any make file reference to this directory?

When I try to compile orbslam I get the following:

[ 64%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Optimizer.cc.o
[ 58%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Viewer.cc.o
[ 61%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Frame.cc.o
In file included from /home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/src/Converter.cc:22:0:
/home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/Converter.h:27:48: fatal error: g2o/types/sba/types_six_dof_expmap.h: No such file or directory
compilation terminated.
CMakeFiles/ORB_SLAM2.dir/build.make:230: recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/Converter.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/src/Converter.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/LocalMapping.h:26:0,
                 from /home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/Tracking.h:31,
                 from /home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/FrameDrawer.h:24,
                 from /home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/Viewer.h:25,
                 from /home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/src/Viewer.cc:21:
/home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/LoopClosing.h:34:51: fatal error: g2o/types/sim3/types_seven_dof_expmap.h: No such file or directory
compilation terminated.
In file included from /home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/src/KeyFrame.cc:22:0:
/home/rjn/catkin_rosmake_ws/new_and_abandoned/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/Converter.h:27:48: fatal error: g2o/types/sba/types_six_dof_expmap.h: No such file or directory
compilation terminated.