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.53k stars 2.55k forks source link

Errors with ./build.sh, seemingly with eigen3 and sophus #794

Open advait-patel-17 opened 1 year ago

advait-patel-17 commented 1 year ago

OS: Ubuntu 18.04

Was getting a bunch of errors when running build.sh, so I decided to run each of the commands individually. Building DBoW2 and g2o seem to be fine - no errors. Running make -j when building Sophus gives me a bunch of errors that seem to have to do with ceres (pictures attached).

When running cmake .. -DCMAKE_BUILD_TYPE=Release in ORB_SLAM3/build I get:

Could not find a configuration file for package Eigen3 that is compatible with requested version '3.3.7'. the following configuration files were considered but not accepted:

/usr/lib/cmake/eigen3/Eigen3Config.cmake, version: 3.3.4

I have downloaded and extracted the tar.gz file from the eigen3 wiki, it is at ~/eigen-3.4.0. I'm not sure how to get it to recognize this version, or if I was supposed to do something else to properly install eigen3.

hanseongbugi commented 1 year ago

Install eigen3 using the following command. sudo apt update && sudo apt upgrade sudo apt install libeigen3-dev If you install eigen3 in the same way as above, version 3.3.4 is installed for ubuntu 18.04 You can use the 3.3.4 version to successfully install ORBSLAM3.

GabrielGosden commented 1 year ago

@hanseongbugi

Install eigen3 using the following command. sudo apt update && sudo apt upgrade sudo apt install libeigen3-dev If you install eigen3 in the same way as above, version 3.3.4 is installed for ubuntu 18.04 You can use the 3.3.4 version to successfully install ORBSLAM3.

Thank you. My implementation stopped working and uninstalling libeigen3-dev and installing it again fixed the issue. I do not know what I did to break it.