Hi everybody! I am having some troubles compiling the TestSerial. It seems it doesn't find the ".h files" to build the program. Error lines right below:
/opt/tinyos-2.x/apps/tests/TestSerial# make telosb mkdir -p build/telosb mig java -target=null -I/opt/tinyos-2.x/tos/lib/T2Hack -DIDENT_APPNAME=\"TestSerialAppC\" -DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"ATeNeA2\" -DIDENT_USERHASH=0xb49ac711L -DIDENT_TIMESTAMP=0x4acee4b4L -DIDENT_UIDHASH=0xdcee7204L -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 ........ ........ /opt/tinyos-2.x/tos/system/tos.h:5:22: error: inttypes.h: No such file or directory /opt/tinyos-2.x/tos/system/tos.h:13:20: error: string.h: No such file or directory /opt/tinyos-2.x/tos/system/tos.h:14:20: error: stdlib.h: No such file or directory /opt/tinyos-2.x/tos/system/tos.h:15:18: error: math.h: No such file or directory /opt/tinyos-2.x/tos/system/tos.h:16:20: error: stddef.h: No such file or directory /opt/tinyos-2.x/tos/system/tos.h:17:19: error: ctype.h: No such file or directory ........ ........ failed to parse message file TestSerial.h make: *** [TestSerialMsg.java] Error 1 In addtion I have the same error when compiling the directories /message /packet /tools from /$TOSROOT/support/sdk/java/net/tinyos It looks like if the Makefile couldn't find these files. I have tried adding this line as I found in: http://209.85.229.132/search?q=cache:oPnsI2XAdIsJ:www.cs.swarthmore.edu/~newhall/unixhelp/howto_makefiles.html+makefile+compiling+java+include+header+file&cd=3&hl=es&ct=clnk&gl=es&client=firefox-a INCLUDES = -I/usr/include/linux INCLUDES = -I/usr/include/ where "/usr/include/linux" "/usr/include/" are the directories I have the .h files. Do you know how to specify in the makefile where to look fo the ".h files"? Some additional information OS: TinyOS-2.x (from the sourceforge repository) over Ubuntu 8.10 export TOSROOT=/opt/tinyos-2.x export TOSDIR=$TOSROOT/tos export MAKERULES=$TOSROOT/support/make/Makerules export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar export MOTECOM=serial@/dev/ttyUSB0:115200 Other applications and Deluge work perfectly Thank you very much
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help