Dear all,

I am having problems with the message interface generator (mig). When I 
try to compile I get "No such file or directory" errors like the following:

------------
$ mig java -target=null -java-classname=serialMsg ../Serial.h SerialMsg 
-o SerialMsg.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'
......
------------


This must be a problem with the compiler not finding the path to those 
files. Therefore I added the two marked lines in my Makefile and added a 
new option to the mig command (-I $CFLAGS) as shown below. However, it 
still prompts the same error. Can anyone tell me what am I doing wrong?

------------
COMPONENT = AnchorAppC
CFLAGS+=-I$(TOSDIR)/chips/cc2420 -I$(TOSDIR)/chips/cc2420/packet
---->CFLAGS+=-I/usr/lib/gcc/i486-linux-gnu/4.2/include
---->CFLAGS+=-I/usr/include
BUILD_EXTRA_DEPS += SerialMsg.class
CLEAN_EXTRA = *.class SerialMsg.java

SerialMsg.class: $(wildcard *.java) SerialMsg.java
        javac *.java

SerialMsg.java:
        mig java -I $CFLAGS -target=null -java-classname=SerialMsg ../Serial.h 
SerialMsg -o $@

include $(MAKERULES)
------------

Best regards
-- 
Ruben Rios
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to