Well... I get it to work with 1.1.4 actually ... havn't try 1.1.5 ...

This is my little how to post in kaffe


# Alex Lau <[EMAIL PROTECTED]>

Kaffe-Directfb-AWT Mini-HOWTO


1) Jikes jikes-1.22.tar.bz2 from IBM $> wget ftp://www-126.ibm.com/pub/jikes/1.22/jikes-1.22.tar.bz2 $> tar jxvf jikes-1.22.tar.bz2 $> cd jikes-1.22 $> ./configure --prefix=/usr $> make $> sudo make install 2) Download Kaffe cvs $> tar jxvf kaffe-cvs-head-snap.tar.bz2 $> cd kaffe $> ./configure --with-kaffe-x-awt $> make $> make install

3) Directfb kawt download
$> cvs -d:pserver:[EMAIL PROTECTED]:/cvs/directfb -z3 login
$> cvs -d:pserver:[EMAIL PROTECTED]:/cvs/directfb -z3 co -P kawt
$> cd kawt
$> ./configure --with-jni=/usr/local/kaffe/include
** put the following line in the build.xml

<target name="kaffecp" if="kaffe_build" depends="init">
<pathelement path="${kaffejardir}/rt.jar" />
<pathelement path="${kaffejardir}/kaffeawt.jar" />

** update the src/java/java/awt/Toolkit.java file to become following

//static LightweightPeer lightweightPeer = new LightweightPeer() {
//};
static LightweightPeer lightweightPeer;

//static WindowPeer windowPeer = new WindowPeer() {
//};
static WindowPeer windowPeer;

$> make
$> make install
$> cp thirdparty/log4j.jar /usr/local/kaffe/jar/lib

** now you can run the sample

/usr/local/kaffe/bin/kaffe \
-Xbootclasspath:/p:/usr/local/kaffe/jre/lib/log4j.jar:\ # ok the log4j is in the thirdparty directory
/usr/local/share/kawt/kawt.jar:\
/usr/local/kaffe/jre/lib/kaffeawt.jar:\
/usr/local/kaffe/jre/lib/rt.jar \
-Djava.library.path=/usr/local/lib/libkawt.so \
test.awt.AwtTest


I may try 1.1.5 this week and see :)
What is the plan? let me know what I can do to help..
also I'm not sure ... peer classpath-gtk need to be so big...
anyway do you think the current kawt can make support
to all AWT framework? and keep on going for Swing and such?


the following is the version I build ... which I'm not sure it is 1.1.x??

Engine: Just-in-time v3 Version: 1.1.x-cvs Java Version: 1.1
Configuration/Compilation options:
Compile date : ä 2æ 4 18:17:27 CST 2005
Compile host : QThemAll.AvengerMoJo
Install prefix : /usr/local/kaffe
Thread system : unix-pthreads
Garbage Collector: kaffe-gc
CC : gcc
CFLAGS : -g -O2 -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wswitch-default -Wswitch-enum -Wtrigraphs -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wunknown-pragmas -Wstrict-aliasing -W -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wdisabled-optimization -pthread -DENABLE_BINRELOC
LDFLAGS :
ChangeLog head : 2005-01-29 Dalibor Topic <[EMAIL PROTECTED]>



Denis Oliver Kropp wrote:

Quoting Denis Oliver Kropp:


Quoting Alex Lau:


Anyone still interested to make awt and swing avalible on Directfb?


I just tried to build kawt with Kaffe 1.1.5, but it seems that
they changed a lot since 1.1.4, so I'm going back to that version
right now.



1.1.2 looks like the latest working version.



CVSROOT:        /cvs/directfb
Module name:    kawt
Changes by:     dok     20050518 11:28:12

Modified files:
       .              : README build.xml.in configure.in
       src/native/awt/DirectFB: Makefile.am fnt.c tlk.c

Log message:
Builds and runs with Kaffe 1.1.2 release branch.

Uses LiTE (for fonts only yet).







--

Alex Lau (AvengerMoJo)

-------------------------------------

Live or Die but Fight for It.
AvengerGear.com

-------------------------------------


_______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to