ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

cartographer_ros cmake Error

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

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2021-06-29 14:02:37 -0600

multivac gravatar image

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.

edit flag offensive delete link more
0

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

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

Question Tools

2 followers

Stats

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

Seen: 4,117 times

Last updated: Jun 29 '21