Hello,

The gave me an error similar to this. I managed to solve this guidance
following link:
http://www.george-smart.co.uk/wiki/TinyOS#mig_issue_failed_parsing_RssiDemoMessages.h

Hope that helps.

2012/7/28 hou raymond <[email protected]>

> Dear Staff:
>
> I am working in the ubuntu tinyos 2.1.1. I tried to compile the
> application TestSerial which is located in the
> /opt/tinyos2.1.1/apps/tests/TestSerial. I compiled it with mica2, micaz and
> got the same error messgae which are showing below. The other application
> are compiled ok such as Oscillation or Blink. But the error occurs in the
> RadioSenseToLeds and RadioCounterToLeds.  Can u help me with it . I am
> relly stuck at the point for quite a few days. thanks !!
> Lei Hou
>
> root@ubuntu:/opt/tinyos-2.1.1/apps/tests/TestSerial# make mica2
> mkdir -p build/mica2
> javac -target 1.4 -source 1.4 *.java
> TestSerialMsg.java:88: unclosed string literal
>         s += "  [nx_struct test_serial_msg 2 137
>              ^
> TestSerialMsg.java:89: illegal start of expression
> =0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137
> ^
> TestSerialMsg.java:89: hexadecimal numbers must contain at least one
> hexadecimal digit
> =0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137
>  ^
> TestSerialMsg.java:89: unclosed string literal
> =0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137
>    ^
> TestSerialMsg.java:89: ';' expected
> =0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137
>                                                          ^
> TestSerialMsg.java:90: illegal start of expression
> ())+"]\n";
>  ^
> TestSerialMsg.java:90: ';' expected
> ())+"]\n";
>   ^
> TestSerialMsg.java:90: not a statement
> ())+"]\n";
>    ^
> TestSerialMsg.java:109: ';' expected
>     public static boolean isSigned_nx_struct test_serial_msg 2 137
>                                             ^
> TestSerialMsg.java:109: <identifier> expected
>     public static boolean isSigned_nx_struct test_serial_msg 2 137
>                                                             ^
> TestSerialMsg.java:109: illegal start of type
>     public static boolean isSigned_nx_struct test_serial_msg 2 137
>                                                                ^
> TestSerialMsg.java:109: <identifier> expected
>     public static boolean isSigned_nx_struct test_serial_msg 2 137
>                                                                   ^
> TestSerialMsg.java:110: ';' expected
> () {
>  ^
> TestSerialMsg.java:118: ';' expected
>     public static boolean isArray_nx_struct test_serial_msg 2 137
>                                            ^
> TestSerialMsg.java:118: <identifier> expected
>     public static boolean isArray_nx_struct test_serial_msg 2 137
>                                                            ^
> TestSerialMsg.java:118: illegal start of type
>     public static boolean isArray_nx_struct test_serial_msg 2 137
>                                                               ^
> TestSerialMsg.java:118: <identifier> expected
>     public static boolean isArray_nx_struct test_serial_msg 2 137
>                                                                  ^
> TestSerialMsg.java:119: ';' expected
> () {
>  ^
> TestSerialMsg.java:127: ';' expected
>     public static int offset_nx_struct test_serial_msg 2 137
>                                       ^
> TestSerialMsg.java:127: <identifier> expected
>     public static int offset_nx_struct test_serial_msg 2 137
>                                                       ^
> TestSerialMsg.java:127: illegal start of type
>     public static int offset_nx_struct test_serial_msg 2 137
>                                                          ^
> TestSerialMsg.java:127: <identifier> expected
>     public static int offset_nx_struct test_serial_msg 2 137
>                                                             ^
> TestSerialMsg.java:128: ';' expected
> () {
>  ^
> TestSerialMsg.java:136: ';' expected
>     public static int offsetBits_nx_struct test_serial_msg 2 137
>                                           ^
> TestSerialMsg.java:136: <identifier> expected
>     public static int offsetBits_nx_struct test_serial_msg 2 137
>                                                           ^
> TestSerialMsg.java:136: illegal start of type
>     public static int offsetBits_nx_struct test_serial_msg 2 137
>                                                              ^
> TestSerialMsg.java:136: <identifier> expected
>     public static int offsetBits_nx_struct test_serial_msg 2 137
>                                                                 ^
> TestSerialMsg.java:137: ';' expected
> () {
>  ^
> TestSerialMsg.java:145: ';' expected
>     public  get_nx_struct test_serial_msg 2 137
>                                          ^
> TestSerialMsg.java:147: illegal start of expression
>         return ()get(offsetBits_nx_struct test_serial_msg 2 137
>                 ^
> TestSerialMsg.java:147: ')' expected
>         return ()get(offsetBits_nx_struct test_serial_msg 2 137
>                                          ^
> TestSerialMsg.java:147: not a statement
>         return ()get(offsetBits_nx_struct test_serial_msg 2 137
>                                                           ^
> TestSerialMsg.java:147: ';' expected
>         return ()get(offsetBits_nx_struct test_serial_msg 2 137
>                                                            ^
> TestSerialMsg.java:155: '(' expected
>     public void set_nx_struct test_serial_msg 2 137
>                               ^
> TestSerialMsg.java:155: <identifier> expected
>     public void set_nx_struct test_serial_msg 2 137
>                                              ^
> TestSerialMsg.java:155: illegal start of type
>     public void set_nx_struct test_serial_msg 2 137
>                                                 ^
> TestSerialMsg.java:155: <identifier> expected
>     public void set_nx_struct test_serial_msg 2 137
>                                                    ^
> TestSerialMsg.java:156: ';' expected
> ( value) {
>  ^
> TestSerialMsg.java:156: illegal start of type
> ( value) {
>        ^
> TestSerialMsg.java:156: <identifier> expected
> ( value) {
>         ^
> TestSerialMsg.java:156: ';' expected
> ( value) {
>           ^
> TestSerialMsg.java:157: illegal start of type
>         set(offsetBits_nx_struct test_serial_msg 2 137
>            ^
> TestSerialMsg.java:157: ';' expected
>         set(offsetBits_nx_struct test_serial_msg 2 137
>                                 ^
> TestSerialMsg.java:157: <identifier> expected
>         set(offsetBits_nx_struct test_serial_msg 2 137
>                                                 ^
> TestSerialMsg.java:157: illegal start of type
>         set(offsetBits_nx_struct test_serial_msg 2 137
>                                                    ^
> TestSerialMsg.java:157: <identifier> expected
>         set(offsetBits_nx_struct test_serial_msg 2 137
>                                                       ^
> TestSerialMsg.java:158: ';' expected
> (), , value);
>  ^
> TestSerialMsg.java:158: illegal start of type
> (), , value);
>   ^
> TestSerialMsg.java:158: <identifier> expected
> (), , value);
>    ^
> TestSerialMsg.java:158: ';' expected
> (), , value);
>      ^
> TestSerialMsg.java:158: illegal start of type
> (), , value);
>            ^
> TestSerialMsg.java:158: <identifier> expected
> (), , value);
>             ^
> TestSerialMsg.java:158: ';' expected
> (), , value);
>              ^
> TestSerialMsg.java:165: ';' expected
>     public static int size_nx_struct test_serial_msg 2 137
>                                     ^
> TestSerialMsg.java:165: <identifier> expected
>     public static int size_nx_struct test_serial_msg 2 137
>                                                     ^
> TestSerialMsg.java:165: illegal start of type
>     public static int size_nx_struct test_serial_msg 2 137
>                                                        ^
> TestSerialMsg.java:165: <identifier> expected
>     public static int size_nx_struct test_serial_msg 2 137
>                                                           ^
> TestSerialMsg.java:166: ';' expected
> () {
>  ^
> TestSerialMsg.java:167: illegal start of expression
>         return ( / 8);
>                  ^
> TestSerialMsg.java:174: ';' expected
>     public static int sizeBits_nx_struct test_serial_msg 2 137
>                                         ^
> TestSerialMsg.java:174: <identifier> expected
>     public static int sizeBits_nx_struct test_serial_msg 2 137
>                                                         ^
> TestSerialMsg.java:174: illegal start of type
>     public static int sizeBits_nx_struct test_serial_msg 2 137
>                                                            ^
> TestSerialMsg.java:174: <identifier> expected
>     public static int sizeBits_nx_struct test_serial_msg 2 137
>                                                               ^
> TestSerialMsg.java:175: ';' expected
> () {
>  ^
> 64 errors
> make: *** [TestSerial.class] Error 1
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Att.:
Irlan Arley Targino Moreira
Estagiário da Superintendência do Banco do Brasil
Bacharelando em Ciência da Computação - 7º período
Universidade do Estado do Rio Grande do Norte - UERN
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to