RoboJackets / urc-software

Primary codebase for the RoboNav team's URC rover.
https://robojackets.org/teams/robonav/
MIT License
9 stars 2 forks source link

bug/nanopb_export_issue #58

Closed AR2100 closed 2 years ago

AR2100 commented 2 years ago

Description

This PR does the following:

Self Checklist

AR2100 commented 2 years ago

I get an error compiling on master:

--- stderr: urc_platform                                                                                                         
CMake Error at /home/robonav/colcon-urc/install/urc_nanopb/share/urc_nanopb/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package):
  By not providing "FindNanopb.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Nanopb", but
  CMake did not find one.

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

    NanopbConfig.cmake
    nanopb-config.cmake

  Add the installation prefix of "Nanopb" to CMAKE_PREFIX_PATH or set
  "Nanopb_DIR" to a directory containing one of the above files.  If "Nanopb"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /home/robonav/colcon-urc/install/urc_nanopb/share/urc_nanopb/cmake/urc_nanopbConfig.cmake:41 (include)
  CMakeLists.txt:26 (find_package)

I've run rosdep update && rosdep install --from-paths src --ignore-src -r -y.

You shouldn't need to export the Nanopb and Protobuf dependencies. All the necessary files should be copied over. I'm getting the error because ament is renaming the NanopbConfig.cmake files.