Dear all,
I have just installed tinyos 2.x from rpm file, and I have configured all
the settings according to the tutorial. However, I still can not pass the
complilation on
Blink apps. Mine OS is windows 2003, and all the nesC and cygwin are the
latest version. can anybody help me out with this. Thanks a lot.
I guess it could be my wrong settings on env variables, but I don't know how
to fix it.
Here are they:
CLASSPATH = C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.
TOSROOT = C:/cygwin/opt/tinyos-2.x
TOSDIR = %TOSROOT%/tos
MAKERULES = C:/cygwin/opt/tinyos-2.x/support/make/Makerules
And When I try to compile the Blink app by using command *make micaz sim*,
here's the error:
mkdir -p build/micaz
placing object files in build/micaz
writing XML schema to app.xml
compiling BlinkAppC to object file sim.o
ncc -c -DUSE_DL_IMPORT -fpic -o build/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -fin
line-limit=100000 -Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb
-DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER
_ID=\"Administrator\" -DIDENT_HOSTNAME=\"zyzhang_laptop3\"
-DIDENT_USER_HASH=0x2d5b3066L -DIDENT_UNIX_TIME=0x4712e0a9L
-DIDENT_UID_HASH=0xccb5ae4eL -W
no-nesc-data-race BlinkAppC.nc -fnesc-dump=components
-fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnesc-dump=interfacedefs -fn
esc-dump=tags -fnesc-dumpfile=app.xml
In file included from C:/cygwin/opt/tinyos-2.x/tos/types/message.h:4,
from C:/cygwin/opt/tinyos-2.x
/tos/lib/tossim/sim_packet.c:36,
from C:/cygwin/opt/tinyos-2.x/tos/lib/tossim/tos.h:90:
C:/cygwin/opt/tinyos-2.x/tos/lib/tossim/platform_message.h:39:20: Serial.h:
No such file or directory
<commandline>: failed to preprocess C:/cygwin/opt/tinyos-2.x
/tos/lib/tossim/tos.h
In file included from C:/cygwin/opt/tinyos-2.x/tos/lib/tossim/hardware.h:1,
from C:/cygwin/opt/tinyos-2.x/tos/lib/tossim/MainC.nc:37:
C:/cygwin/opt/tinyos-2.x/tos/platforms/micaz/sim/platform_hardware.h:44:28:
atm128hardware.h: No such file or directory
C:/cygwin/opt/tinyos-2.x/tos/platforms/micaz/sim/platform_hardware.h:45:23:
Atm128Adc.h: No such file or directory
In component `BlinkAppC':
BlinkAppC.nc:45: failed to preprocess C:/cygwin/opt/tinyos-2.x
/tos/lib/tossim/MainC.nc
BlinkC.nc:37:19: Timer.h: No such file or directory
BlinkAppC.nc:45: failed to preprocess BlinkC.nc
In file included from C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:39,
from C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:38,
from BlinkAppC.nc:45:
In interface `GeneralIO':
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:32: only commands and
events can be defined in interfaces
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:32: warning:
return-type defaults to `int'
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:32: syntax error before
`get'
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:34: only commands and
events can be defined in interfaces
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:34: warning:
return-type defaults to `int'
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:34: redefinition of
`bool'
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:34: syntax error before
`isInput'
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:36: only commands and
events can be defined in interfaces
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:36: warning:
return-type defaults to `int'
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:36: redefinition of
`bool'
C:/cygwin/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:36: syntax error before
`isOutput'
In file included from C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:38,
from BlinkAppC.nc:45:
In component `LedsP':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Init.init':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:47: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led0On':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:65: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:65: interface has no command or
event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led0Off':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:70: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:70: interface has no command or
event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led0Toggle':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:75: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:75: interface has no command or
event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led1On':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:80: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:80: interface has no command or
event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led1Off':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:85: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:85: interface has no command or
event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led1Toggle':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:90: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:90: interface has no command or
event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led2On':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:95: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:95: interface has no command or
event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led2Off':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:100: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:100: interface has no command
or event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.led2Toggle':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:105: implicit declaration of
function `dbg'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:105: interface has no command
or event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc: In function `Leds.get':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:112: interface has no command
or event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:115: interface has no command
or event named `get'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsP.nc:118: interface has no command
or event named `get'
In file included from BlinkAppC.nc:45:
In component `LedsC':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc: At top level:
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:38: component PlatformLedsC not
found
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:42: cannot find `Init'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:43: cannot find `Led0'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:44: cannot find `Led1'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:45: cannot find `Led2'
C:/cygwin/opt/tinyos-2.x/tos/system/TimerMilliC.nc:34:19: Timer.h: No such
file or directory
In component `BlinkAppC':
BlinkAppC.nc:46: failed to preprocess C:/cygwin/opt/tinyos-2.x
/tos/system/TimerMilliC.nc
BlinkAppC.nc:46: component `TimerMilliC' is not generic
BlinkAppC.nc:47: component `TimerMilliC' is not generic
BlinkAppC.nc:48: component `TimerMilliC' is not generic
BlinkAppC.nc:51: cannot find `Boot'
BlinkAppC.nc:53: cannot find `Timer0'
BlinkAppC.nc:54: cannot find `Timer1'
BlinkAppC.nc:55: cannot find `Timer2'
BlinkAppC.nc:56: cannot find `Leds'
make: *** [sim-exe] Error 1
--
Best wishes,
Kenneth Chan
------------------------
Wish you have a good day!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help