swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Compiling javaswarm on an x86_64 box


From: Marcus G. Daniels
Subject: Re: [Swarm-Support] Compiling javaswarm on an x86_64 box
Date: Fri, 23 Nov 2007 10:01:06 -0700
User-agent: Thunderbird 2.0.0.9 (X11/20071115)

Gary Polhill wrote:
I don't need a 64-bit build at all--just something that works on the machine. 
In fact, the version of Java 1.4.2 I installed was the 32-bit package. So, can 
I somehow tell Swarm to do a 32-bit build? And do I need to have told all the 
prerequisite software to do the same
So this is what worked for me on a x86_64 Fedora 8 machine. Note sure if other distributions provide 32 bit compilers and libraries by default.
1) Pull the CVS source from savannah.gnu.org and setup the autoconf stuff
cvs -d :pserver:address@hidden:/sources/swarm login
[hit return]
cvs -d :pserver:address@hidden:/sources/swarm co swarm
[you will need cvs, autoconf, automake, libtool installed to do the following autogen.sh -- there may be version complaints when you run autogen.sh -- the recent tools distributed with Fedora 8 reports some, but they aren't harmful]
./autogen.sh

2) Installed a 32 bit JDK 1.6 in my home directory (not a RPM, just the unpackable archive)

3) I built BLT 2.4.z from source as:

CC='gcc -m32' ./configure --prefix=$HOME/packages/swarm-32 --exec-prefix=$HOME/packages/swarm-32
make; make install

4) Built Swarm like so (note the --build command line option which avoids the wrong target being chosen for the avcall library) $HOME/src/swarm/configure --prefix=$HOME/packages/swarm-32 --with-bltdir=$HOME/packages/swarm-32 --with-jdkdir=$HOME/jdk1.6.0_03 --build=i586-unknown-linux-gnu
make; make install

5) Provide the usual settings:
export LD_LIBRARY_PATH=$HOME/packages/swarm-32/lib
export CLASSPATH=.:$HOME/packages/swarm-32/share/swarm/swarm.jar:$HOME/packages/swarm-32/share/swarm/kawa.jar
export PATH=$HOME/packages/swarm-32/bin:$PATH
export SWARMHOME=$HOME/packages/swarm-32

6) Then:
cd $HOME/src/apps/java/jheatbugs
javac *.java # doesn't like some copyright symbols, but there are only warnings
java StartHeatbugs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]