[Tinyos-help] cannot compile TestSerial

Shen Ke shenke at cityu.edu.hk
Thu Jan 25 01:14:23 PST 2007


I'm running tinyos-2.x and trying to do Tutorial lesson 4 but i have 
problems compiling TestSerial. When I type make mica2, it says 
/usr/lib/ncc/nesc_nx.h:16:22: inttypes.h: No such file or directory
failed to parse message file TestSerial.h
...
But if I remove the following from Makefile:

BUILD_EXTRA_DEPS += TestSerial.class
CLEAN_EXTRA = *.class TestSerialMsg.java

TestSerial.class: $(wildcard *.java) TestSerialMsg.java
 javac *.java

TestSerialMsg.java:
 mig java -target=null $(CFLAGS) -java-classname=TestSerialMsg TestSerial.h 
test_serial_msg -o $@

I can compile and download to my mote. However, I still cannot compile the 
java code. Is there something wrong? 



More information about the Tinyos-help mailing list