Google Cartograher catkin_make_isolated error
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
Did you install gtest? https://gist.github.com/massenz/41bb2...
No I did not, but I don't want to use testing to run cartographer_ros. Would I still need to do it?
Have a look at build requirements here. It might help.
Thanks, but I did verify the requirements before the build. My system is up to date and compatible.