www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - SWT tioported

reply "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
TioPort is a Java to D converter.

www.dsource.org/projects/tioport

The main reason for starting this project was, to create a SWT port for
Linux, Windows and Mac OSX. The convertion is going fully automatically,
so it should be possible to update to upcoming SWT releases.

You can download the current snapshot of the converted SWT:
http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-linux-gtk.tar.bz2?format=raw
http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-win32.zip?format=raw

The SWT examples:
see the repository in trunk/ports/swt-3.2.1/swt-3.2.1-examples

Screenshots of the examples:
http://dsource.org/projects/tioport/wiki/port_swt

I hope all permissions on the website are set up correctly. If you have
problems seeing certain pages, please tell me.

Frank
Apr 11 2007
next sibling parent Aarti_pl <aarti interia.pl> writes:
Frank Benoit (keinfarbton) napisał(a):
 TioPort is a Java to D converter.
 
 www.dsource.org/projects/tioport
 
 The main reason for starting this project was, to create a SWT port for
 Linux, Windows and Mac OSX. The convertion is going fully automatically,
 so it should be possible to update to upcoming SWT releases.
 
 You can download the current snapshot of the converted SWT:
 http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-linux-gtk.tar.bz2?format=raw
 http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-win32.zip?format=raw
 
 The SWT examples:
 see the repository in trunk/ports/swt-3.2.1/swt-3.2.1-examples
 
 Screenshots of the examples:
 http://dsource.org/projects/tioport/wiki/port_swt
 
 I hope all permissions on the website are set up correctly. If you have
 problems seeing certain pages, please tell me.
 
 Frank

Great work - I really appreciate it! I was looking for good, cross-platform GUI toolkit for D for quite a long time. And additionally Java to D converter! Really great! Regards Marcin Kuszczak
Apr 11 2007
prev sibling next sibling parent Aarti_pl <aarti interia.pl> writes:
Frank Benoit (keinfarbton) napisał(a):
 TioPort is a Java to D converter.
 
 www.dsource.org/projects/tioport
 
 The main reason for starting this project was, to create a SWT port for
 Linux, Windows and Mac OSX. The convertion is going fully automatically,
 so it should be possible to update to upcoming SWT releases.
 
 You can download the current snapshot of the converted SWT:
 http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-linux-gtk.tar.bz2?format=raw
 http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-win32.zip?format=raw
 
 The SWT examples:
 see the repository in trunk/ports/swt-3.2.1/swt-3.2.1-examples
 
 Screenshots of the examples:
 http://dsource.org/projects/tioport/wiki/port_swt
 
 I hope all permissions on the website are set up correctly. If you have
 problems seeing certain pages, please tell me.
 
 Frank

BTW - please allow access to SVN on Trac Wiki. It is not accessible ATM. BR Marcin Kuszczak
Apr 11 2007
prev sibling next sibling parent reply torhu <fake address.dude> writes:
Frank Benoit (keinfarbton) wrote:
 TioPort is a Java to D converter.
 
 www.dsource.org/projects/tioport

I couldn't find any build instructions. What would the command line be for building the paint example with bud? I fixed a couple of missing imports, but I wasn't able to get rid of all the missing symbols when linking. Sorry I didn't keep the error messages.
Apr 11 2007
parent reply "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
 
 I couldn't find any build instructions.  What would the command line be
 for building the paint example with bud?
 
 I fixed a couple of missing imports, but I wasn't able to get rid of all
 the missing symbols when linking.  Sorry I didn't keep the error messages.

The zip file only contain the raw converted SWT sources. You cannot build any example with them. 1. Make a checkout "svn co http://svn.dsource.org/projects/tioport/trunk tioport" 2. Go to the example dir ports/swt-3.2.1/swt-3.2.1-examples 3. You need rebuild installed. 4. Call the Build file: For linux there is a Makefile.linux make -f Makefile.linux paint For windows there is there is a paint_win32_build.bat file. paint_win32_build.bat
Apr 11 2007
parent reply bobef <asd asd.asd> writes:
Could you please release the precompiled libraries with .di import files
instead of full sources and the libraries linked with dejavu/tango. This would
make more sense to release precompiled libraries and they will not depend on
tango which (in my case) is impossible to compile (tried dmd 1.010/011).
Apr 11 2007
next sibling parent "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
Yes, that would be good.
Well i am a linux dmd user. :)
That means, i cannot build libs. Especially not for windows.

