欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Could not find a package configuration file provided by "geographic_msgs"

程序员文章站 2022-07-14 15:43:38
...

报错1 :

Errors     << realm_rviz_plugin:cmake /home/yk/catkin_ws/logs/realm_rviz_plugin/build.cmake.004.log
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (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.
Call Stack (most recent call first):
  CMakeLists.txt:3 (find_package)


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.
Call Stack (most recent call first):
  CMakeLists.txt:3 (find_package)


cd /home/yk/catkin_ws/build/realm_rviz_plugin; catkin build --get-env realm_rviz_plugin | catkin env -si  /usr/bin/cmake /home/yk/catkin_ws/src/OpenREALM/realm_rviz_plugin --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/yk/catkin_ws/devel/.private/realm_rviz_plugin -DCMAKE_INSTALL_PREFIX=/home/yk/catkin_ws/install -DCMAKE_BUILD_TYPE=Release; cd -

解决方案:

ros-kinetic版本:sudo apt-get install ros-kinetic-geographic-msgs
ros-melodic版本:sudo apt-get install ros-melodic-geographic-msgs

报错2:

 Could not find a package configuration file provided by "geodesy" with any
  of the following names:

    geodesyConfig.cmake
    geodesy-config.cmake

解决方案:

ros-kinetic版本:sudo apt-get install ros-kinetic-geodesy
相关标签: ROS 安装包安装