提示确少模块 cmake_modules:
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “cmake_modules”
with any of the following names:
cmake_modulesConfig.cmake
cmake_modules-config.cmake
Add the installation prefix of “cmake_modules” to CMAKE_PREFIX_PATH or set
“cmake_modules_DIR” to a directory containing one of the above files. If
“cmake_modules” provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
Fast-Planner/uav_simulator/local_sensing/CMakeLists.txt:66 (find_package)
– Configuring incomplete, errors occurred!
See also “/home/nanorobot/catkin_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/nanorobot/catkin_ws/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed
两个方法:
-
sudo apt-get install ros-melodic-cmake-modules(这里melodic替换为你的ros版本)
-
cmake_modules 地址 https://github.com/ros/cmake_modules
不同ros对应版本:
我的ros版本是melodic,下载0.4-devel版本的。
然后就是
mkdir build
cd build
cmake ..
make .
sudo make install