I'm currently following the Lesson 5 (TOSSIM) from the TinyOS 1.x Tutorial,
in which I'm supposed to compile CntToLedsAndRfm application. In that step i
found problems running the "make pc", and I realized that it happens for
other applications. It shows:
xubun...@xubuntos-tinyos:/opt/tinyos-1.x/apps/CntToLedsAndRfm$ make pc
mkdir -p build/pc
compiling CntToLedsAndRfm to a pc binary
ncc -o build/pc/main.exe -g -O0 -I%T/lib/Counters -pthread
-fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c
-board=micasb -DIDENT_PROGRAM_NAME=\"CntToLedsAndRfm\"
-DIDENT_USER_ID=\"xubuntos\" -DIDENT_HOSTNAME=\"xubuntos-tinyos\"
-DIDENT_USER_HASH=0x00f95284L -DIDENT_UNIX_TIME=0x4addfadcL
-DIDENT_UID_HASH=0xaa66b4d0L CntToLedsAndRfm.nc -lm
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/pc/nido.h:63: `TOSH_NUM_NODES' undeclared here
(not in a function)
/opt/tinyos-1.x/tos/platform/pc/nido.h:63: enumerator value for `TOSNODES'
not integer constant
make: *** [exe0] Error 1
Someone on the mailing list suggested to add the flag
-fnesc-nido-tosnodes=1000 on the .target file found in
/opt/tinyos-1.x/tools/make, but the flags are there, and as it is seen in
the output above, they appear in the ncc command...
So, i don't know if I missed make, or if there are any other files of TinyOS
2.x that conflict with the 1.x version... How to fix this error?
My environment is the xubuntos distribution, running it's image in VMWare
Player.
I crucially appreciate all the help. Thanks in advance!
_________________________________________________________________
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help