问题解决—Could not find a package configuration file provided by "geographic_msgs"

时间:2024-03-21 17:03:36

1、错误描述: 

Could not find the required component 'geographic_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "geographic_msgs"
  with any of the following names:

    geographic_msgsConfig.cmake
    geographic_msgs-config.cmake

  Add the installation prefix of "geographic_msgs" to CMAKE_PREFIX_PATH or
  set "geographic_msgs_DIR" to a directory containing one of the above files.
  If "geographic_msgs" provides a separate development package or SDK, be
  sure it has been installed.

2、错误截图

问题解决—Could not find a package configuration file provided by "geographic_msgs"

3、错误原因

上面的cmake错误表明,要么安装同名的包,要么更改环境以便找到它。一般是没安装功能包

4、错误解决

安装就OK

sudo apt-get install ros-kinetic-geographic-msgs