raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.17k stars 4.69k forks source link

Make error during ./build.sh command #1047

Open kvnkarthik02 opened 2 years ago

kvnkarthik02 commented 2 years ago

First time working with ORBSLAM3, so I'm a bit out of my depth with this whole thing. Apologies if this has already been answered before.

The error I'm getting is as follows

make[1]: *** [CMakeFiles/Makefile2:711: CMakeFiles/ORB_SLAM3.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Ubuntu: 20.04.4 GCC: 9.4.0

would appreciate any help regarding this!

xiaohai-AI commented 1 year ago

the ORB_SLAM2 already exist for several years, if you in 2022 just start do something , most all of these problems are caused by the version problem the following is my experience:

  1. opencv version I use 3.2.0
  2. Panglion use version 0.5
  3. Egien3 need to recompile after Panglion, if you use the most recent version 3.4.90, you need go to CMakelists.txt files( g2o and ORB_SLAM2) change the Include Package line match to this version 3.4.90
  4. under the include/System.h file adding #include