質問内容
以下のサイトを参考に、『Cartographer』ROSを実装しようとしているのですが、ビルドをする際にエラー場表示されます。
ビルド
catkin_make_isolated --install --use-ninja
エラー内容
==> Processing catkin package: 'cartographer_ros' ==> Building with env: '/home/user/catkin_ws/install_isolated/env.sh' ==> cmake /home/user/catkin_ws/src/cartographer_ros/cartographer_ros -DCATKIN_DEVEL_PREFIX=/home/user/catkin_ws/devel_isolated/cartographer_ros -DCMAKE_INSTALL_PREFIX=/home/user/catkin_ws/install_isolated -G Ninja in '/home/user/catkin_ws/build_isolated/cartographer_ros' -- Found Boost: /usr/lib/aarch64-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/aarch64-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 -- Found GMock: gmock_main;-lpthread;GMOCK_LIBRARY-NOTFOUND;/usr/lib/aarch64-linux-gnu/libgtest.a;-lpthread -- Using CATKIN_DEVEL_PREFIX: /home/user/catkin_ws/devel_isolated/cartographer_ros -- Using CMAKE_PREFIX_PATH: /home/user/catkin_ws/install_isolated;/home/user/catkin_ws/devel;/home/user/catkin_ws/devel;/opt/ros/noetic -- This workspace overlays: /home/user/catkin_ws/install_isolated;/home/user/catkin_ws/devel;/home/user/catkin_ws/devel;/opt/ros/noetic -- 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/user/catkin_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.5") -- Using Python nosetests: /usr/bin/nosetests3 -- catkin 0.8.9 -- 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 linked by target "time_conversion_test" in directory /home/user/catkin_ws/src/cartographer_ros/cartographer_ros linked by target "configuration_files_test" in directory /home/user/catkin_ws/src/cartographer_ros/cartographer_ros linked by target "msg_conversion_test" in directory /home/user/catkin_ws/src/cartographer_ros/cartographer_ros linked by target "metrics_test" in directory /home/user/catkin_ws/src/cartographer_ros/cartographer_ros -- Configuring incomplete, errors occurred! See also "/home/user/catkin_ws/build_isolated/cartographer_ros/CMakeFiles/CMakeOutput.log". See also "/home/user/catkin_ws/build_isolated/cartographer_ros/CMakeFiles/CMakeError.log". <== Failed to process package 'cartographer_ros': Command '['/home/user/catkin_ws/install_isolated/env.sh', 'cmake', '/home/user/catkin_ws/src/cartographer_ros/cartographer_ros', '-DCATKIN_DEVEL_PREFIX=/home/user/catkin_ws/devel_isolated/cartographer_ros', '-DCMAKE_INSTALL_PREFIX=/home/user/catkin_ws/install_isolated', '-G', 'Ninja']' returned non-zero exit status 1. Reproduce this error by running: ==> cd /home/user/catkin_ws/build_isolated/cartographer_ros && /home/user/catkin_ws/install_isolated/env.sh cmake /home/user/catkin_ws/src/cartographer_ros/cartographer_ros -DCATKIN_DEVEL_PREFIX=/home/user/catkin_ws/devel_isolated/cartographer_ros -DCMAKE_INSTALL_PREFIX=/home/user/catkin_ws/install_isolated -G Ninja
ちなみに、catkin_ws内に、新たにファイルを追加した際にも同様のエラーが表示されます。
(『CMakeLists.txt』が存在するファイルを新たに追加した際に、エラーが出ます。)
解決策を知っている方がいましたら、教えていただけると幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。