UZ-SLAMLab / ORB_SLAM3

ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual-Inertial and Multi-Map SLAM
GNU General Public License v3.0
6.66k stars 2.57k forks source link

make[2]: *** [CMakeFiles/ORB_SLAM3.dir/build.make:554: ../lib/libORB_SLAM3.so] Error 1 make[1]: *** [CMakeFiles/Makefile2:711: CMakeFiles/ORB_SLAM3.dir/all] Error 2 #903

Open AmazingDuDuDu opened 5 months ago

AmazingDuDuDu commented 5 months ago

I'm trying to run ./build.sh to build the Thirdparty libraries and ORB-SLAM3 and get this error.

I have run the commands in build.sh one by one. The error occurs when I run make -j4 to build ORB-SLAM3.

Does anyone know how to solve it? Thanks in advance.

Kanixre commented 4 months ago

I am having the same issue. Were you able to solve it? Thank you.

ekrzina commented 4 months ago

Did you download all necessary dependencies? That would be Eigen, Pangolin, g2o and DBoW2 (git clone). These also have some dependencies, like libboost-serialization-dev and libssl-dev (apt install).

Also, for CMakeLists.txt, make sure to type the following before building ORB_SLAM3:

sed -i 's/++11/++14/g' CMakeLists.txt
chmod +x build.sh
./build.sh

This will replace C++11 with C++14 as standard version.

MarcoRovell commented 4 months ago

if we download only the most recent versions of all these dependencies, could some things be deprecated? I get tons of warnings after doing this?

ekrzina commented 4 months ago

I've downloaded the newest versions of all dependencies very recently (a week ago), and only had trouble with the c++ version, which can be changed with the sed command I've commented above. So I don't think this should be the case.

Also, when building again, make sure to delete the old build directory and create a new one as it could read cache. If nothing works, replace the c++ to version 14 in all other CMakeLists and build those anew. All need to be built correctly before ORB_SLAM3 cab be built.

Hope this helps.