Hi,

`ncc` and `tos-ident-flags` is installed in /usr/bin by default 
(not sure whether they put it in the same place for Cygwin or not).

Check where these two programs lie on your system, and make sure
that their path are included.

Thus, I think if you open cygwin shell, it will run .bashrc in your home
directory, instead of /etc/profile.d..So, there's possibility that your 
tinyos.sh is not executed.

If `ncc` and `tos-ident-flags` are within the PATH, try to : 
`source tinyos.sh` first, before compiling.

HTH

Regards,

-daniel


-------- Original Message --------
> From: mejda chouaieb <[EMAIL PROTECTED]>
> Sent: Monday, October 01, 2007 9:49 PM
> To: tinyos-help@Millennium.Berkeley.EDU
> Subject: [Tinyos-help] problems with yamp
> 
> Hello All,
> I have windows Media Center Edition and I installed "JN-SW-4027 SDK with CLI" 
> (jennic bash shell) (link : 
> http://www.jennic.com/support/view_section.php?sectionID=0000000010) because 
> I'm working with jennic motes, then I Installed Tinyos 2.x, I followed the 
> manual steps (with RPMs)  in Tinyos web site (link: 
> http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html).
> to Configure my environment I created a file named tinyos.sh and I saved it 
> in C:\Jennic\cygwin\etc\profile.d
> 
> tinyos.sh contains :
> #!/bin/sh
> export TOSROOT="/opt/tinyos-2.x"
> export TOSDIR="$TOSROOT/tos"
> export CLASSPATH='cygpath -w $TOSROOT/support/sdk/java/tinyos.jar'
> export CLASSPATH="$CLASSPATH;."
> export MAKERULES="$TOSROOT/support/make/Makerules"
> export PATH="/opt/msp430/bin:$PATH"
> 
> and I'm trying to do the Tinyos tutorial "Lesson 10: Platforms", I followed 
> all the steps but when I type:
> $ cd tinyos-2.x/apps/Null
> $ make yamp
> I have :
> mkdir -p build/yamp
>     compiling NullAppC to a yamp binary
> ncc -o build/yamp/main.exe -Os -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d 
> -Wnesc-all
>  -target=yamp -fnesc-cfile=build/yamp/app.c -board=   NullAppC.nc -lm
> make: ncc: Command not found
> make: *** [exe0] Error 127
> 
> I obtain the same thing when I type: make telosb :
> 
> bash-3.2$ make telosb
> /bin/sh: tos-ident-flags: command not found
> mkdir -p build/telosb
>     compiling NullAppC to a telosb binary
> ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow 
> -DDEF_TOS_AM_
> GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=  
>  N
> ullAppC.nc -lm
> make: ncc: Command not found
> make: *** [exe0] Error 127
> bash-3.2$ make yamp
> /bin/sh: tos-ident-flags: command not found
> 
> 
> I tried to check the state of the environment variables and when I go to 
> C:\Jennic\cygwin\etc\profile.d
> and type : source./tinyos.sh and then type :
> 
> 
> bash-3.2$ echo $CLASSPATH
> cygpath -w $TOSROOT/support/sdk/java/tinyos.jar;.
> 
> bash-3.2$ echo $MAKERULES
> /opt/tinyos-2.x/support/make/Makerules
> 
> bash-3.2$ echo $PATH
> /opt/msp430/bin:/opt/msp430/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS
> :/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Microsoft SQL 
> Serve
> r/80/Tools/BINN:/cygdrive/c/Program Files/Microsoft SQL 
> Server/90/Tools/binn/:/c
> ygdrive/c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin:/cygdr
> ive/c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/
> c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/c/Su
> n/SDK/bin:/cygdrive/c/Program 
> Files/Java/jre1.6.0_02:/cygdrive/c/WINDOWS/Microso
> ft.NET/Framework/v1.1.4322:/usr/bin:/or32-elf/bin/:/usr/bin:/ba-elf/bin/:/or32-e
> lf/bin
> 
> I don't know what to do, I need Help !!
> and thank you in advance




_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to