Hi,
I've successfully installed TinyOS 1.1.0 by following the instructions
listed on http://www.tinyos.net/tinyos-1.x/doc/install.html#linux. I've
know come to the stage where I'd like to install TinyDB. I've downloaded
the tinydb rpm from
http://www.tinyos.net/dist-1.1.0/tinyos/linux/task-tinydb-1.1.0-1.noarch.rpm;
however when I attempt to install it I get the following error:
[EMAIL PROTECTED] Desktop]# rpm --install --force
task-tinydb-1.1.0-1.noarch.rpm
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net
make[1]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/util'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/util
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/util'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/tools'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/tools
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/tools'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/message'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/message
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/message'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf/old'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf/old
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf/old'
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matlab'
You need to install matlab to use this package. Please include
MATLAB_DIR/java/jar/jmi.jar to your classpath, then run "make matlab"
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matlab'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim
(cd msg; make)
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/msg'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/msg'
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/event'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/event
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/event'
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/plugins'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/plugins
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/plugins'
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/packet'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/packet
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/packet'
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/lossy'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/lossy
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/lossy'
Creating tinyviz.jar...
(cd ../../..; jar cmf net/tinyos/sim/tinyviz.manifest
net/tinyos/sim/tinyviz-tmp.jar net/tinyos/sim/*.class net/tinyos/sim/ui
net/tinyos/sim/plugins/*.class net/tinyos/sim/plugins/plugins.list
net/tinyos/sim/event/*.class net/tinyos/sim/packet/*.class
net/tinyos/sim/msg/*.class net/tinyos/sf/*.class net/tinyos/util/*.class
net/tinyos/packet/*.class net/tinyos/message/*.class)
rm -rf jarbuild-tmp
mkdir jarbuild-tmp
(cd jarbuild-tmp; jar xf ../tinyviz-tmp.jar; jar xf
../../../../jars/oalnf.jar; rm -rf META-INF; jar cmf ../tinyviz.manifest
../tinyviz.jar .)
rm -rf tinyviz-tmp.jar jarbuild-tmp
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox/tools'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox/tools
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox/tools'
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/mcenter'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/mcenter
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/mcenter'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/plot'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/plot
(cd ../sim/msg; make)
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/msg'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/msg'
javac plotpanel.java
----------
1. WARNING in plotpanel.java
(at line 15)
import javax.swing.event.*;
^^^^^^^^^^^^^^^^^
The import javax.swing.event is never used
----------
----------
2. WARNING in plotpanel.java
(at line 16)
import java.lang.*;
^^^^^^^^^
The import java.lang is never used
----------
----------
3. WARNING in plotpanel.java
(at line 19)
public class plotpanel extends JPanel {
^^^^^^^^^
The serializable class plotpanel does not declare a static final
serialVersionUID field of type long
----------
----------
4. ERROR in plotpanel.java
(at line 413)
int fontWidth = (int)(g.getFontMetrics().getStringBounds
(printedVal, g).getWidth());
^^^^^^^^^^^^^^^
The method getStringBounds(String, Graphics2D) is undefined for the type
FontMetrics
----------
5. ERROR in plotpanel.java
(at line 439)
int fontWidth = (int)(g.getFontMetrics().getStringBounds
(printedVal, g).getWidth());
^^^^^^^^^^^^^^^
The method getStringBounds(String, Graphics2D) is undefined for the type
FontMetrics
----------
6. ERROR in plotpanel.java
(at line 617)
if ((int)(g.getFontMetrics().getStringBounds (descr,
g).getWidth()) > BORDER_RX - 25) {
^^^^^^^^^^^^^^^
The method getStringBounds(String, Graphics2D) is undefined for the type
FontMetrics
----------
7. ERROR in plotpanel.java
(at line 621)
while ((int)(g.getFontMetrics().getStringBounds
(descr.substring(z, z+len), g).getWidth())
^^^^^^^^^^^^^^^
The method getStringBounds(String, Graphics2D) is undefined for the type
FontMetrics
----------
8. ERROR in plotpanel.java
(at line 645)
fontHeight = (int)(g.getFontMetrics().getStringBounds
("0132465789", g).getHeight());
^^^^^^^^^^^^^^^
The method getStringBounds(String, Graphics) is undefined for the type
FontMetrics
----------
8 problems (5 errors, 3 warnings)make[2]: *** [plotpanel.class] Error 255
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/plot'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/event'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/event
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/event'
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/util'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/util
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/util'
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/PacketAnalyzer'
...
/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/PacketAnalyzer
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/PacketAnalyzer'
make[3]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/Dialog'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/Dialog
make[3]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge/Dialog'
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/surge'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/packet'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/packet
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/packet'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/oscope'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/oscope
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/oscope'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/xnp'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/xnp
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/xnp'
make[2]: Entering directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/ident'
... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/ident
make[2]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/ident'
make[1]: Leaving directory
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos'
[EMAIL PROTECTED] Desktop]#
I'm using the 32-bit xSeries (Intel compatible) rpm version of IBMJava2-SDK
[EMAIL PROTECTED] Desktop]# which java
/opt/IBMJava2-142/bin/java
I've also tried using the default Sun java version which comes with
Fedora Core
[EMAIL PROTECTED] Desktop]# java --version
java version "1.4.2"
gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)
But come up with the same error. This is really odd because I've had a
look at the (Sun) API spec for FontMetrics
(http://java.sun.com/j2se/1.4.2/docs/api/java/awt/FontMetrics.html) and
getStringBounds is defined as follows:
|*
getStringBounds
<http://java.sun.com/j2se/1.4.2/docs/api/java/awt/FontMetrics.html#getStringBounds%28java.lang.String,%20java.awt.Graphics%29>*(String
<http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html> str,
Graphics
<http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics.html> context)|
Returns the bounds of the specified |String| in the specified |Graphics|
context.
So I'm not sure what it's complaining about. I have defined my
CLASSPATH to include `TOSHOME/tinyos-1.x/tools/java/javapath`.
Have I missed something?
Cheers
Tom
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help