编译ros_noetic源码时提示以下错误:
CMake Warning at /root/ros_noetic_ws/install_isolated/share/catkin/cmake/test/gtest.cmake:160 (message):
skipping gtest 'test_aligned_alloc' in project 'allocators' because gtest
was not found
Call Stack (most recent call first):
/root/ros_noetic_ws/install_isolated/share/catkin/cmake/test/gtest.cmake:89 (_catkin_add_executable_with_google_test)
/root/ros_noetic_ws/install_isolated/share/catkin/cmake/test/gtest.cmake:37 (_catkin_add_google_test)
CMakeLists.txt:16 (catkin_add_gtest)
CMake Error at CMakeLists.txt:17 (target_link_libraries):
Cannot specify link libraries for target "test_aligned_alloc" which is not
built by this project.
解决办法:
sudo apt-get install libgtest-dev -y