Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 5, 2024 · 4 comments

Comments

@AmazingDuDuDu
Copy link

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
Copy link

Kanixre commented Jul 7, 2024

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

@ekrzina
Copy link

ekrzina commented Jul 26, 2024

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
Copy link

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
Copy link

ekrzina commented Jul 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants