ROS2 Error: Failed to find library

Typically: "How do I... ", "How can I... " questions
Post Reply
Nick_Name
Posts: 8
Joined: 18 Mar 2020, 13:58

ROS2 Error: Failed to find library

Post by Nick_Name »

Hi,

after building the ROS2 Interface in my ros2_ws with custom messages (added in /meta) and starting it in Coppelia, I receive the following error:

Code: Select all

Failed to find library 'custom_msgs__rosidl_typesupport_fastrtps_cpp'
double free or corruption (out)
./coppeliaSim.sh: line 33: 20197 Aborted                 (core dumped) "$dirname/$appname" "${PARAMETERS[@]}"

Even though I can find the file

Code: Select all

libcustom_msgs__rosidl_typesupport_fastrtps_cpp.so
in ros2_ws/build and ros2_ws/install/custom_msgs/lib

What am I missing?

BR Nick

fferri
Posts: 1227
Joined: 09 Sep 2013, 19:28

Re: ROS2 Error: Failed to find library

Post by fferri »

Did you source the ROS2 environment prior to starting CoppeliaSim?

Nick_Name
Posts: 8
Joined: 18 Mar 2020, 13:58

Re: ROS2 Error: Failed to find library

Post by Nick_Name »

Hi,

yes I sourced the environment beforehand with

Code: Select all

source install/local_setup.sh

fferri
Posts: 1227
Joined: 09 Sep 2013, 19:28

Re: ROS2 Error: Failed to find library

Post by fferri »

Then it is a ROS2 issue.

What is your platform and ROS2 version?

Post Reply