microsoft / ros_azure_iothub

This repository contains a ROS node for bidirectional communication with IoT Hub
38 stars 30 forks source link

Fix package dependency #42

Closed shmpwk closed 2 years ago

shmpwk commented 3 years ago

Fix #41 .

Following How to Build (Ubuntu Linux install), the error occur like

$ rosdep install --from-paths src --ignore-src -r -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
roscpp_azure_iothub: Cannot locate rosdep definition for [libazure-iot-sdk-c]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully

As @Timple said

This is because the dependency is listed as libazure-iot-sdk-c source While it is registered in rosdep as azure-iot-sdk-c source

Now I tested only melodic-devel, but maybe the other branchs should be also fixed.

ooeygui commented 2 years ago

It looks like it was recently added to the rosdep registry with a different name than what had been used by Microsoft's Windows rosdep registry. This would need to be fixed in the windows rosdep before being pulled.

Timple commented 2 years ago

Which of the two is the 'correct' name?

I never really know when lib is prepended.

ooeygui commented 2 years ago

Honestly - I think the azure-iot-sdk-c is the right name, I just need to fix the Windows rosdep before pulling this change. Amuzingly, the lib prefix makes sense on Linux, but not Windows.