swarm-support
[Top][All Lists]
Advanced

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

Re: [Swarm-Support] gcj - swarm - exe


From: Paul E. Johnson
Subject: Re: [Swarm-Support] gcj - swarm - exe
Date: Fri, 15 Aug 2003 09:26:21 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703

The last time I fiddled with this, I wrote directions on compiling swarm programs
with swarm-gcj here:

http://lark.cc.ku.edu/~pauljohn/Swarm/Swarm-2.x_RPMSforRH7/


On August 12, 2003 Marcus Daniels posted a note called "Pretest 8" which announced a new MS Windows/Cygwin package,
and in there he mentioned that he followed this route to use gcj.

"
To use GCJ to build Swarm executables of Java Swarm models, you can add rules like this to your model implementation Makefile:

Here's an example for Java heatbugs:   (one line)

CLASSPATH=/Swarm-2.2/share/swarm/swarm.jar gcj -O2 -g --main=StartHeatbugs -L/Swarm-2.2/lib *.class /Swarm-2.2/lib/gcj_{swarm,gnubytecode}.o -o jheatbugs

Then you will need to inform the dynamic linker as to the location of the libraries:

export LTDL_LIBRARY_PATH=/Swarm-2.2/lib

Finally, run it:

./jheatbugs
"

It seems to me that the only difference is that this one sets LTDL_LIBRARY_PATH rather than LD_LIBRARY_PATH


Suman Kanuganti wrote:

Well,
I love gcj, allows to make native linux executables.
Few a times I was wondering how to make use of gcj to
make linux executables for the java programs using the
api other than which gcj supports, I mean which uses
an external jars such as swarm, biojava, and others.
Even I came to know awt, swings are not supported by
gcj yet. I did some study in shared libraries for gcj
with java support, but was not successfull anytime.

Suddenly, the swarm-gcj rpm took my attention about
which I doesnt know why it was used in swarm, I didnt
notice all these days, so is that helpfull in making
native linux executables for the programs using swarm?
If so, can anyone give me an example, I have swarm-gcj
rpm installed succesfully (RH9). I also really wonder
how do you share those libraries with gcj to make exe.
Like I want to use some other external jar to make an
executable, how do I do that using gcj?

Ohh, lot of questions, could anyone explain me this?
Thanks a lot.
Suman K

=====
Suman Kanuganti,
Swarm Group, Anth Dept., University of Missouri, Columbia.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support


--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700




reply via email to

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