TOSROOT and TOSDIR are especially not right.
They shouldn't be defined as lists in terms of themselves.
All non-PATH variables should not have the second copy of their
name or any dangling ";." stuff:
export MAKERULES="$MAKERULES $TOSROOT/support/make/Makerules;."
should be
export MAKERULES="$TOSROOT/support/make/Makerules"

And I'm not sure that having spaces in PATH and CLASSPATH
will work right either. The separators should all be ';' on
ubuntu I think. Of course cygWidows uses a mix, ':' for PATH
and ';' CLASSPATH...

I have multiple installed versions through which I switch
so my setup is a bit more complicated, but here goes. What
you really want is the last two lines with "$TV" set to your
version directory name:

-------------------------------------------------------------------
###     appropriate version/directory name and define
###     MAKERULES and TOSMAKE_PATH as needed below
TV="tinyos-1.1.7"       ### various back-revs, use 1.1.7 for RoboCar
#TV="tinyos-1.1.10"     
#TV="tinyos-1.x"        ### for MOTEIV/tmote
#TV="MoteWorks"         ### for MOTEWORKS

### set this for MOTEIV and back-revs
export MAKERULES=/opt/$TV/tools/make/Makerules

### set these only for MOTEIV (!not back-revs!)
#export TOSMAKE_PATH=/opt/moteiv/tools/make
#export MOTEIV_DIR=/opt/moteiv

### set this only for MOTEWORKS -- xbow put their Makerules
###                     file in a slightly different place
###                     and doesn't use TOSMAKE_PATH
#export MAKERULES=/opt/MoteWorks/make/Makerules

# Set main pointers used by TOS build system to find files
#  TOSROOT is for external programs, TOSDIR for makefiles
export TOSROOT=C:/cygwin/opt/$TV
export TOSDIR=/opt/$TV/tos
-------------------------------------------------------------------

I may be overly superstitions, but on Windows I believe that TOSROOT
needs to use the _real_ windows path -- and be used for CLASSPATH
and any other external tool settings -- and the TOSDIR needs to use
the "cygwin" relative path. This shouldn't matter on a real OpSys.

MS




if you are on Windows TOS should be defined using the cygwin
Indtiny s wrote:
> Hi,
> I have done the following environment setup on ubuntu ,
> but still i'm not able to do the $make mica2 sim   // i'm trying in the 
> led blink demo
>  
> I get the error is
> 
> *******No rules to make the target mica2 . stop .
> 
> export TOSROOT="$TOSROOT:/opt/tinyos-2.x
> export TOSDIR="$TOSDIR:$TOSROOT/tos" 
> export CLASSPATH="$CLASSPATH" 
> C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;. 
> $TOSROOT/support/sdk/java/tinyos.jar:." 
> export MAKERULES="$MAKERULES $TOSROOT/support/make/Makerules;."
> export PATH="$PATH: /opt/msp430/bin"
>  
> pls help to fix the bug
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to