天天看点

-- Could not find the required component ‘nodelet‘. The following CMake error indicates that you eit

编译报错信息这样

-- Could not find the required component 'nodelet'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "nodelet" with any
  of the following names:

    nodeletConfig.cmake
    nodelet-config.cmake

  Add the installation prefix of "nodelet" to CMAKE_PREFIX_PATH or set
  "nodelet_DIR" to a directory containing one of the above files.  If
  "nodelet" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  racecar/system/racecar/ackermann_cmd_mux/CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/shuai/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/shuai/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:320:cmake_check_build_system] 错误 1
Invoking "make cmake_check_build_system" failed
           

在社区找了很多资料

有的说需要下载ros-fuerte-octomap-mapping 可是下载时候没有找到对应的软件包,后来发现需要下载的是ros-noetic-nodelet

根据自己ROS版本更改,

sudo apt-get install ros-noetic-nodelet
           

转自

添加链接描述