FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

News: Sources for Mac OS ported
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> Tioport
View previous topic :: View next topic  
Author Message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Tue Apr 03, 2007 1:47 am    Post subject: News: Sources for Mac OS ported Reply with quote

The repository now contains the converted SWT sources from
swt-3.2.1-macosx-carbon.zip

Hopefully, there is a MAC user, who can create the needed compile files (makefile, rebuild/build response file, batch file).
Please contact me for assistance.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 05, 2007 1:55 am    Post subject: Reply with quote

Two quick questions:
- is Tango required, or will standard Phobos do ?
(shouldn't it use version(Tango), if required ?)
- why is the linux platform/makefile called "posix" ?
(copied the Makefile.posix into Makefile.mac)
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 05, 2007 2:39 am    Post subject: Reply with quote

Tango is required. Well, it would also be possible to implement dejavu using phobos. But this would be a new implementation. A few version statements are not enough. The converted SWT code does not depend on tango/phobos directly.

Right, the Makefile.posix should better be called Makefile.linux. I will change that.

Note: Only the makefiles in swt-3.2.1-examples should be of interest. The ones in the swt folders are only for code convertion.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 05, 2007 6:20 am    Post subject: Reply with quote

keinfarbton wrote:
Tango is required. Well, it would also be possible to implement dejavu using phobos. But this would be a new implementation. A few version statements are not enough. The converted SWT code does not depend on tango/phobos directly.


OK, guess I should go ahead and try Tango on Mac OS X again then.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 05, 2007 6:22 am    Post subject: Reply with quote

keinfarbton wrote:
Right, the Makefile.posix should better be called Makefile.linux. I will change that.


I haven't checked how much is hardcoded to Linux. If it would work on FreeBSD/Solaris/Darwin/Cygwin or something, then maybe call it "gtk" ?

But if it requires a GNU/Linux system, then do by all means call it "linux".
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 1:34 am    Post subject: Reply with quote

I've installed GDC with Tango applied under /opt/gdc, and set up rebuild to it.
(GDC 0.23, Tango 0.96, rebuild 0.15, tioport r256)

Here are the initial errors:
Code:

../dejavu/dejavu/lang/StringBuffer.d:84: Error: forward reference to 'JArrayT!(wchar)'
../dejavu/dejavu/lang/StringBuffer.d:84: Error: dejavu.lang.JArray.JArrayChar is used as a type
../dejavu/dejavu/lang/StringBuffer.d:84: Error: cannot have parameter of type void

../dejavu/dejavu/io/OutputStream.d:25: Error: forward reference to 'JArrayT!(byte)'
../dejavu/dejavu/io/OutputStream.d:25: Error: dejavu.lang.JArray.JArrayByte is used as a type
../dejavu/dejavu/io/OutputStream.d:25: Error: cannot have parameter of type void

../dejavu/dejavu/lang/String.d:75: Error: forward reference to 'JArrayT!(wchar)'
../dejavu/dejavu/lang/String.d:75: Error: JArrayChar is used as a type
../dejavu/dejavu/lang/String.d:75: Error: cannot have parameter of type void

../dejavu/dejavu/io/InputStream.d:25: Error: forward reference to 'JArrayT!(byte)'
../dejavu/dejavu/io/InputStream.d:25: Error: dejavu.lang.JArray.JArrayByte is used as a type
../dejavu/dejavu/io/InputStream.d:25: Error: cannot have parameter of type void


Each appears several time, only pasted the first per file.



EDIT: using the -fall-sources flag seems to work, but slows the compile down considerably - moving onwards to linker errors now...
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 2:05 am    Post subject: Reply with quote

Updating tango from 0.96 to trunk fixed the linker errors.
i.e. tioport built correctly, now it found another complaint:

Code:

../../../bin/tioport swt-3.2.1-macosx-carbon.xml
create gen.d
loading 597 file(s)
tango.core.Exception.IOException: gen.xml/org/eclipse/swt/events/MouseTrackListener.java.xml: Too many open files
make: *** [gen.d] Error 1


Surprised

EDIT: Number of files increased with ulimit -n 1024 (up from default 256)
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 12, 2007 2:13 am    Post subject: Reply with quote

There are several DMD releases with various bugs, that does not allow to compile the SWT code. DMD 1.011 is the first since a long time.

The best chance to succeed with GDC, is when it is updated to DMD 1.011.

This is very related to the "DMD needs branches" thread in news.D
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 2:16 am    Post subject: Reply with quote

Stopping at:
Code:

Stage 1 ...
Stage 2 ...
Stage 3 ...
Refactoring ...
JObjectImplToJObjectFixer
ArrayFixer
ArrayRefFixer
IdentifierEscaperFixer
ImportJavaLangFixer
ToStringFixer
InitFixer
SwitchFixer
StubMissingReturnFixer
InnerClassThisCastFixer
ClassObjectPropertyFixer
AnonymousClassFixer
PullinDerivedMethodsFixer
UniqueFieldAndMethodsFixer
RenameShadowingVarsFixer
FinallyBlockFixer
EvalOrderFixer
NativeDelegationFixer
ModifierFixer
ClassRegistrationFixer
make: *** [gen.d] Bus error


Will try again later.
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 12, 2007 2:17 am    Post subject: Reply with quote

oh, erm, you do not need to re-convert the sources.
This is already done.
in the gen.d folder.

You only need to set up one of the example in the swt-3.2.1-examples directory, by importing from the swt-3.2.1-macos/gen.d directory
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 12, 2007 2:21 am    Post subject: Reply with quote

Bus error
Very Happy OMG, What is that???

Never saw something like that.
Are you online in the moment?
Can you contact me in irc?
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 12, 2007 2:25 am    Post subject: Reply with quote

Probably this is something like out of memory?
On my machine, the convertion of swt needs up to 1,8 GB or RAM.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 2:26 am    Post subject: Reply with quote

keinfarbton wrote:
There are several DMD releases with various bugs, that does not allow to compile the SWT code. DMD 1.011 is the first since a long time.

The best chance to succeed with GDC, is when it is updated to DMD 1.011.

This is very related to the "DMD needs branches" thread in news.D


According to this, wouldn't 1.0.11 just have new and different bugs ? Razz

No idea on the ETA of GDC 0.24, though. Current GDC 0.23 is at DMD 1.007
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Thu Apr 12, 2007 2:28 am    Post subject: Reply with quote

keinfarbton wrote:
Bus error
Very Happy OMG, What is that???
Never saw something like that.


"Bus error, take the train"
Seriously, it's the same as a segfault.

Quote:
Are you online in the moment?
Can you contact me in irc?


Online, no IRC.
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Apr 12, 2007 2:34 am    Post subject: Reply with quote

Quote:
According to this, wouldn't 1.0.11 just have new and different bugs ? Razz


well, dmd 1.011 works for me here.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Tioport All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group