novatel / novatel_oem7_driver

ROS Driver for NovAtel OEM7 GNSS/SPAN Receivers
https://wiki.ros.org/novatel_oem7_driver
MIT License
108 stars 58 forks source link

Building humble branch failed: Could not find a package configuration file provided by "gps_msgs" with any of the following names: gps_msgsConfig.cmake gps_msgs-config.cmake #83

Open Erika1kuta opened 10 months ago

Erika1kuta commented 10 months ago

Describe the bug I built the humble branch and encountered this issue, which indicates that I lack gps_msgs, is this a dependency? Do I need additional installation or a bug in my system? Because I am using Ubuntu 20 Focal (not Jammy, because I also need ROS 1 on my PC), Humble is built from the source code. Looking forward to your reply. Many thanks.

~/rwth/src/novatel_oem7_driver$ ./build.sh -f
Starting >>> novatel_oem7_msgs
Finished <<< novatel_oem7_msgs [21.2s]                       
Starting >>> novatel_oem7_driver
--- stderr: novatel_oem7_driver                          
CMake Error at CMakeLists.txt:14 (find_package):
  By not providing "Findgps_msgs.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gps_msgs",
  but CMake did not find one.

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

    gps_msgsConfig.cmake
    gps_msgs-config.cmake

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

---
Failed   <<< novatel_oem7_driver [3.16s, exited with code 1]

Summary: 1 package finished [25.5s]
  1 package failed: novatel_oem7_driver
  1 package had stderr output: novatel_oem7_driver

Environment (please complete the following information): Ubuntu 20 Focal ROS: Humble

MortezaAliyari commented 8 months ago

@Erika1kuta I had the same issue and by Installing binary package the gps_msg will be added. sudo apt install ros-humble-novatel-oem7-driver then build again.

novatel-applications-engineering commented 8 months ago

Hello @Erika1kuta, thank you for your question.

As I notice from your terminal, you are missing the gps_msgs package which is a dependency for our driver. Please try installing the binary package for our driver first and then build it again.

To install binary package : sudo apt install ros-humble-novatel-oem7-driver

Feel free to reach out to us if you have further questions or concerns.