Fix compile erros when using RoboStack (conda)
The RoboStack maintainers helped to fix compile errors when building the UR drivers using a conda environment. conda is, in my humble opinion, very useful and the suggested changes might be helpful for others.
For more information, please see RoboStack/ros-noetic#155 and RoboStack/ros-noetic#157 .
This seems unusual at first.
The console_bridge issues should probably be gone with https://github.com/UniversalRobots/Universal_Robots_Client_Library/pull/74 merged.
As for the -D__STDC_FORMAT_MACROS definition: Why is this necessary?
Hi, thanks for having a look. To be honest, I don't know what -D__STDC_FORMAT_MACROS does or why it is necessary. It was suggested to me by the maintainer of RoboStack here.
Maybe you could chime in on RoboStack/ros-noetic#157 to check where this fits best?
@fmauch wrote:
As for the
-D__STDC_FORMAT_MACROSdefinition: Why is this necessary?
From How to printf uint64_t? Fails with: “spurious trailing ‘%’ in format”:
The ISO C99 standard specifies that these macros must only be defined if explicitly requested.
#define __STDC_FORMAT_MACROS #include <inttypes.h> ... now PRIu64 will work
Thanks @gavanderhoorn
From my point of view none of the changes here should then be necessary with the latest versions.
@nberliner could you try building the driver without the changes with the latest library version (master or boost branch) and the latest master of this driver?
See the README about building the library from source, as well.
I've tried to build the driver as well as ur_client_library from source. Unfortunately, building the ur_client_library within the RoboStack conda environment seems to be rather complicated (see here) and catkin_make_isolated failed. I probably need to wait until the RoboStack maintainers include the updates.
Please feel free to close this PR, it's definitely beyond my expertise.
Thanks for looking into it :)
This PR hasn't made any progress for quite some time and will be closed soon. Please comment if it is still relevant.
I should have a look at this again, before closing this.
This PR hasn't made any progress for quite some time and will be closed soon. Please comment if it is still relevant.