Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Mac OS » First milestone reached - I am now working in cocoa theide...
First milestone reached - I am now working in cocoa theide... [message #50124] Thu, 02 August 2018 20:06 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I think a this point I am ready to share this with community to gain some inputs:

https://drive.google.com/file/d/1OGujxXFGgnGMNc_99xGFaIW6rTo wpzjf/view?usp=sharing

(this is binary of theide, u++ sources are in normal trunk).

Cocoa theide is now more usable than X11 variant, but a lot of things needs to developed/fixed. Brief list of issues is in CtrlCore/cocotodo.txt.

I appreciate any inputs.

There are somne issues with mac keyboard differences: K_CTRL is mapped to Command key (e.g. means Ctrl+C, Ctrl+V works as expected), K_ALT to Control key. (OSX U++ also adds K_OPTION). As Command+Tab is unavailable in OSX (consumed by task switcher), cycling of files is mapped to Option+Tab.
Re: First milestone reached - I am now working in cocoa theide... [message #50125 is a reply to message #50124] Fri, 03 August 2018 04:27 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Thank you very much for doing this!

Could you please also post here your CLANG.bm? I'm having a problem compiling ide: 'CLOCK_REALTIME' is undefined.
I've just copied my CLANG.bm over from Linux. It looks like I'm missing something ...
I'm using clang 8.0.


Regards,
Novo
Re: First milestone reached - I am now working in cocoa theide... [message #50127 is a reply to message #50125] Fri, 03 August 2018 10:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
(I am using "GCC", by accident, but it just invokes CLANG anyway)
  • Attachment: GCC.bm
    (Size: 1.24KB, Downloaded 211 times)
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 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
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 #50132 is a reply to message #50128] Fri, 03 August 2018 17:54 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, I guess, long term this is exactly the kind of info I need... Smile

Anyway, I did not payed much attention so far, installed xcode and X11 theide compiled out of box (thanks again to everybody who contributed to that). It looks like those paths are 'internal':

gcc -Wp,-v -stdlib=libc++ -x c++ - -fsyntax-only
clang -cc1 version 9.1.0 (clang-902.0.39.2) default target x86_64-apple-darwin17.5.0
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/v1"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks (framework directory)
End of search list.


Interestingly, there is no /usr/include on my mac.... Maybe that is related.
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 Go to previous message
Novo is currently offline  Novo
Messages: 1358
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
Previous Topic: Finally...
Next Topic: New theide for MacOSX
Goto Forum:
  


Current Time: Thu Mar 28 14:32:53 CET 2024

Total time taken to generate the page: 0.00983 seconds