failed to install cartographer
I'm installing cartographer_ros in ubuntu 16.04 and ROS kinetic gcc version is 5.4 And, I Changed catkin_ws/src/cartographer_ros/cartographer_ros/CMakeList.txt -->(line 43) #google_enable_testing()
Then, I type,
catkin_make_isolated --install --use-ninja
I got error like to
Finished processing package [3 of 5]: 'cartographer'
==> Processing catkin package: 'cartographer_ros'
==> Building with env: '/home/tw/catkin_ws/install_isolated/env.sh'
build.ninja exists, skipping explicit cmake invocation...
==> ninja build.ninja in '/home/tw/catkin_ws/build_isolated/cartographer_ros'
[1/1] Re-running CMake...
Re-run cmake no build system arguments
-- Found installed version of Eigen: /usr/lib/cmake/eigen3
-- Found required Ceres dependency: Eigen version 3.2.92 in /usr/include/eigen3
-- Found required Ceres dependency: glog
-- Found required Ceres dependency: gflags
-- Found Ceres version: 1.13.0 installed in: /home/tw/catkin_ws/install_isolated with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, OpenMP]
-- Build type: Release
-- Using CATKIN_DEVEL_PREFIX: /home/tw/catkin_ws/devel_isolated/cartographer_ros
-- Using CMAKE_PREFIX_PATH: /home/tw/catkin_ws/install_isolated;/opt/ros/kinetic
-- This workspace overlays: /home/tw/catkin_ws/install_isolated;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/tw/catkin_ws/build_isolated/cartographer_ros/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.8
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- iostreams
-- serialization
-- chrono
-- atomic
-- regex
-- looking for PCL_COMMON
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- iostreams
-- regex
CMake Error at /opt/ros/kinetic/share/catkin/cmake/assert.cmake:3 (message):
Assertion failed: GTEST_LIBRARIES (value is 'GMOCK_LIBRARIES-NOTFOUND')
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:140 (catkin_add_gtest)
-- Configuring incomplete, errors occurred!
See also "/home/tw/catkin_ws/build_isolated/cartographer_ros/CMakeFiles/CMakeOutput.log".
See also "/home/tw/catkin_ws/build_isolated/cartographer_ros/CMakeFiles/CMakeError.log".
FAILED: /usr/bin/cmake -H/home/tw/catkin_ws/src/cartographer_ros/cartographer_ros -B/home/tw/catkin_ws/build_isolated/cartographer_ros
ninja: error: rebuilding 'build.ninja': subcommand failed
<== Failed to process package 'cartographer_ros':
Command '['/home/tw/catkin_ws/install_isolated/env.sh', 'ninja', 'build.ninja']' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/tw/catkin_ws/build_isolated/cartographer_ros && /home/tw/catkin_ws/install_isolated/env.sh ninja build.ninja
Command failed, exiting.
please help me. How can I Install Cartographer? thanks!