当前位置:   article > 正文

Cmake报错-Could not find a package configuration file provided by...

could not find a package configuration file provided by "serial" with any of

catkin_make报错:

  1. CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  2. Could not find a package configuration file provided by "serial" with any
  3. of the following names:
  4. serialConfig.cmake
  5. serial-config.cmake
  6. Add the installation prefix of "serial" to CMAKE_PREFIX_PATH or set
  7. "serial_DIR" to a directory containing one of the above files. If "serial"
  8. provides a separate development package or SDK, be sure it has been
  9. installed.
  10. Call Stack (most recent call first):
  11. 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的空间,可以根据需要哪个包安装哪个包即可。
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/602789
推荐阅读
相关标签
  

闽ICP备14008679号