raulmur / ORB_SLAM2

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

Could NOT find Eigen3 #647

Closed BW25 closed 6 years ago

BW25 commented 6 years ago

I am attempting to install ORBSLAM2. When I run build.sh, it informs me it cannot find the eigen3 libraries. * They have been downloaded, but the program simply cannot be find them.

How can I point the build to these libraries? I have found the file FindEigen3.cmake **, which I believe should locate Eigen's location and store it in EIGEN3_INCLUDE_DIR.

Any ideas? Thank you.

*Error that appears when building: CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) (Required is at least version "3.1.0") Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) cmake_modules/FindEigen3.cmake:82 (find_package_handle_standard_args) CMakeLists.txt:70 (FIND_PACKAGE)

**The error in cmake_modules/FindEigen3.cmake:82 appears on this line: find_package_handle_standard_args(Eigen3 DEFAULT_MSG EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK)

BW25 commented 6 years ago

Issue solved. If eigen3 libraries are downloaded from github, g20 may not be able to find the folder they were put in. Use sudo apt-get install libeigen3-dev instead.