|
|
Home » Developing U++ » Mac OS » First milestone reached - I am now working in cocoa theide...
|
|
|
Re: First milestone reached - I am now working in cocoa theide... [message #50128 is a reply to message #50127] |
Fri, 03 August 2018 16:39 |
Novo
Messages: 1361 Registered: December 2006
|
Ultimate Contributor |
|
|
Thank you!
I still do not understand how you compile upp.
What I'm getting is
.../uppsrc/Core/TimeDate.cpp:629:29: error: use of undeclared identifier 'CLOCK_REALTIME'
int result = clock_settime(CLOCK_REALTIME, &sys_time);
^
"grep -r CLOCK_REALTIME /usr/include" gives me nothing.
But
$ grep -r CLOCK_REALTIME /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include//time.h:_CLOCK_REALTIME __CLOCK_AVAILABILITY = 0,
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include//time.h:#define CLOCK_REALTIME _CLOCK_REALTIME
finds it.
But Xcode include dirs are not included into your GCC.bm ...
Regards,
Novo
|
|
|
|
Re: First milestone reached - I am now working in cocoa theide... [message #50136 is a reply to message #50132] |
Sun, 05 August 2018 17:30 |
Novo
Messages: 1361 Registered: December 2006
|
Ultimate Contributor |
|
|
I've fixed the problem by upgrading Xcode from version 8 to version 9. So, I guess, Xcode 9 is a requirement.
Anyway, Xcode 8 had a terrible bug, hopefully it is fixed in 9.
mirek wrote on Fri, 03 August 2018 11:54
Interestingly, there is no /usr/include on my mac.... Maybe that is related.
I'm using Homebrew. I guess /usr/include was created by it. On the other hand, I'm compiling Upp on my old development machine, so, this directory could have been created by other software ...
The only change I've made, I've replaced "/usr/X11R6/lib" with "/usr/X11/lib". I'm using XQuartz as the XServer...
mirek wrote on Fri, 03 August 2018 11:54
gcc -Wp,-v -stdlib=libc++ -x c++ - -fsyntax-only
Thanks for the tip! I didn't know that.
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Tue Jun 04 00:33:12 CEST 2024
Total time taken to generate the page: 0.02167 seconds
|
|
|