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: Gary Polhill
Subject: Re: [Swarm-Support] Compiling javaswarm on an x86_64 box
Date: Mon, 26 Nov 2007 18:05:36 +0000

Thanks Marcus! I am now doing the engineer's victory dance...

>>> "Marcus G. Daniels" <address@hidden> 2007-11-23 17:01 >>>
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

_______________________________________________
Support mailing list
address@hidden 
http://www.swarm.org/mailman/listinfo/support


-- 
Please note that the views expressed in this e-mail are those of the
sender and do not necessarily represent the views of the Macaulay
Institute. This email and any attachments are confidential and are
intended solely for the use of the recipient(s) to whom they are
addressed. If you are not the intended recipient, you should not read,
copy, disclose or rely on any information contained in this e-mail, and
we would ask you to contact the sender immediately and delete the email
from your system. Thank you.
Macaulay Institute and Associated Companies, Macaulay Drive,
Craigiebuckler, Aberdeen, AB15 8QH.




reply via email to

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