[ros-users] [Discourse.ros.org] [Next Generation ROS] Library not loaded: libfastcdr.dylib
mch
ros.discourse at gmail.com
Thu Jul 13 01:52:30 UTC 2017
I finally fixed it by adding these lines to my CMakeLists.txt
<pre>
...
#ROS2 beta1
SET(ROS_LIBRARIES_DIR "${ament_cmake_DIR}/../../../lib")
#ROS2 beta2
#SET(ROS_LIBRARIES_DIR "${fastcdr_LIB_DIR}")
...
ament_add_gmock(${PROJECT_NAME}_test
MyTestName.cpp
APPEND_LIBRARY_DIRS "${ROS_LIBRARIES_DIR}"
)
</pre>
---
[Visit Topic](https://discourse.ros.org/t/library-not-loaded-libfastcdr-dylib/2195/6) or reply to this email to respond.
More information about the ros-users
mailing list