swarm-support
[Top][All Lists]
Advanced

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

Experience and question about compiling swarm-2002-03-09 on an out-of-th


From: Christian Linder
Subject: Experience and question about compiling swarm-2002-03-09 on an out-of-the-box Debian Woody
Date: 19 Mar 2002 15:21:08 +0100

Hi there, I thought maybe I can help some newbies (like I am) who want
to install Swarm on a Debian Woody system. Thanks to Marcus I figured
out the following. I dont know if any of that stuff is very smart nor
right nor anything, it is just how I made it and at the same time a
question if it is smart. Maybe it can also help the developers to see
how stupid users try to use their stuff. Please also read my question at
the end.

Ok, here is what I achieved so far:

1. Install all the needed packages with dselect (you can get blt82 and
hdf5_1.2.1 deb-files from the swarm2.1.1 debian potato distribution and
install them with dpkg -i XX.deb, the rest comes with debian woody). I
only could make it work with only Tcl/Tk8.2 installed. If Tcl/Tk8.3 is
installed, it compiled heatbugs ok, but with both the 8.2-configure line
below and an 8.3 in the configure line it crashed with 
"TkExtra error (instance)". 

2. Force the use of gcc-3.0

The idiot-as-i-am-way:
>rm /usr/bin/gcc
>ln -s /usr/bin/gcc-3.0 /usr/bin/gcc

3. Execute the command
>./configure  --with-tclincludedir=/usr/include/tcl8.2 \
--with-tkincludedir=/usr/include/tcl8.2 --with-defaultdir=/usr \
--with-jdkdir=/XXX/XXX/XXX/j2sdk1.4.0 \
--with-tclscriptdir=/usr/lib/tcl8.2 --with-tkscriptdir=/usr/lib/tk8.2

This is because in Debian the filestructure is somewhat different for
the Tcl/Tk-libraries. You have to change the path were your JDK is
installed (I couldnt get it to work with kaffee..., ehh .. neither with
jdk, I will ask that question later). You can also just leave out this
option if you are not interested in java, but only objc. 

Then, with a make in the swarm directory, it will compile until

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libobjc -I../..
-I../../libobjc -I.. -I./.. -I./../collections -I./../misc
-I/home/chrischan/programme/j2sdk1.4.0/include
-I/home/chrischan/programme/j2sdk1.4.0/include/linux -I../../avcall
-D_GNU_SOURCE -DBUILDING_SWARM -g -O2 -Wall -Wno-import -Wno-protocol
-Werror -Wno-unknown-pragmas -Wno-unknown-pragmas -c HDF5Object.m -MT
HDF5Object.lo -MD -MP -MF .deps/HDF5Object.TPlo  -fPIC -DPIC -o
.libs/HDF5Object.lo
cc1obj: warnings being treated as errors
HDF5Object.m: In function `-[HDF5(c) _createEnd]':
HDF5Object.m:1308: warning: passing arg 5 of `H5Tregister' from
incompatible pointer type

I dont know if I am smart if I turn of that warnings are being treated
as errors, but it will compile then.
The idiot-as-i-am-way: Search for "-Werror" in src/defobj/Makefile and
delete it.

Now it compiles ok (except for the warnings)

After

>export SWARMHOME=/usr/local

I can compile and run heatbugs from Swarm-2.1.1.

Now my question concerning Java:
I can compile the jheatbugs-2001-03-28 without warnings.
When I run it with 
> javaswarm StartHeatbugs
I get

Exception caught: /usr/local/lib/libjavaswarm.so.1.0.0:
/usr/local/lib/libjavaswarm.so.1.0.0: undefined symbol:
_i_ActivityControl__runActivity
Exception in thread "main" java.lang.UnsatisfiedLinkError: createBegin
        at swarm.SwarmEnvironmentCImpl.createBegin(Native Method)
        at swarm.Globals.<clinit>(Globals.java:25)
        at StartHeatbugs.main(StartHeatbugs.java:15)

My classpath is:

$CLASSPATH=/usr/local/share/swarm/swarm.jar

I tried it with jdk1.3.1 and jdk1.4

Can anyone help me there?
Thank you
Christian Linder


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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