gaoxiang12 / ORBSLAM2_with_pointcloud_map

844 stars 346 forks source link

make error in ORB_SLAM2_modified #2

Open DamonMIN opened 8 years ago

DamonMIN commented 8 years ago

there is an error in ORB_SLAM2_modified and I don't find the reason. Can you help me about this error? Thank U. ///////////////////////////////////////////////////////////////////////////////////////////////////// [ 4%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/System.cc.o In file included from /home/aicrobo/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/LocalMapping.h:26:0, from /home/aicrobo/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/Tracking.h:31, from /home/aicrobo/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/include/System.h:29, from /home/aicrobo/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/src/System.cc:23: /home/aicrobo/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

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 /////////////////////////////////////////////////////////////////////////////////////////////////////////

gaoxiang12 commented 8 years ago

@DamonMIN You need to install the modified g2o first, not just compile it but install it into /usr/local (by default). Also make sure your cmake find this modified g2o when building ORB_SLAM, otherwise it may report an error. If you have installed the g2o in ROS library (via apt) I suggest to uninstall it too.

qq184861643 commented 7 years ago

@gaoxiang12 @DamonMIN actually the modified g2o's default output directory is into /ORBSLAM2_with_pointcloud_map-master/g2o_with_orbslam2/lib, I've inspected it via ccmake.However I also have the same lib into my usr/local/lib somehow,so I don't know which lib support my program.I guess you could cp the default lib to the /usr/local.

shuaijieli commented 7 years ago

@gaoxiang12 Is the "ORB_SLAM2_modified" only support by the "modified g2o"? can i use the g2o lib that i compile in the origional ORB_SLAM2?thanks