ros-noetic icon indicating copy to clipboard operation
ros-noetic copied to clipboard

Add add_definitions(-D__STDC_FORMAT_MACROS) to our catkin

Open wolfv opened this issue 4 years ago • 7 comments

We could (globally) fix the problem with add_definitions(-D__STDC_FORMAT_MACROS) by adding it to our catkin patches so that it's set for all builds involving catkin under Linux.

wolfv avatar Aug 12 '21 07:08 wolfv

I've opened a PR for now to have the fix in the UR repo as you suggested (see #155). It would be great though if it would be possible to fix that globally.

Thanks again

nberliner avatar Aug 13 '21 14:08 nberliner

Do we understand why this doesn't seem to be an issue for the ordinary ROS distribution channels?

The ensuing discussion in https://github.com/UniversalRobots/Universal_Robots_ROS_Driver/pull/453 makes it seem like it's not necessary, but I definitely had to add this locally on a physical Ubuntu machine to get ur_calibration from the ROS2 Driver to build in my Robostack Humble environment.

I notice it's not in the ur_calibration patch now:

https://github.com/RoboStack/ros-humble/blob/main/patch/ros-humble-ur-calibration.patch

I see all the binaries are there (and I've installed that and checked it) Are you adding this definition globally now?

EDIT:

Also had to include it in the ur_client_library local build, along with the ros-humble-ur-client-library patch content.

danzimmerman avatar Jul 06 '22 19:07 danzimmerman

Do we understand why this doesn't seem to be an issue for the ordinary ROS distribution channels?

I see now in local vinca/boa work that that this seems to be specified globally in the recipe build scripts...

danzimmerman avatar Jul 12 '22 17:07 danzimmerman

Indeed: https://github.com/RoboStack/vinca/blob/ae9e8fbbb7705925c289af372124ad621f295f6c/vinca/templates/build_catkin.sh.in#L51-L52

Tobias-Fischer avatar Jul 12 '22 21:07 Tobias-Fischer

I think that the idea was to add this to the catkin package, though, to enable it globally in all CMake scripts based on catkin @Tobias-Fischer

wolfv avatar Jul 12 '22 21:07 wolfv

(not just when using vinca & boa)

wolfv avatar Jul 12 '22 21:07 wolfv

Ah I see ..

Tobias-Fischer avatar Jul 12 '22 21:07 Tobias-Fischer