On Wednesday 26 July 2006 09:10 am, Ryan Aures wrote:
> I am on a Windows 2000 machine [snip]
>
> $ make telosb
> D:\cygwin\opt\tinyos-2.x\support\make\Makerules:31: warning, MAKERULES
> contains
> backslashes.
>
>     The environment variable MAKERULES contains backslashes \'s.  This can
>     cause shell scripts including ones in this make system to fail in
>     strange ways.  I've changed those to forward slashes for you for this
>     build.  However, you are strongly encouraged to respecify MAKERULES as
>     either a standard unix-style path or as a mixed-style path where the
>     backslashes are replaced with forward slashes /'s.

I believe the MAKERULES environment variable should be rooted wholly within 
cygwin, meaning no backslash (a-la Microsoft) directory separators.  For 
example, here is my setup on a WinXP machine, from a cygwin shell:

$ env | grep tiny
CLASSPATH=C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.
MAKERULES=/opt/tinyos-2.x/support/make/Makerules
TOSDIR=/opt/tinyos-2.x/tos
TOSROOT=/opt/tinyos-2.x

Note that CLASSPATH does have backslashes.  I *think* this is OK because the 
variable is used by the java app, which is MS native and not a cygwin app 
(someone please correct me if I'm wrong).  The build tools are all cygwin 
apps and so shouldn't use microsoft paths.  If you need to access the PC 
filesystem outside of the cygwin directory, use the /cygdrive/... path.

The environment variables for tinyos are usually set 
in /etc/profile.d/tinyos.sh.  Perhaps the variables are being given the wrong 
paths there.  After edit, exit your cygwin shell and restart another one for 
the changes to take place (or source the /etc/profile.d/tinyos.sh file).

Hope this is useful,
Steve
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to