ORBSLAM2_with_pointcloud_map icon indicating copy to clipboard operation
ORBSLAM2_with_pointcloud_map copied to clipboard

ORBSLAM2 build error

Open mkorkmazeem opened this issue 8 years ago • 3 comments

Hi all,

I successfully built the g20_with_orbslam2. and then I tried to built ORB_SLAM2_modified but I got the following errors?

So, what should I do?

[ 4%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/System.cc.o In file included from /home/mehmet/orbslam2_modified/ORB_SLAM2_modified/include/LocalMapping.h:26:0, from /home/mehmet/orbslam2_modified/ORB_SLAM2_modified/include/Tracking.h:31, from /home/mehmet/orbslam2_modified/ORB_SLAM2_modified/include/System.h:29, from /home/mehmet/orbslam2_modified/ORB_SLAM2_modified/src/System.cc:23: /home/mehmet/orbslam2_modified/ORB_SLAM2_modified/include/LoopClosing.h:34:51: fatal error: g2o/types/sim3/types_seven_dof_expmap.h: No such file or directory #include <g2o/types/sim3/types_seven_dof_expmap.h> ^ compilation terminated. make[2]: *** [CMakeFiles/ORB_SLAM2.dir/src/System.cc.o] Error 1 make[1]: *** [CMakeFiles/ORB_SLAM2.dir/all] Error 2 make: *** [all] Error 2

mkorkmazeem avatar Feb 16 '17 11:02 mkorkmazeem

I have the same error with you. Have you solved it?

lily0101 avatar Aug 18 '17 07:08 lily0101

when you finished make of g2o, you have to use "make install " to install it and you can do the SLAMModifed using build.

lily0101 avatar Aug 18 '17 07:08 lily0101

Go to the dir g2o_with_orbslam2/build

$ sudo make install 

It works!

kinglintianxia avatar Dec 18 '17 06:12 kinglintianxia