Perhaps somebody can contribute a makefile/buildfile and compiled libs?
Apr 12 2007
prev sibling parent "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
bobef schrieb:
 Could you please release the precompiled libraries with .di import files
instead of full sources and the libraries linked with dejavu/tango. This would
make more sense to release precompiled libraries and they will not depend on
tango which (in my case) is impossible to compile (tried dmd 1.010/011).
 

In the svn repository, there is now a deploy directory. For linux it contains now a precompiled lib and all headers. This decreases compile time from ~30 sec to ~5 sec on my machine. For windows i hope for someone to take the Ticket 15, creating such a lib for windows.
Apr 12 2007
prev sibling next sibling parent reply Marcio <mqmnews321 sglebs.com> writes:
Frank Benoit (keinfarbton) wrote:
 TioPort is a Java to D converter.

About dejavu http://www.dsource.org/projects/tioport/wiki/dejavu
Why not using a port of the java original including the implementations?

Copyright

Why not using the GNU classpath?

GPL

Why not use Harmony? http://harmony.apache.org/ marcio
Apr 11 2007
next sibling parent Lars Ivar Igesund <larsivar igesund.net> writes:
Marcio wrote:

 Frank Benoit (keinfarbton) wrote:
 TioPort is a Java to D converter.

About dejavu http://www.dsource.org/projects/tioport/wiki/dejavu >Why not using a port of the java original including the implementations? > >Copyright > >Why not using the GNU classpath? > >GPL Why not use Harmony? http://harmony.apache.org/ marcio

Because at some level, you need to implement system functionality, and to some degree, the JRE is atomic operations of Java. I agree with Frank that this is the sensible level to do the necessary D implementation. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Apr 12 2007
prev sibling parent "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
SWT uses only a very limited subset of the JRE.
So it was not so hard to do an own implementation without the worry or
licenses.
While thinking about porting other apps, it looks like, this is a much
more difficult task. Hopefully Sun will release the JRE in the OpenJDK
project in the next few months. Then it is GPL and i am thinking about
porting it then.

In the meantime I want to use own implementations.
Apr 12 2007
prev sibling next sibling parent Ary Manzana <ary esperanto.org.ar> writes:
Frank Benoit (keinfarbton) escribiˇ:
 TioPort is a Java to D converter.
 
 www.dsource.org/projects/tioport
 
 The main reason for starting this project was, to create a SWT port for
 Linux, Windows and Mac OSX. The convertion is going fully automatically,
 so it should be possible to update to upcoming SWT releases.
 
 You can download the current snapshot of the converted SWT:
 http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-linux-gtk.tar.bz2?format=raw
 http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-win32.zip?format=raw
 
 The SWT examples:
 see the repository in trunk/ports/swt-3.2.1/swt-3.2.1-examples
 
 Screenshots of the examples:
 http://dsource.org/projects/tioport/wiki/port_swt
 
 I hope all permissions on the website are set up correctly. If you have
 problems seeing certain pages, please tell me.
 
 Frank

That is really awsome!!
Apr 11 2007
prev sibling next sibling parent Clay Smith <clayasaurus gmail.com> writes:
Frank Benoit (keinfarbton) wrote:
 TioPort is a Java to D converter.
 
 www.dsource.org/projects/tioport
 
 The main reason for starting this project was, to create a SWT port for
 Linux, Windows and Mac OSX. The convertion is going fully automatically,
 so it should be possible to update to upcoming SWT releases.
 
 You can download the current snapshot of the converted SWT:
 http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-linux-gtk.tar.bz2?format=raw
 http://dsource.org/projects/tioport/browser/downloads/swt-3.2.1-win32.zip?format=raw
 
 The SWT examples:
 see the repository in trunk/ports/swt-3.2.1/swt-3.2.1-examples
 
 Screenshots of the examples:
 http://dsource.org/projects/tioport/wiki/port_swt
 
 I hope all permissions on the website are set up correctly. If you have
 problems seeing certain pages, please tell me.
 
 Frank

