Hello,

I'm trying out lesson 4 "Mote-PC serial communication and SerialForwarder".
I've tried to run on micaz, mib520 tinyos 2.1.0 (Ubuntu 8.04, Hardly) but
I've got lots of errors as shown below. Firstly, I thought it could be the
makefile so I tried to compilate separately, but nesC files compile and work
well (I can see packets with *java net.tinyos.Listen -comm serial@
/dev/ttyUSB0:micaz*) and when I try *javac TestSerial.java* I've got errors
again. It happens with RssiDemo application too.

Blink application works well, I've installed build-essential, jni
(tos-install-jni), and tinyos.sh contains:

TOSROOT="/opt/tinyos-2.1.0"
TOSDIR="$TOSROOT/tos"
CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar:$TOSROOT/support/sdk/:.
MAKERULES="$TOSROOT/support/make/Makerules"

The errors:

$make micaz
mkdir -p build/micaz
mig java -target=null -I/opt/tinyos-2.1.0/tos/lib/T2Hack
-DIDENT_APPNAME=\"TestSerialAppC\" -DIDENT_USERNAME=\"invitado\"
-DIDENT_HOSTNAME=\"mvillagran\" -DIDENT_USERHASH=0x98b2616eL
-DIDENT_TIMESTAMP=0x4912c8eeL -DIDENT_UIDHASH=0x53ecffb7L
-java-classname=TestSerialMsg TestSerial.h test_serial_msg -o
TestSerialMsg.java
/usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or
directory
/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
/usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
/usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'
/usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:243: syntax error before `return'
/usr/lib/ncc/nesc_nx.h:246: syntax error before `__nesc_ntoh_leuint8'
/usr/lib/ncc/nesc_nx.h:251: syntax error before `__nesc_hton_leuint8'
/usr/lib/ncc/nesc_nx.h:253: redefinition of `base'
/usr/lib/ncc/nesc_nx.h:242: previous declaration of `base'
/usr/lib/ncc/nesc_nx.h:253: `value' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:253: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:254: syntax error before `return'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_ntoh_int8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_hton_int8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_ntoh_leint8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_hton_leint8'
/usr/lib/ncc/nesc_nx.h:258: syntax error before `__nesc_bf_decode8'
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: syntax error before `if'
/usr/lib/ncc/nesc_nx.h:258: `uint8_t' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: `msg' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: `length' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:258: syntax error before `++'
/usr/lib/ncc/nesc_nx.h:258: syntax error before `|='
/usr/lib/ncc/nesc_nx.h:258: syntax error before `*'
/usr/lib/ncc/nesc_nx.h: In function `__nesc_bf_encode8':
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared (first use in this function)
/usr/lib/ncc/nesc_nx.h:258: (Each undeclared identifier is reported only
once
........

$ javac TestSerial.java
TestSerial.java:45: cannot find symbol
symbol  : class TestSerialMsg
location: class TestSerial
    this.moteIF.registerListener(new TestSerialMsg(), this);
                                     ^
TestSerial.java:50: cannot find symbol
symbol  : class TestSerialMsg
location: class TestSerial
    TestSerialMsg payload = new TestSerialMsg();
    ^
TestSerial.java:50: cannot find symbol
symbol  : class TestSerialMsg
location: class TestSerial
    TestSerialMsg payload = new TestSerialMsg();
                                ^
TestSerial.java:69: cannot find symbol
symbol  : class TestSerialMsg
location: class TestSerial
    TestSerialMsg msg = (TestSerialMsg)message;
    ^
TestSerial.java:69: cannot find symbol
symbol  : class TestSerialMsg
location: class TestSerial
    TestSerialMsg msg = (TestSerialMsg)message;
                         ^

And with RssiDemo application:

$ javac RssiDemo.java
RssiDemo.java:50: cannot find symbol
symbol  : class RssiMsg
location: class RssiDemo
    this.moteIF.registerListener(new RssiMsg(), this);
                                     ^
RssiDemo.java:54: cannot find symbol
symbol  : class RssiMsg
location: class RssiDemo
    RssiMsg msg = (RssiMsg) message;
    ^
RssiDemo.java:54: cannot find symbol
symbol  : class RssiMsg
location: class RssiDemo
    RssiMsg msg = (RssiMsg) message;
                   ^

Thank you for help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to