cartographer_ros cmake Error
I'm following the google cartographer instructions for installing ros integration and ran into an error during the compilation step. When running
catkin_make_isolated --install --use-ninja
cmake failed to compile cartographer after successfully compiling Ceres, as it seemed to have trouble finding a sparse linear algebra library. A gist of the error resides here.
The important part is here:
==> Processing plain cmake package: 'cartographer'
==> Building with env: '/home/aleks/Documents/catkin_ws/install_isolated/env.sh'
==> cmake /home/aleks/Documents/catkin_ws/src/cartographer -DCMAKE_INSTALL_PREFIX=/home/aleks/Documents/catkin_ws/install_isolated -G Ninja in '/home/aleks/Documents/catkin_ws/build_isolated/cartographer/install'
-- Build type: Release
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- iostreams
-- regex
-- Found required Ceres dependency: Eigen version 3.2.92 in /usr/include/eigen3
-- Found required Ceres dependency: glog
-- Found required Ceres dependency: gflags
CMake Error at /home/aleks/Documents/catkin_ws/install_isolated/lib/cmake/Ceres/CeresConfig.cmake:88 (message):
Failed to find Ceres - Missing requested Ceres components:
[SparseLinearAlgebraLibrary] (components requested:
[SparseLinearAlgebraLibrary]). Detected Ceres version: 1.12.0 installed
in: /home/aleks/Documents/catkin_ws/install_isolated with components:
[LAPACK, SchurSpecializations, OpenMP].
Call Stack (most recent call first):
/home/aleks/Documents/catkin_ws/install_isolated/lib/cmake/Ceres/CeresConfig.cmake:379 (ceres_report_not_found)
CMakeLists.txt:30 (find_package)
CMake Error at CMakeLists.txt:30 (find_package):
Found package configuration file:
/home/aleks/Documents/catkin_ws/install_isolated/lib/cmake/Ceres/CeresConfig.cmake
but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT
FOUND.
What's odd is that it found Eigen, and even compiled Ceres, but still had the error.
I'm thinking this might be some catkin related dependency issue, anyone have any ideas?