赞
踩
catkin_make报错:
- CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
- Could not find a package configuration file provided by "serial" with any
- of the following names:
-
- serialConfig.cmake
- serial-config.cmake
-
- Add the installation prefix of "serial" to CMAKE_PREFIX_PATH or set
- "serial_DIR" to a directory containing one of the above files. If "serial"
- provides a separate development package or SDK, be sure it has been
- installed.
- Call Stack (most recent call first):
- pnc/CMakeLists.txt:37 (find_package)
解决方法:
方法一:
sudo apt-get install ros-melodic-serial
其中melodic为ubuntu18.04对应的ROS版本,可根据自己的版本修改。
问题解决。
方法二:
也可以一次性安装所有的包:
sudo apt-get install ros-melodic-*
不太建议第二种方法,需要15个G的空间,可以根据需要哪个包安装哪个包即可。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。