Robotics StackExchange | Archived questions

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

catkinmakeisolated --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?

Asked by ThaHypnotoad on 2017-04-25 19:58:13 UTC

Comments

Answers

Hope you resolved the issue, but here is what I did. I had similar issue, I tried installing Ceres from external source with different cmake options but no luck. Resolved it by changing CMakeLists in ceres-solver. Just by setting EIGENSPARSE param on line 106 as ON.

Asked by Choco93 on 2017-09-20 03:40:30 UTC

Comments

For me, the installer was looking in the wrong place for include files. It was looking in /include for a folder that was actually in /usr/include, so I just made a link to that folder in the location where the installer was searching.

Asked by multivac on 2021-06-29 14:02:37 UTC

Comments