gaoxiang12 / ORBSLAM2_with_pointcloud_map

830 stars 346 forks source link

ORBSLAM2 build error #8

Open mkorkmazeem opened 7 years ago

mkorkmazeem commented 7 years ago

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/ORBSLAM2.dir/all] Error 2 make: *** [all] Error 2

lily0101 commented 6 years ago

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

lily0101 commented 6 years ago

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

kinglintianxia commented 6 years ago

Go to the dir g2o_with_orbslam2/build

$ sudo make install 

It works!