[Tinyos-help] Java: Build Error - avr-gcc ???

Robert Szewczyk szewczyk at gmail.com
Fri Dec 1 11:29:27 PST 2006


Hi Christian,

All you need to do to get this to work is to tell mig about the
platform and about the directories where it needs to find the crucial
header files:

mig java -I${TOSDIR}/lib/CC2420Radio/ -target=telos -java
-java-classname=DeltaMsg Delta.h DeltaMsg -o DeltaMsg.java

The above should have been done by the various makefiles shipped with
Boomerang, and in SurgeTelos in the old tinyos-1.x tree.

Cheers,

Rob

On 12/1/06, Frank  Christian <chfrank at inf.ethz.ch> wrote:
>
>
>
>
>
>
> Hi,
>
>
>
> I am running the TinyOS 1.x / Boomerang / Telos Suite. I know this topic has
> been on the list before, but I could not find the actual solution:
>
>
>
> Problem:
>
>
>
> $ mig java -java -java-classname=DeltaMsg Delta.h DeltaMsg -o DeltaMsg.java
>
> Couldn't execute avr-gcc
>
> failed to parse message file Delta.h
>
>
>
> I understood from earlier messages, that I should specify the platform, so I
> did:
>
>
>
> $ mig java -target=telos -java -java-classname=DeltaMsg Delta.h DeltaMsg -o
> DeltaMsg.java
>
> In file included from /opt/tinyos-1.x/tos/system/tos.h:144:
>
> /opt/tinyos-1.x/tos/platform/telos/hardware.h:7:25:
> CC2420Const.h: No such file
>
> or directory
>
> <commandline>: failed to preprocess /opt/tinyos-1.x/tos/system/tos.h
>
> Delta.h:13:22: MultiHop.h: No such file or directory
>
> <commandline>: failed to preprocess Delta.h
>
> failed to parse message file Delta.h
>
>
>
> I assume its about adding some INCLUDE directories, but am not sure where I
> can add my –I statement…  Where should I add it?
>
>
>
> I used the "Windows upgrade RPM's if you already have Cygwin and Java 4
> installed" package.
>
>
>
> Thanks in advance!
>
> Christian
>
> --
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>



More information about the Tinyos-help mailing list