![]() |
2010-01-16
, 11:50
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#2
|
CLASSPATH="path_to_swt/swt.jar" /home/user/java/openjdk/camswl/j2sdk-image/bin/javac SimpleSwtSample.java
CLASSPATH=.:path_to_swt/swt.jar /home/user/java/openjdk/camswl/j2sdk-image/bin/java -Djava.library.path=path_to_swt/ SimpleSwtSample
The Following 4 Users Say Thank You to Wonko For This Useful Post: | ||
![]() |
2010-01-16
, 14:49
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#3
|
#!/bin/sh N900_IP=192.168.0.125 N900_SWT_DIR=/home/user/swt #Optionally build support for mozilla and xulrunner #cd ${HOME} #mkdir xulrunner_dev #cd xulrunner_dev #wget http://security.debian.org/debian-security/pool/updates/main/x/xulrunner/xulrunner-dev_1.9.0.18-1_armel.deb #dpkg -x xulrunner-dev_1.9.0.18-1_armel.deb . #wget http://ftp.de.debian.org/debian/pool/main/n/nspr/libnspr4-dev_4.7.1-5_armel.deb #dpkg -x libnspr4-dev_4.7.1-5_armel.deb . #wget http://moff.mozilla.com/maemo/en-US/dists/chinook/release/binary-armel/xulrunner_1.9.2.1+rc1_armel.deb #dpkg -x xulrunner_1.9.2.1+rc1_armel.deb . #cp opt/mozilla/xulrunner-1.9.2.1/lib* usr/lib/xulrunner-devel-1.9/lib apt-get install icedtea6 export JAVA_HOME=/opt/icedtea6 export AWT_LIB_PATH=$JAVA_HOME/jre/lib/arm cd $HOME mkdir swt cd swt wget http://download.eclipse.org/eclipse/downloads/drops/R-3.6.2-201102101200/swt-3.6.2-gtk-linux-x86.zip unzip swt-3.6.2-gtk-linux-x86.zip unzip src.zip -d swt_src #get swt-3.6.2-hildon-cumulative.patch cd swt_src patch -p1 < ../swt-3.6.2-hildon-cumulative.patch make -j1 -f make_linux.mak NO_STRIP=y CC=gcc CXX=g++ make_awt make -j1 -f make_linux.mak NO_STRIP=y CC=gcc CXX=g++ make_swt make -j1 -f make_linux.mak NO_STRIP=y CC=gcc CXX=g++ make_atk make -j1 -f make_linux.mak NO_STRIP=y CC=gcc CXX=g++ make_cairo #make -j1 -f make_linux.mak NO_STRIP=y CC=gcc CXX=g++ make_mozilla #make -j1 -f make_linux.mak NO_STRIP=y CC=gcc CXX=g++ make_xulrunner cd .. ssh root@$N900_IP mkdir $N900_SWT_DIR scp -r swt_src root@$N900_IP:$N900_SWT_DIR ssh root@$N900_IP chown -R user:users $N900_SWT_DIR
mkdir swt cd swt cp -r /opt/scratchbox/users/<your user>/home/<your user>/swt/swt_src . cd swt_src #Get the modified build.xml from the repository. #Finally, run ant. ant
![]() |
2010-01-29
, 15:37
|
Posts: 1 |
Thanked: 0 times |
Joined on Jan 2010
|
#4
|
![]() |
2010-01-29
, 18:22
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#5
|
java.lang.UnsatisfiedLinkError : no swt-gtk-3555 or swt-gtk in swt.library.path? or jar file etc.
Please help.
JRE 1.6.0.10
CLASSPATH=./swt.jar java -Djava.library.path=path_to_swt/ SimpleSwtSample
![]() |
2010-01-29
, 18:51
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#6
|
![]() |
2010-01-31
, 10:19
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#7
|
![]() |
2010-02-05
, 16:36
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#8
|
![]() |
2010-02-07
, 20:31
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#9
|
![]() |
2010-03-26
, 16:13
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#10
|
The Following 5 Users Say Thank You to Wonko For This Useful Post: | ||
as Java "kind of" works (http://talk.maemo.org/showthread.php?t=37405) it would be great to have also SWT running.
One option would be to build SWT in Scratchbox on the ARMEL target. Though afaik building SWT requires Java and here unfortunately both JDK's fail to run under Scartchbox with similar errors:
Is it feasible to get the required files from debian packages or is the whole task a bigger endeavor?
At least the guys from Jalimo also got SWT packaged for their Java port.
Any comments are highly appreciated.
Best regards
Wonko
Last edited by Wonko; 2010-01-16 at 11:54. Reason: Changed title