[kaffe] kawt-directfb on kaffe howto 
    Alex Lau 
    alex at brackeen.com
       
    Fri Feb  4 10:38:12 PST 2005
    
    
  
it is pretty simple :) let me know it is ok
-- 
Alex Lau (AvengerMoJo)
-------------------------------------
Live or Die but Fight for It.
AvengerGear.com
-------------------------------------
-------------- next part --------------
# Alex Lau <alex at avengergear.com> 
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
	$> make
	$> make install 
3) Directfb kawt download 
	$> cvs -d:pserver:anonymous at cvs.directfb.org:/cvs/directfb -z3 login
	$> cvs -d:pserver:anonymous at cvs.directfb.org:/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
    
    
More information about the kaffe
mailing list