hi

Kristin,

I have installed tiny-os 1.x in linux as well as in Windows ... The apps in Linux just work fine ... I have followed the instructions provided for installing tinyos on Linux and they are just fine ... However, I tried installing on Windows XP and although the TOSCHECK doesnt complain, the Blink application in the apps directory doesnt compile ...

I have checked the CLASSPATH and TOSROOT and TOSDIR in the Environment Variables (for Windows XP) and they are as follows ....

CLASSPATH D:\jdk1.3.1_01\lib\comm.jar;D:\tinyos-1.x\tools\java;.
TOSROOT D:\tinyos-1.x
TOSDIR D:\tinyos-1.x\tos (this is what I added ... borrowing from Linux instructions)

In Cygwin,

whenever I type,

$ncc
avr-gcc.exe: no input files

which means "ncc" compiler is installed properly ...

$java -version
refers to the 1.3 version installed ...

However, in D:\tinyos-1.x\apps\Blink

$make mica

still gives the same complaints ... and I agree that the "interfaces" and other subdirectories in D:\tinyos-1.x\tos\ are not being linked ...

I have installed using the Windows Installation Wizard in my Laptop too and there also, it has the same problems ...

I think something is missing ...

Thanks,

Manish




Kristin Wright wrote:

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

Reply via email to