It looks as if ncc cannot find the 'tos' directory (probably tinyos-1.x/tos on your machine). If you set the environment variable TOSDIR to that directory the problem should be fixed. For example, on linux in csh I could say 'setenv TOSDIR /home/kristin/tinyos-1.x/tos' if that were where my tos dir was.
How did you install TinyOS? That is, did you use the tgz file from SourceForge or the Windows Installation Wizard or Linux RPM? If you used the Windows Installation Wizard, ncc should find the directory by default because it is parallel to it and the environment variable is not necessary. If you use the LinuxRPM, the same applies unless you move the tinyos-1.x dir. I'm curious to see what your final setup looks like because if it is simply what the installation sets up, then I missed something in the wizard. Thanks. -kw ----- Original Message ----- From: "Manish M Kochhal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 7:01 PM Subject: [Tinyos-users] Error Compiling the Blink Application on tinyos-1.x on Windows XP > hi > > tinyos users, > > I have installed the newest version of tinyos (i.e. tinyos-1.x version) > on Windows XP as an administrator ... I also checked the installation > paths by running "toscheck" script available at the tools directory and > it does not return any error. However, when I try to compile the Blink > application, I get these errors ... > > can anybody point me out whether I missed anything with the tinyos > installation ... > > Thanks in advance, > > cheers, > manish > > $ make mica > compiling Blink to a mica binary > ncc -board=micasb -o build/mica/main.exe -Os -target=mica -Wall > -Wshadow -DDEF_ > TOS_AM_GROUP=0x7d -finline-limit=100000 -fnesc-cfile=build/mica/app.c > Blink.nc > -lm > <commandline>: C file tos not found > Blink.nc:74: component Main not found > BlinkM.nc:68: interface StdControl not found > BlinkM.nc:71: interface Clock not found > BlinkM.nc:72: interface Leds not found > BlinkM.nc:79: syntax error before `state' > BlinkM.nc:81: warning: discarding unexpected docstring from BlinkM.nc:76. > BlinkM.nc:86: syntax error before `StdControl' > BlinkM.nc:93: warning: discarding unexpected docstring from BlinkM.nc:81. > Blink.nc:74: component ClockC not found > Blink.nc:74: component LedsC not found > Blink.nc:76: cannot find `StdControl' > Blink.nc:77: no match > Blink.nc:78: no match > make: *** [build/mica/main.exe] Error 1 > > > _______________________________________________ > Tinyos-users mailing list > [EMAIL PROTECTED] > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users > _______________________________________________ Tinyos-users mailing list [EMAIL PROTECTED] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
