csres报错
CMake Error at loam_livox/CMakeLists.txt:23 (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. Reason given by package:
The following imported targets are referenced, but are missing:
absl::log_flags absl::log absl::check absl::fixed_array absl::strings
absl::time
-- Configuring incomplete, errors occurred!
See also "/home/hlc/code/loam_livox_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/hlc/code/loam_livox_ws/build/CMakeFiles/CMakeError.log".
这实际上是ceres安装的时候的ceres-solver
/third_party/的第三方库没安装上
需要你先删除之前的安装
# 删除之前安装的 Ceres 和 Abseil
sudo rm -rf /usr/local/include/ceres
sudo rm -rf /usr/local/lib/libceres*
sudo rm -rf /usr/local/include/absl
sudo rm -rf /usr/local/lib/libabsl*
然后递归的克隆包
git clone --recursive https://ceres-solver.googlesource.com/ceres-solver
接下来的跟官网一致
mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver
make -j3
make test
# Optionally install Ceres, it can also be exported using CMake which
# allows Ceres to be used without requiring installation, see the documentation
# for the EXPORT_BUILD_DIR option for more information.
make install
参考
http://ceres-solver.org/installation.html
官网的除了没有recursive外其他还好