Ask Your Question

cartographer_ros cmake Error

asked 2017-04-25 19:58:13 -0500

ThaHypnotoad gravatar image

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/'
==> 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:


  but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-20 03:40:30 -0500

Choco93 gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-04-25 19:58:13 -0500

Seen: 2,731 times

Last updated: Apr 25 '17