Hi,
I have installed TinyOS1.x according to this guide (
http://www.tinyos.net/tinyos-1.x/doc/install.html ). So far no problems.
I downloaded the rpms and converted them to .dep packages via Alien.
After the installation, I tried to run the Blink application, but there seem to
be some misconfiguration:
mar...@nbgal111:/opt/tinyos-1.x/apps/Blink$ make telosb
mkdir -p build/telosb
compiling Blink to a telosb binary
ncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-I/usr/lib/gcc/i486-linux-gnu/4.4/include -I/opt/cdk4msp/msp430/include/sys
-I/opt/cdk4msp/msp430/include -I%T/lib/Deluge
-Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000
-DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"martin\"
-DIDENT_HOSTNAME=\"nbgal111\" -DIDENT_USER_HASH=0xdbbece3dL
-DIDENT_UNIX_TIME=0x4b150621L -DIDENT_UID_HASH=0x9854e1d5L -mdisable-hwmul
-I/opt/tinyos-1.x/tos/lib/CC2420Radio Blink.nc -lm
/opt/tinyos-1.x/tos/system/tos.h:48:26: sys/inttypes.h: No such file or
directory
/opt/tinyos-1.x/tos/system/tos.h:77:20: string.h: No such file or directory
/opt/tinyos-1.x/tos/system/tos.h:78:20: stdlib.h: No such file or directory
....
(a lot of other errors...)
I figured out, that I have to include
CFLAGS+= -I/usr/lib/gcc/i486-linux-gnu/4.4/include
CFLAGS+= -I/opt/msp430/msp430/include/sys
CFLAGS+= -I/opt/msp430/msp430/include
to the Makefile. When I try to compile the app now, then this happens:
mar...@nbgal111:/opt/tinyos-1.x/apps/Blink$ make telosb
mkdir -p build/telosb
compiling Blink to a telosb binary
ncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-I/usr/lib/gcc/i486-linux-gnu/4.4/include -I/opt/msp430/msp430/include/sys
-I/opt/msp430/msp430/include -I%T/lib/Deluge
-Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000
-DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"martin\"
-DIDENT_HOSTNAME=\"nbgal111\" -DIDENT_USER_HASH=0xdbbece3dL
-DIDENT_UNIX_TIME=0x4b15083bL -DIDENT_UID_HASH=0x6af3bc17L -mdisable-hwmul
-I/opt/tinyos-1.x/tos/lib/CC2420Radio Blink.nc -lm
In file included from /opt/tinyos-1.x/tos/platform/telosb/hardware.h:9,
from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/telos/AM.h:99: parse error before `struct'
/opt/tinyos-1.x/tos/platform/telos/AM.h:103: parse error before `struct'
/opt/tinyos-1.x/tos/platform/telos/AM.h:107: parse error before `struct'
/opt/tinyos-1.x/tos/platform/telos/AM.h: In function `TOS_MsgLength':
/opt/tinyos-1.x/tos/platform/telos/AM.h:122: parse error before `TOS_Msg'
make: *** [exe0] Error 1
And I don't have any idea left, what I can do.
Any hints? Any solutions? Would be great! :-)
Thanks in advance.
Best,
Martin
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help