ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosdep install of libyaml-cpp-dev fails

asked 2021-11-15 13:53:51 -0500

ticotico gravatar image

Hi!

I have a package with the following dependency:

<depend>libyaml-cpp-dev</depend>

When I try to run the rosdep install mypackage command, I would expect that apt installs the libyaml-cpp-dev package. However, I get the following error instead:

Cannot locate rosdep definition for [libyaml-cpp-dev]

Any idea why rosdep fails in this case? Thx!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-15 14:00:40 -0500

tfoote gravatar image

You're using the debian package name not the rosdep key for this package.

If you look it up in the rules you'll see that that debian package corresponds to yaml-cpp

https://github.com/ros/rosdistro/blob...

You should use that key and rosdep will resolve it to libyaml-cpp-dev on Ubuntu as well different package names like libyaml-cpp-devel for Fedora. We current best practice is to use the debian package name however it's not guaranteed. And we don't change existing keys to avoid breaking existing users.

edit flag offensive delete link more

Comments

perfect, thx a lot for that lightning-fast answer! Some background info: here

ticotico gravatar image ticotico  ( 2021-11-15 14:06:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-11-15 13:53:51 -0500

Seen: 81 times

Last updated: Nov 15 '21