ros2 / rcl_logging

Logging implementations for ROS 2.
Apache License 2.0
20 stars 36 forks source link

Issues building packages on humble #101

Closed jankolkmeier closed 1 year ago

jankolkmeier commented 1 year ago

Using humble on 22.04, I'm having trouble building ros2_dotnet. I'm getting the error below, which seems to be related to rcl_logging. I have packages such as libspdlog1 libspdlog-dev installed.

Apologies if this has nothing to do with rcl_logging, or if this is an issue on my end. Any pointers would be appreciated.

Starting >>> rcldotnet
--- stderr: rcldotnet                         
CMake Error at /opt/ros/humble/share/rcl_logging_spdlog/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package):
  By not providing "Findspdlog.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "spdlog", but
  CMake did not find one.

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

    spdlogConfig.cmake
    spdlog-config.cmake

  Add the installation prefix of "spdlog" to CMAKE_PREFIX_PATH or set
  "spdlog_DIR" to a directory containing one of the above files.  If "spdlog"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /opt/ros/humble/share/rcl_logging_spdlog/cmake/rcl_logging_spdlogConfig.cmake:41 (include)
  /opt/ros/humble/share/rcl/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /opt/ros/humble/share/rcl/cmake/rclConfig.cmake:41 (include)
  CMakeLists.txt:8 (find_package)

---
Failed   <<< rcldotnet [0.26s, exited with code 1]
jankolkmeier commented 1 year ago

Running conda install -c conda-forge spdlog got me one step further. I'm not particularly familiar with the ros build systems, so I don't know if this is a case of a dependency not being declared properly in rcl_logging or in ros2_dotnet (or if this is just a user error on my side). Please let me know if I should take this over to ros2_dotnet.