rosidl_runtime_c not found

asked 2020-07-11 14:37:01 -0600

eloquent-fox gravatar image

I was following this tutorial: https://index.ros.org/doc/ros2/Tutori...

It seemed traight forward, however, the build step returns errors:

> colcon build
Starting >>> cpp_pubsub
[Processing: cpp_pubsub]
--- stderr: cpp_pubsub
CMake Error at /ros2/share/rosidl_runtime_c/cmake/ament_cmake_export_libraries-extras.cmake:48 (message):
  Package 'rosidl_runtime_c' exports the library 'rosidl_runtime_c' which
  couldn't be found

Can someone give me a hint what this error means and how to fix it? I'm using ROS2 Eloquent.

edit retag flag offensive close merge delete

Comments

The error seems odd since the referenced tutorial does not depend on rosidl_runtime_c as far as I know. If I follow the steps in a Ubuntu 18.04 docker container, I am unable to reproduce the error.

Are there any changes to the cpp_pubsub package that were made outside the scope of the tutorial?

jacobperron gravatar image jacobperron  ( 2020-07-13 12:42:18 -0600 )edit

I made no changes. To be honest, I don't fully understand the library model in ROS, for example I have header files for rosidl_runtime_c in ros2/include/rosidl_runtime_c but in my ros2/lib there is no evidence for a rosidl_runtime_c library...

eloquent-fox gravatar image eloquent-fox  ( 2020-07-29 04:22:41 -0600 )edit

Sounds like an issue during installation. There should be a .so for rosidl_runtime_c. How did you install ROS 2?

jacobperron gravatar image jacobperron  ( 2020-07-29 11:25:18 -0600 )edit