swarm-support
[Top][All Lists]
Advanced

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

Re: [Swarm-Support] error: TkExtra (instance)


From: Camila Herculano
Subject: Re: [Swarm-Support] error: TkExtra (instance)
Date: Tue, 27 Jan 2009 19:09:14 -0300



2009/1/27 Paul Johnson <address@hidden>
Camila Herculano wrote:
> Hi,
>
> I'm trying to run an application swarm, but this error occurs:
>
> "error: TkExtra (instance)
>
> Abortado"
>
> I followed these steps to install Swarm on my Debian:
> http://jalvesaq.googlepages.com/swarm.html
>
> And I did install.
> But, finally, when I downloaded and compiled some examples of
> http://ftp.swarm.org/pub/swarm/apps/objc/sdg/swarmapps-objc-2.2-3.tar.gz
> I can't run!
>
> I don't understand, because my X is started and I did run as root too.
> I use Debian Lenny version 5.0 (testing) and dwm (a dynamic window manager for X).
> Notebook: HP Pavillion, processor AMD Turion 64.
>
>
> Thanks,
>
>
Well, never run anything as root.  That's rule number 1.

You don't tell us which application you are trying and when the problem
occurs.  Do any of the swarmapps work? I know I've seen it and it can be
fixed.

Why not open Emacs, do M-x eshell, in there cd to the Heatbugs example
in the swarmapps, then run "make" and ./heatbugs.  Let us see the
eshell.  I'd like to have a complete picture of what you are doing, not
just the one little error message.  We can't really be sure if you
installed Swarm properly--although that web page you point us to looks
really great.  I've been meaning to try the deb packages that were
announced in the list a couple of months ago.

In the blt-dev that provided by the usual sources, there is a missing
symbolic link that swarm looks for.  I'm on Ubuntu now, do you have the
symbolic link. Blt changed a file name from bltGraph.tcl to graph.tcl,
and so in /usr/lib/blt-2.4/ we had to create a link

ln -sf graph.tcl bltGraph.tcl.

One way to know if that is the source of the trouble is to compile
heatbugs and run it in batch mode, i.e.,

./heatbugs -b

if that succeeds, then it will give us some information.

Another frequent source of trouble is a corrupted file in your home
directory called .swarmArchiver. if you remove that, it may help...

Let us know if you still struggle :). eventually all is fixed. And
remember, never run root.  And,second, use the ordinary window manager
like metacity when things are really screwed up.  Also, I found the
video driver makes a difference, so if you have an nvidia card, I find
it works best to run the driver from nvidia, not "nv".

pj 



I created the symbolic link that you sugest and the file .
swarmArchiver doesn't exists.

The compilation occurs fine on emacs Shell:

========================
Welcome to the Emacs shell

~ $ cd src/swarmapps-objc-2.2-3/
~/src/swarmapps-objc-2.2-3 $ cd heatbugs/
~/src/swarmapps-objc-2.2-3/heatbugs $ make
make: Nada a ser feito para `all'.
~/src/swarmapps-objc-2.2-3/heatbugs $ make clean
rm -f Heatbug.o HeatSpace.o main.o HeatbugModelSwarm.o HeatbugObserverSwarm.o HeatbugBatchSwarm.o heatbugs .libs/heatbugs .libs/lt-heatbugs  core gmon.out heatbugs.core
~/src/swarmapps-objc-2.2-3/heatbugs $ make
gcc -c -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long  -D_GNU_SOURCE -DAPPNAME=heatbugs -DAPPVERSION=2.1.1 -DBUGADDRESS=address@hidden   -I/usr/local/include  Heatbug.m
gcc -c -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long  -D_GNU_SOURCE -DAPPNAME=heatbugs -DAPPVERSION=2.1.1 -DBUGADDRESS=address@hidden   -I/usr/local/include  HeatSpace.m
gcc -c -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long  -D_GNU_SOURCE -DAPPNAME=heatbugs -DAPPVERSION=2.1.1 -DBUGADDRESS=address@hidden   -I/usr/local/include  main.m
gcc -c -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long  -D_GNU_SOURCE -DAPPNAME=heatbugs -DAPPVERSION=2.1.1 -DBUGADDRESS=address@hidden   -I/usr/local/include  HeatbugModelSwarm.m
gcc -c -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long  -D_GNU_SOURCE -DAPPNAME=heatbugs -DAPPVERSION=2.1.1 -DBUGADDRESS=address@hidden   -I/usr/local/include  HeatbugObserverSwarm.m
gcc -c -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long  -D_GNU_SOURCE -DAPPNAME=heatbugs -DAPPVERSION=2.1.1 -DBUGADDRESS=address@hidden   -I/usr/local/include  HeatbugBatchSwarm.m
/bin/sh /usr/local/bin/libtool-swarm --mode link gcc -g -O2 -L/usr/local/lib -rpath /usr/local/lib    -o heatbugs Heatbug.o HeatSpace.o main.o HeatbugModelSwarm.o HeatbugObserverSwarm.o HeatbugBatchSwarm.o  -lswarm  
gcc -g -O2 -o heatbugs Heatbug.o HeatSpace.o main.o HeatbugModelSwarm.o HeatbugObserverSwarm.o HeatbugBatchSwarm.o  -L/usr/local/lib /usr/local/lib/libswarm.so -lieee -lBLT24 -L/usr/lib -ltk8.4 -ltcl8.4 -lXpm -lpng -lpthread -lz -lX11 -lm -ldl -Wl,--rpath -Wl,/usr/local/lib
~/src/swarmapps-objc-2.2-3/heatbugs $ ./heatbugs
error: TkExtra (instance)

abortado
~/src/swarmapps-objc-2.2-3/heatbugs $ ./heatbugs -b
You typed `heatbugs -b' or `heatbugs --batch', so we're running without graphics.
Heatbugs is running for 250 timesteps.
It is logging data every 1 timesteps to: unhappiness.output.
=================================


Buuuut, for our happiness, it worked with the debian package you told me to use!

http://www.swarm.org/pipermail/support/2008-October/015740.html

Thanks!

ps - Rule number 1 learned! ;)
 




--
Paul E. Johnson                       email: address@hidden
Professor, Political Science          http://pj.freefaculty.org
1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700

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



--
Camila Herculano
Ciência da Computação - Universidade Estadual do Ceará
Linux User #469111

reply via email to

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