This is quite amazing... are you telling me that Windows, Linux, and Mac OSX ports of DWT are done, and done automatically? You should probably post this in the d.D.dwt newsgroup as well.
Apr 12 2007
prev sibling next sibling parent reply "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
The repository has now a "deploy" directory with contains a precompiled
lib and headers for linux and win32.
Apr 15 2007
next sibling parent Serg Kovrov <kovrov no.spam> writes:
Frank Benoit (keinfarbton) wrote:
 The repository has now a "deploy" directory with contains a precompiled
 lib and headers for linux and win32.

Great, thanks! -- serg.
Apr 15 2007
prev sibling parent reply Davidl <Davidl 126.com> writes:
i don't get why have this error message
dejavu-lang-class.obj does contain string of _resources_getDataById

.\dejavu-lang-Class.obj(dejavu-lang-Class)
  Error 42: Symbol Undefined _resources_getDataById
--- errorlevel 1
Apr 16 2007
parent reply "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
Davidl schrieb:
 i don't get why have this error message
 dejavu-lang-class.obj does contain string of _resources_getDataById
 
 ..\dejavu-lang-Class.obj(dejavu-lang-Class)
  Error 42: Symbol Undefined _resources_getDataById
 --- errorlevel 1
 

are you using the checkout and the paint_win32_rebuild.rf ? The resources_getDataById function is a function from a generated file, e.g. resources_paint.d. It is necessary to give it explicitly to the compiler/linker. The .rf file above does already include it, so it should work.
Apr 16 2007
parent reply Davidl <Davidl 126.com> writes:
:o thx , rebuild -rfpaint_win32_rebuild.rf compiles,
but it fails to run correctly
paint.exe emits me :
exception Access Violation, , 0, object.Exception

it's placed in the right directory with those dlls :
swt-awt-win32-3235.dll
swt-gdip-win32-3235.dll
swt-wgl-win32-3235.dll
swt-win32-3235.dll


 Davidl schrieb:
 i don't get why have this error message
 dejavu-lang-class.obj does contain string of _resources_getDataById

 ..\dejavu-lang-Class.obj(dejavu-lang-Class)
  Error 42: Symbol Undefined _resources_getDataById
 --- errorlevel 1

are you using the checkout and the paint_win32_rebuild.rf ? The resources_getDataById function is a function from a generated file, e.g. resources_paint.d. It is necessary to give it explicitly to the compiler/linker. The .rf file above does already include it, so it should work.

Apr 16 2007
next sibling parent reply "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
ah right, i copied the libs in my windows directory.

now this access violation is really bad, because if have no glue of
windows debugging.
This application always run for me without that.
Can you try to locate the problem with a debugger?
Apr 16 2007
parent Davidl <Davidl 126.com> writes:
oh sorry, i don't know if ur lib is compiled with -g option?
if not, i think it's hard to be debug, since i didn't manage
to compile paint.d with deploy/gen.d/

 ah right, i copied the libs in my windows directory.

 now this access violation is really bad, because if have no glue of
 windows debugging.
 This application always run for me without that.
 Can you try to locate the problem with a debugger?

Apr 16 2007
prev sibling parent "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
today doob and I had a longer session, trying to get the examples
running on his windows box. He also got the access violation. It turns
out, the lib i compiled needs to match exactly the tango version.

After he build the tioport-swt-3.2.1-win32.lib on his own machine, it
worked.
Apr 16 2007
prev sibling parent "Frank Benoit (keinfarbton)" <benoit tionex.removethispart.de> writes:
The actual repository can build the precompiled libs and examples with
DSSS 0.61

See the README in /trunk

For windows it is necessary to either grab the rebuild.exe from the
dsss-svn/trunk/rebuild/rebuild.exe, or wait for the next DSSS release.
Apr 18 2007