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.
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>