编译 cartographer_ros 出现 CMake Error: The following variables are used in this project, but they are..

编译 cartographer_ros 出现 CMake Error: The following variables are used in this project, but they are set to NOTFOUND.(2021.02.22)

ubuntu版本:20.04
ros版本:noetic

出现如下问题:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GMOCK_LIBRARY
    linked by target "time_conversion_test" in directory /home/mckros/catkin_ws/src/cartographer_ros/cartographer_
j@j-virtual-machine:~/grapher_ws$ cd /home/j/grapher_ws/build_isolated/cartographer_ros && /home/j/grapher_ws/install_isolated/env.sh ninja build.ninja [0/1] Re-running CMake... -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: system iostreams -- Eigen found (include: /usr/include/eigen3, version: 3.3.7) -- Found Boost: /usr/include (found suitable version "1.71.0", minimum required is "1.55.0") found components: system filesystem date_time iostreams regex -- looking for PCL_COMMON -- Found installed version of Eigen: /usr/lib/cmake/eigen3 -- Found required Ceres dependency: Eigen version 3.3.7 in /usr/include/eigen3 -- Found required Ceres dependency: glog -- Found installed version of gflags: /usr/lib/x86_64-linux-gnu/cmake/gflags -- Detected gflags version: 2.2.2 -- Found required Ceres dependency: gflags -- Found Ceres version: 1.14.0 installed in: /usr with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, OpenMP, Multithreading] -- Build type: Release -- Using CATKIN_DEVEL_PREFIX: /home/j/grapher_ws/devel_isolated/cartographer_ros -- Using CMAKE_PREFIX_PATH: /home/j/grapher_ws/install_isolated;/home/j/catkin_ws/devel;/opt/ros/noetic -- This workspace overlays: /home/j/grapher_ws/install_isolated;/home/j/catkin_ws/devel;/opt/ros/noetic -- Found PythonInterp: /usr/bin/python3.8 (found suitable version "3.8.10", minimum required is "3") -- Using PYTHON_EXECUTABLE: /usr/bin/python3.8 -- Using Debian Python package layout -- Using empy: /usr/lib/python3/dist-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/j/grapher_ws/build_isolated/cartographer_ros/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.10") -- Using Python nosetests: /usr/bin/nosetests3 -- catkin 0.8.12 -- BUILD_SHARED_LIBS is on -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GMOCK_LIBRARY (ADVANCED) linked by target "time_conversion_test" in directory /home/j/grapher_ws/src/cartographer_ros/cartographer_ros linked by target "configuration_files_test" in directory /home/j/grapher_ws/src/cartographer_ros/cartographer_ros linked by target "msg_conversion_test" in directory /home/j/grapher_ws/src/cartographer_ros/cartographer_ros linked by target "metrics_test" in directory /home/j/grapher_ws/src/cartographer_ros/cartographer_ros -- Configuring incomplete, errors occurred! See also "/home/j/grapher_ws/build_isolated/cartographer_ros/CMakeFiles/CMakeOutput.log". See also "/home/j/grapher_ws/build_isolated/cartographer_ros/CMakeFiles/CMakeError.log". FAILED: build.ninja /usr/bin/cmake -S/home/j/grapher_ws/src/cartographer_ros/cartographer_ros -B/home/j/grapher_ws/build_isolated/cartographer_ros ninja: error: rebuilding 'build.ninja': subcommand failed
最新发布
10-22
评论 19
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

锡城筱凯

你的鼓励是我创造的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值