【ROS入门】解决Could not find a package configuration file provided by “nmea_msgs“问题
笔者Linux虚拟机系统为Ubuntu20.04,安装ROS我参考的是https://blog.csdn.net/weixin_45168199/article/details/106910446安装完成后创建ROS工作空间$ mkdir -p ~/catkin_ws/src$ cd ~/catkin_ws/src$ catkin_init_workspace在Ubuntu中Home文件夹下即可看
笔者Linux虚拟机系统为Ubuntu20.04,安装ROS我参考的是https://blog.csdn.net/weixin_45168199/article/details/106910446
安装完成后创建ROS工作空间
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace
在Ubuntu中Home文件夹下即可看到对应生成的文件
笔者在配置GitHub上一个开源软件的过程中遇到一个问题:
提示:CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “nmea_msgs” with
Add the installation prefix of “nmea_msgs” to CMAKE_PREFIX_PATH or set
“nmea_msgs_DIR” to a directory containing one of the above files. If
“nmea_msgs” provides a separate development package or SDK, be sure it has
been installed.
解决方法:在GitHub找到该库https://github.com/ros-drivers/nmea_msgs
然后将该库安装到HOME/catkin_ws/src文件夹下,在Ubuntu终端输入:
cd $HOME/catkin_ws/src
git clone https://github.com/ros-drivers/nmea_msgs
然后再重新配置我的开源软件就解决这个问题了。
更多推荐
所有评论(0)