Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add add_definitions(-D__STDC_FORMAT_MACROS) to our catkin #157

Closed
wolfv opened this issue Aug 12, 2021 · 7 comments
Closed

Add add_definitions(-D__STDC_FORMAT_MACROS) to our catkin #157

wolfv opened this issue Aug 12, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@wolfv
Copy link
Member

wolfv commented Aug 12, 2021

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.

@nberliner
Copy link

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

@danzimmerman
Copy link

danzimmerman commented Jul 6, 2022

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

The ensuing discussion in UniversalRobots/Universal_Robots_ROS_Driver#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
Copy link

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...

@wolfv
Copy link
Member Author

wolfv commented Jul 12, 2022

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
Copy link
Member Author

wolfv commented Jul 12, 2022

(not just when using vinca & boa)

@Tobias-Fischer
Copy link
Collaborator

Ah I see ..

@Tobias-Fischer Tobias-Fischer added the enhancement New feature or request label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants