That could be an issue with how Fast-RTPS is being linked. It sounds like it isn't using RPATH and it should be.
Even without RPATH it should work if `~/ros2-osx/lib` is in your `DYLD_LIBRARY_PATH` environment variable after you source `~/ros2-osx/setup.bash` (this is the right one to source in most cases). If it is in the variable, then you may have SIP enabled which is a security feature in macOS that prevents propagation of the `DYLD_LIBRARY_PATH` to "system" binaries, like bash and make, which reside in `/usr/bin` and similar PATH folders.
If it is SIP then you can disable it (not recommended for security, but will work around the issue):
-
https://support.apple.com/en-us/HT204899
-
http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/
---
[Visit Topic](
https://discourse.ros.org/t/library-not-loaded-libfastcdr-dylib/2195/2) or reply to this email to respond.
If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
ros-users@lists.ros.org
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <
http://lists.ros.org/mailman//options/ros-users>