报错内容:
-- Detected Ceres version: 1.14.0 from /opt/ykcnnc/libs/libs/ceres-solver-1.14.0/include/ceres/version.h
-- No preference for use of exported Eigen CMake configuration set, and no hints for include directory provided. Defaulting to preferring an installed/exported Eigen CMake configuration if available.
-- Found installed version of Eigen: /usr/lib/cmake/eigen3
-- Found Eigen version 3.3.7: /usr/include/eigen3
-- Enabling use of Eigen as a sparse linear algebra library.
-- Found LAPACK library: /usr/lib/x86_64-linux-gnu/liblapack.so;/usr/lib/x86_64-linux-gnu/libblas.so
-- Building without SuiteSparse.
-- Building without CXSparse.
-- Google Flags disabled; no tests or tools will be built!
-- No preference for use of exported glog CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported glog CMake configuration if available.
-- Failed to find installed glog CMake configuration, searching for glog build directories exported with CMake.
-- Failed to find an installed/exported CMake configuration for glog, will perform search for installed glog components.
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
CMake Error at CMakeLists.txt:381 (message):
Can't find Google Log (glog). Please set either: glog_DIR (newer CMake
built versions of glog) or GLOG_INCLUDE_DIR & GLOG_LIBRARY or enable
MINIGLOG option to use minimal glog implementation.
-- Configuring incomplete, errors occurred!
See also "/opt/ykcnnc/libs/libs/ceres-solver-1.14.0/build/CMakeFiles/CMakeOutput.log".
See also "/opt/ykcnnc/libs/libs/ceres-solver-1.14.0/build/CMakeFiles/CMakeError.log".
解决方案:
安装 google-glog + gflags
sudo apt-get install libgoogle-glog-dev libgflags-dev
References