Skip to content

Macos rpath fix#2244

Open
artcore-c wants to merge 1 commit intoeclipse-cyclonedds:releases/0.10.xfrom
artcore-c:macos-rpath-fix
Open

Macos rpath fix#2244
artcore-c wants to merge 1 commit intoeclipse-cyclonedds:releases/0.10.xfrom
artcore-c:macos-rpath-fix

Conversation

@artcore-c
Copy link

@artcore-c artcore-c commented Jul 7, 2025

Summary

This change adds MacOS-specific INSTALL_RPATH and BUILD_RPATH settings for the idlc binary to ensure dependent dynamic libraries such as:

  • libiceoryx_posh.dylib
  • libiceoryx_binding_c.dylib
  • libiceoryx_hoofs.dylib

can be located at both build and runtime when used with ros2_rolling and colcon build.

Key points:

  • Fix resolves runtime aborts from idlc during the CycloneDDS build process
  • Targets MacOS only (if(APPLE))
  • Ensures MACOSX_RPATH is correctly set
  • Verified working on MacOS x86_64 (12.7.6 Monterey) with System Integrity Protection (SIP) enabled

Checklist

  • My code builds and works on at least one target platform (MacOS x86_64)
  • I have added tests to cover my changes (N/A - build system change only)
  • I have updated the documentation (N/A)
  • I have added a changelog entry for my changes
  • I have signed the Eclipse Contributor Agreement (ECA)
  • I have set the correct target branch (releases/0.10.x)
  • I have updated all relevant GitHub workflows if necessary (N/A)

Testing

  • Built with colcon build --symlink-install
  • Part of a functional ROS 2 Rolling workspace using the ros2.repos meta file
  • Confirmed that idlc executes without errors when invoked by CMake
  • Apple SIP enabled throughout testing

Related Issues

  • Closes: TBD
  • Improves platform compatibility for MacOS users using ROS 2 with CycloneDDS tooling

@artcore-c artcore-c changed the base branch from master to releases/0.10.x July 7, 2025 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant