maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   SWT on N900/Fremantle? (https://talk.maemo.org/showthread.php?t=40778)

JanKrejcarek 2010-03-26 23:29

Re: SWT on N900/Fremantle?
 
Great work, thanks a lot! It works like a charm.

Jan

Ulysses 2010-03-27 19:52

Re: SWT on N900/Fremantle?
 
I think I'm going to enjoy writing, compiling *and* running SWT applications onboard. This is really great news for java developers and N900 owners. Thank you for your contributions, Wonko.

BTW, one of my SWT app uses the browser widget.

The error I get is:

Code:

java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3555 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file
Previously, I exported the following environment variable, because I do have fennec installed.

Code:

MOZILLA_FIVE_HOME=/opt/mozilla
Ulysses.

Wonko 2010-03-29 08:35

Re: SWT on N900/Fremantle?
 
Its nice to see this is useful :)

Quote:

Originally Posted by Ulysses (Post 584621)
BTW, one of my SWT app uses the browser widget.

The error I get is:

Code:

java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3555 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file

Thats right, I didn't build this component yet.
As it turns out building this part of SWT is more complicated.

I started to fiddle about this component the weekend.
So far i got it build and was able to run a very simple test application.
Though the functionality is far from being usable.
E.g. scrolling does not work and links do not work either.
Just the first web page opened is displayed.

If you still want to have a look at the result you can get it at http://user.fh-frankfurt.de/~rc9000/...mental/swt.jar
I tested the whole thing using fennec 1.0.0 from the Mozilla web site.
The whole thing is run as follows:
Code:

MOZILLA_FIVE_HOME=/opt/mozilla/xulrunner-1.9.2.1 java -cp .:swt.jar test.BrowserTest

Wonko 2010-03-30 09:32

Re: SWT on N900/Fremantle?
 
Alright, the browser works! :)

I uploaded compiled versions to http://user.fh-frankfurt.de/~rc9000/.../experimental/
The patch can be found at http://user.fh-frankfurt.de/~rc9000/...-mozilla.patch

I'll update the build instructions accordingly on the first page.

soeiro 2010-03-30 13:39

Re: SWT on N900/Fremantle?
 
Are you using that Cambrige version of OpenJDK or did you manage to compile OpenJDK from Debian?

Ulysses 2010-03-30 14:56

Re: SWT on N900/Fremantle?
 
Congratulations, Wonko, thanks for the good work!

Soeiro, I'm using the Cambridge OpenJDK.

Wonko 2010-03-31 18:41

Re: SWT on N900/Fremantle?
 
Quote:

Originally Posted by soeiro (Post 588246)
Are you using that Cambrige version of OpenJDK or did you manage to compile OpenJDK from Debian?

I am also using the "Cambridge OpenJDK".

Wonko 2010-03-31 23:58

Re: SWT on N900/Fremantle?
 
I added two more patches and uploaded the results to the experimental directory.
Scrollable Composites now make use of the touch UI for scrolling and Tree and Table are scrollable in all directions.
The patches are found at the usual location.

Wonko 2010-05-06 22:08

Re: SWT on N900/Fremantle?
 
Ok,
you can now also grab SWT from the repository.
Currently its only in devel but I think I'll promote it soon.
SWT will be installed in /opt/maemo/usr/share/swt and a symlink will be placed to /usr/share/swt.
Because SWT is a library you have to install it via "apt-get install swt-hildon".

Wonko 2010-05-07 11:03

Re: SWT on N900/Fremantle?
 
Quote:

Originally Posted by Wonko (Post 647196)
Because SWT is a library you have to install it via "apt-get install swt-hildon".

Renamed the package to libswt-hildon.
Excuse the inconvenience.


All times are GMT. The time now is 23:20.

vBulletin® Version 3.8.8