ORB_SLAM2 icon indicating copy to clipboard operation
ORB_SLAM2 copied to clipboard

Make error during ./build.sh command

Open kvnkarthik02 opened this issue 2 years ago • 1 comments

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!

kvnkarthik02 avatar May 17 '22 20:05 kvnkarthik02

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 <unistd.h>

xiaohai-AI avatar Jul 18 '22 18:07 xiaohai-AI