RobotecAI / ros2cs

A C# (.Net) implementation of ros2 client library (rcl), enabling communication between ros2 ecosystem and C#/.Net applications such as Unity3D
Apache License 2.0
89 stars 22 forks source link

Unable to build standalone on 22.04 / humble #53

Closed jankolkmeier closed 1 year ago

jankolkmeier commented 1 year ago

ros2cs_core fails with the error shown below regarding CycloneDDS. I've followed the instructions from README-UBUNTU.md, I've installed all possible cyclone related package.

I'm able to build the overlay version & run the tests. I also tried to build the standalone version from the humble22 branch (same issue).

Apologies if this is just user error and/or not related to ros2cs. Any pointers would be appreciated.

--- stderr: ros2cs_core
'patchelf' found in /usr/bin/patchelf
CMake Error at CMakeLists.txt:191 (find_package):
  By not providing "FindCycloneDDS.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "CycloneDDS", but CMake did not find one.

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

    CycloneDDSConfig.cmake
    cyclonedds-config.cmake

  Add the installation prefix of "CycloneDDS" to CMAKE_PREFIX_PATH or set
  "CycloneDDS_DIR" to a directory containing one of the above files.  If
  "CycloneDDS" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:370 (get_standalone_dependencies)

---
Failed   <<< ros2cs_core [0.39s, exited with code 1]
jankolkmeier commented 1 year ago

Apologies, my issue turned out to be a miniconda installation hiding libraries. Not sourcing miniconda and clean rebuilding fixed the issue.