cmake fails to find ceres-solver-2.2.0: Failed to find Ceres - Missing required Ceres dependency: glog
yurivict opened this issue · comments
CMakeLists.txt:
cmake_minimum_required (VERSION 3.13)
find_package (Ceres CONFIG REQUIRED)
Output:
-- Found required Ceres dependency: Eigen version 3.4.0 in /usr/local/share/eigen3/cmake
CMake Error at /usr/local/lib/cmake/Ceres/CeresConfig.cmake:85 (message):
Failed to find Ceres - Missing required Ceres dependency: glog.
Call Stack (most recent call first):
/usr/local/lib/cmake/Ceres/CeresConfig.cmake:253 (ceres_report_not_found)
CMakeLists.txt:5 (find_package)
CMake Error at CMakeLists.txt:5 (find_package):
Found package configuration file:
/usr/local/lib/cmake/Ceres/CeresConfig.cmake
but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT
FOUND.
glog-0.6.0 is installed.
CeresConfig.cmake has: set(CERES_GLOG_VERSION 0.6.0)
Version: 2.2.0
cmake-3.26.1
FreeBSD 13.2
glog may be installed but there can still be an issue locating the package.
What's the CMake output for your CMakeLists.txt
above after adding the line
find_package (glog 0.6 REQUIRED CONFIG)
prior to find_package (Ceres CONFIG REQUIRED)
?
Closing due to lack of response.