Hello Janos, Both avr-libc-tinyos and msp430-lib-tinyos are installed. I've found inttypes.h in the following folder:
/usr/avr/include /usr/msp430/include and stddef.h in: /usr/lib/gcc/avr/4.1.2/include /usr/lib/gcc/msp430/4.5.3/include Don't know why TinyOS cannot find them. Need to specify the path somewhere ? I've tried to add the 4 paths in environment variable PATH, but it doesn't help. - Yanbo Le 06/04/2012 04:13 PM, Janos Sallai a écrit : > inttypes.h and stddef.h should be in the avr-libc and msp430-libc > packages for the respective platfoms. Please make sure that they are > installed. > > Janos > > On Mon, Jun 4, 2012 at 7:43 AM, Yanbo SHOU<[email protected]> wrote: >> Hi, >> >> I've tinyos-2.x installed on my PC (I downloaded it from google code >> site), I worked perfectly. But after a system update (Ubuntu 12.04 x64), >> the entire tinyos toolchain doesn't work anymore. I can compile Blink, >> RadioCountToLeds, but not TestSerial. >> >> Both "make telosb" and "make micaz" give me the same error message: >> >> /usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or >> directory >> /usr/lib/ncc/nesc_nx.h:62:22: error: inttypes.h: No such file or directory >> /usr/lib/ncc/nesc_nx.h:281: syntax error before `__nesc_ntoh_uint8' >> /usr/lib/ncc/nesc_nx.h:286: syntax error before `__nesc_hton_uint8' >> >> ... ... ... >> >> Here's my procedure of installation: >> >> svn checkout http://tinyos-main.googlecode.com/svn/trunk/ >> tinyos-main-read-only >> mv tinyos-main-read-only tinyos-2.x >> sudo mv tinyos-2.x /opt >> >> Then I've installed other tools from Stanford's Natty repository: >> >> sudo apt-get install tinyos-required-msp430 tinyos-required-avr >> >> And then I've created a file call tinyos.sh in /opt/tinyos-2.x : >> >> export TOSROOT=/opt/tinyos-2.x >> export TOSDIR=$TOSROOT/tos >> export CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar:. >> export MAKERULES=$TOSROOT/support/make/Makerules >> export PATH=$PATH:/usr/include:/usr/include/linux >> >> I've checked the result of tos-check-env, it seems that I have >> everything in Path: >> >> Path: >> Path: >> /usr/lib/lightdm/lightdm >> /usr/local/sbin >> /usr/local/bin >> /usr/sbin >> /usr/bin >> /sbin >> /bin >> /usr/games >> /usr/include >> /usr/include/linux >> >> I've tried to install the package tinyos-2.1.1.deb, always the same problem. >> >> >> Best regards. >> >> -- >> Yanbo SHOU >> >> Institut FEMTO-ST, Dep. DISC >> Bureau 420C >> UFR Sciences et Techniques >> 16 route de Gray - 25000 Besançon >> [email protected] >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> -- Yanbo SHOU Institut FEMTO-ST, Dep. DISC Bureau 420C UFR Sciences et Techniques 16 route de Gray - 25000 Besançon [email protected] _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
