[Tinyos-help] Environment variables setting for TinyOS 1.1.15 on Windows

Michael Schippling schip at santafe.edu
Wed Jun 3 14:58:30 PDT 2009


At this point I would consider blowing all your TOS/cygwin
installs out of the water and starting over. (Or it could be
Vista that doesn't want to play. Search this list to see if
anyone has posted about it.)

I avoid installing anything remotely related to real (read *NIX)
computer programs in any directory that has a space in it
because the shell parses spaces as separate words. So, without
jumping through multiple hoops of quotes, Program Files
becomes two different directories. Try to get cygwin in C:/cygwin
and Java in something like C:/Java/...JDK... It is possible with
constant vigilance while installing.

The specific Java error you show is from having system32 in your
PATH variable before your JDK/bin

You probably only need Java for host side utility programs.
I don't use the simulator so I don't know if it has dependencies.

MS

bharat naik wrote:
> Hi all,
> 
>        I managed to remove most of the errors by adding the path: 
> *C:\Program Files\cygwin\usr\local\bin*
> When I perform toscheck now, it gives me the following errors:
> Warning: CLASSPATH environment variable doesn't exist
> Warning: The Java version found first by toscheck may not be versio 1.4 
> which is required by TOS..................
> Warning: No msp430-gcc in current path.
> 
> I have been reading up on CLASSPATH and  PATH variables all day but 
> still haven't been able to resolve the first error.
> The second error is maybe because it is looks for java here:
> */cygdrive/c/Windows/system32/java. *I have j2sdk1.4.2_19 in C:\Program 
> Files\Java). Should I include this path before C:\Windows\system32\java? 
> It then shows an error with the javax.comm package though I thnik it is 
> not required as long as I don't plug in motes.
> The last error is because I haven't installed the msp430-gcc rpm package.
> 
> Now when I try the following:
> *cd /opt/tinyos-1.x/apps/Blink
> make pc
> *I get a huge list of errors:
> most of the errors are similar to:
> *C:\Program Files\cygwin\bin\gcc.exe:****heap allocated but not at 0x7A0000
> 1195248 [main] gcc 2780 sync_with_child: child 1676<0xF0> died before 
> initialization with status code 0x1
> *Then I get a list of the following errors:
> *C:/Program Files/cygwin/opt/tinyos-1.x/tos/system/NoLeds.nc: 'init' is 
> not in interface Leds
> **C:/Program Files/cygwin/opt/tinyos-1.x/tos\system/NoLeds.nc: 'red On' 
> is not in interface Leds
> ......
> *Then the following list of errors:*
> **C:/Program Files/cygwin/opt/tinyos-1.x/tos/platform/pc/LedsM.nc: 
> 'yellowOn' is not in interface Leds
> **C:/Program Files/cygwin/opt/tinyos-1.x/tos/platform/pc/LedsM.nc: 
> 'yellowOff' is not in interface Leds
> .........
> and finally the following:
> make: *** [build/pc/main.exe] Error 1
> make: *** No rules to make target 'pc'. Stop.
> **make: *** No rules to make target 'pc'. Stop.
> **make: *** No rules to make target 'pc'. Stop.
> **make: *** No rules to make target 'pc'. Stop.
> **make: *** No rules to make target 'pc'. Stop.
> 
> *I* *have looked through the mail archives and have only got more 
> confused. I did *
> export MAKERULES=/opt/tinyos-1.x/tools/make/Makerules
> *but it still didn't work.Please tell me as to what I should do.
> 
> 
> Regards,
> Bharat Naik.
> 
> *
> **
> *
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list