首页 > 电脑常识 > 区块链

FastPlanner编译错误

admin 区块链 2021-04-26 15:59:25 linux  
后台-系统设置-扩展变量-手机广告位-内容正文底部

提示确少模块 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
在这里插入图片描述
两个方法:

  1. sudo apt-get install ros-melodic-cmake-modules(这里melodic替换为你的ros版本)

  2. cmake_modules 地址 https://github.com/ros/cmake_modules
    不同ros对应版本:在这里插入图片描述
    我的ros版本是melodic,下载0.4-devel版本的。
    然后就是

mkdir build 
cd build 
cmake ..
make .
sudo make install

文章来源:https://blog.csdn.net/qq_39366151/article/details/116081548

后台-系统设置-扩展变量-手机广告位-内容正文底部
版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
本文地址:https://jcdi.cn/diannaochangshi/qukuailian/779.html

留言与评论(共有 0 条评论)
   
验证码:
后台-系统设置-扩展变量-手机广告位-评论底部广告位

教程弟

https://www.jcdi.cn/

统计代码 | 京ICP1234567-2号

Powered By 教程弟 教程弟

使用手机软件扫描微信二维码