Google Cartograher catkin_make_isolated error

asked 2017-10-31 09:22:43 -0500

i_robot_flight gravatar image

updated 2017-10-31 11:30:39 -0500

gvdhoorn gravatar image

Hello everyone,

I am trying to use google cartographer for integrating mobile robots with LiDAR data. I noticed on github that issue has been there previously because of testing being enabled and I commented out the google_enable_testing() line in src/cartograoher_ros/cartograoher_ros/CMakeLists.txt. The initial error vanished and it built 4/5 before giving me another error:

CMake Error at /opt/ros/kinetic/share/catkin/cmake/assert.cmake:3 (message):
Assertion failed: GTEST_LIBRARIES (value is ")
Call Stack (most recent call first):
/opt/ros/kinetic/share/catkin/cmake/test/gtest.cmake:84 (assert)
/opt/ros/kinetic/share/catkin/cmake/test/gtest.cmake:34 (catkin_add_executable_with_gtest)
CMakeLists.txt:139 (catkin_add_gtest)

--Configuring incomplete, errors occurred!
See also "path/to/log/file"
<==Failed to process package cartographer_ros':
Command [/path/to/env.sh, cmake, path/to/src/cartographer_ros/cartographer_ros, -DCATKIN_DEVEL_PREFIX=/path/to/devel_isolated/cartographer_ros, DCMAKE_INSTALL_PREFIX=/path/to/install_isolated, -G, Ninja] returned non-zero exit status 1

Reproduce this error by running:
==> cd /path/to/above/command

Command failed, exiting.

I understand something is wrong with the testing, but I am not sure how to resolve this issue. Would I need to comment out more lines and from which files? Can anyone please help me solve this issue? Thank you very much!

PS: I am running Ubuntu 16.04, ROS Kinetic, g++ 5.4

edit retag flag offensive close merge delete

Comments

bpinaya gravatar imagebpinaya ( 2017-10-31 11:04:42 -0500 )edit

No I did not, but I don't want to use testing to run cartographer_ros. Would I still need to do it?

i_robot_flight gravatar imagei_robot_flight ( 2017-10-31 11:32:45 -0500 )edit

Have a look at build requirements here. It might help.

l4ncelot gravatar imagel4ncelot ( 2017-11-01 03:32:55 -0500 )edit

Thanks, but I did verify the requirements before the build. My system is up to date and compatible.

i_robot_flight gravatar imagei_robot_flight ( 2017-11-01 16:38:56 -0500 )edit