colmap / glomap

GLOMAP - Global Structured-from-Motion Revisited
BSD 3-Clause "New" or "Revised" License
1.3k stars 77 forks source link

Eigen3 is missing #6

Closed saliteta closed 1 month ago

saliteta commented 1 month ago

I clone the glomap, and I have installed colmap in my conda environment. But when I installed it using:

cmake .. -GNinja 
``

in glomap/build, it stated:

CMake Warning at build/_deps/poselib-src/CMakeLists.txt:11 (find_package): By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Eigen3", but CMake did not find one.

Could not find a package configuration file provided by "Eigen3" with any of the following names:

Eigen3Config.cmake
eigen3-config.cmake

Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set "Eigen3_DIR" to a directory containing one of the above files. If "Eigen3" provides a separate development package or SDK, be sure it has been installed.

-- Configuring PoseLib... done -- Configuring COLMAP... -- Enabling LSD support CMake Warning (dev) at build/_deps/colmap-src/cmake/FindDependencies.cmake:7 (find_package): Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake --help-policy CMP0167" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first): build/_deps/colmap-src/CMakeLists.txt:105 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: filesystem graph program_options system CMake Error at build/_deps/colmap-src/cmake/FindDependencies.cmake:13 (find_package): By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Eigen3", but CMake did not find one.

Could not find a package configuration file provided by "Eigen3" with any of the following names:

Eigen3Config.cmake
eigen3-config.cmake

Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set "Eigen3_DIR" to a directory containing one of the above files. If "Eigen3" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): build/_deps/colmap-src/CMakeLists.txt:105 (include)

-- Configuring incomplete, errors occurred!

saliteta commented 1 month ago

Solved by using

sudo apt install libeigen3-dev