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

Error compiling SDK on Mac OSX: "use of undeclared identifier 'CLOCK_REALTIME'" #141

Closed
mcbridejc opened this issue Oct 31, 2017 · 1 comment
Assignees
Labels

Comments

@mcbridejc
Copy link

mcbridejc commented Oct 31, 2017

I have the latest master branch of the SDK: v3.5.3 is reported in ReleaseNote.txt.

When compiling for OS X, I get the following error:

./../src/dynamixel_sdk/port_handler_mac.c:210:17: error: use of undeclared identifier 'CLOCK_REALTIME'

I believe this is because many versions of OS X do not support the clock_gettime. Some stack overflow posts suggest that the latest XCode does add this API, but I ran into this issue and fixed it with this commit:

mcbridejc@8ae2358

I just wanted to pass this along, in case you were interested in pulling in the patch.

@LeonJung LeonJung mentioned this issue Nov 24, 2017
7 tasks
@LeonJung LeonJung self-assigned this Nov 28, 2017
LeonJung added a commit that referenced this issue Nov 28, 2017
Support getting of time on MacOSX/XCode versions that doesn't support
, and also solves'`Error compiling SDK on Mac OSX: "use of undeclared identifier 'CLOCK_REALTIME'" #141'
@LeonJung
Copy link
Contributor

@mcbridejc

Hi,
and thank you for the good advice.

This issue has been solved by merging #144

Thank you, again.

@LeonJung LeonJung mentioned this issue Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants