Dear David, Please try
sudo apt-get install build-essential and see if the problem is solved. -- best regards, Faisal Aslam Ph.D. Candidate University of Freiburg, Germany http://cone.informatik.uni-freiburg.de/people/aslam/ David Guillen Jimenez wrote: > > Hello everybody, > > I am following the tutorial 4 : Mote-PC serial communication and > SerialForwarder and I can not compile the program TestSerial. I didn't > have any problem with the previous tutorials, but in this one _I have > an error like this_: > > *:/opt/tinyos-2.1.0/apps/tests/TestSerial$ make tinynode install,1 > bsl,/dev/ttyUSB0* > > mkdir -p build/tinynode > > mig java -target=null -I/opt/tinyos-2.1.0/tos/lib/T2Hack > -DIDENT_APPNAME=\"TestSerialAppC\" -DIDENT_USERNAME=\"david\" > -DIDENT_HOSTNAME=\"ATeNeA\" -DIDENT_USERHASH=0xa4d71615L > -DIDENT_TIMESTAMP=0x4a9cef7fL -DIDENT_UIDHASH=0xe89c97adL > -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 > > /usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8' > > /usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8' > > /usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a function) > > /usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or > storage class > > /usr/lib/ncc/nesc_nx.h:243: syntax error before `return' > > /usr/lib/ncc/nesc_nx.h:246: syntax error before `__nesc_ntoh_leuint8' > > /usr/lib/ncc/nesc_nx.h:251: syntax error before `__nesc_hton_leuint8' > > ................................... > > ................................... (continues) > > > > It seems that it doesn't find some files (stddef.h and inttypes.h). I > tried to copy them to the right folders but I am asked for more > (ctype.h, math.h, stdlib.h, string.h). I copy them and I am asked > again. At this moment if I try to compile another example, eg. 'Blink' > it doesn't work either 'Blink' example or 'TestSerial' because of > compilation errors. > > I use Ubuntu 8.10 and my *.bashrc* has the following line: > > source /opt/tinyos-2.1.0/tinyos.sh > > *that links to tinyos.sh:* > > #! /usr/bin/env bash > > # Here we setup the _environment_ > > _# variables_ needed by the tinyos > > # make system > > echo "Setting up for TinyOS 2.1.0" > > export TOSROOT= > > export TOSDIR= > > export MAKERULES= > > TOSROOT="/opt/tinyos-2.1.0" > > TOSDIR="$TOSROOT/tos" > > CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java > > MAKERULES="$TOSROOT/support/make/Makerules" > > export TOSROOT > > export TOSDIR > > export CLASSPATH > > export MAKERULES > > > > The 'mote' I'm using is *tinynode* (ShockFish). > > Any help or experiences you could provide would be great. Thank you > very much in advance, > > David > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
