Finally the path for TOSROOT was wrong.
I found a message in the mail list indicating this problem.
And i added NESCPATH and PYTHONPATH too
It must be export TOSROOT="/cygdrive/c/tinyos/cygwin/opt/tinyos-2.x" instead of 
"opt/tinyos-2.x" it seems.
However with this path i can compile Blink.
Thank you very much
------------------------------------------------------------------------------------------------------------

[EMAIL PROTECTED] /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/Blink
$ make micaz sim-cygwin
mkdir -p build/micaz
    compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow -Wnesc-all
-target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -DIDENT_PROGRAM_NAME=
\"BlinkAppC\" -DIDENT_USER_ID=\"nguyenvp\" -DIDENT_HOSTNAME=\"mi2500961\" -DIDEN
T_USER_HASH=0xfb248314L -DIDENT_UNIX_TIME=0x48577d34L -DIDENT_UID_HASH=0x197af6e
dL -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referen
ced(interfacedefs, components)' -fnesc-dumpfile=build/micaz/wiring-check.xml Bli
nkAppC.nc -lm
    compiled BlinkAppC to build/micaz/main.exe
            2218 bytes in ROM
              51 bytes in RAM
avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
    writing TOS image

[EMAIL PROTECTED] /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/Blink
$ more ~/.bashrc
#!/bin/sh
export TOSROOT="/cygdrive/c/tinyos/cygwin/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 NESCPATH="/opt/tinyos-2.x/tos/chips;."
export PYTHONPATH="/opt/tinyos-2.x/support/sdk/python"

 Cyril



----- Message d'origine ----
De : Tiny User <[EMAIL PROTECTED]>
À : ivi610 <[EMAIL PROTECTED]>; "[email protected]" 
<[email protected]>
Envoyé le : Mardi, 17 Juin 2008, 9h51mn 09s
Objet : Re: Re : Re : [Tinyos-help] can't compile Blink

you do not have the variables PATH and JAVA_HOME
and if did not work i think you have to set a variable related to NESc compiler 
to "see" the .h files..


On Tue, Jun 17, 2008 at 8:39 AM, Tiny User <[EMAIL PROTECTED]> wrote:

Hi here is the values i have on my PC, But I stopped working on the windows I 
work now on Ubuntu.


Environment
variables:
User Variables:
CLASSPATH:
C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.;
JAVA_HOME:
C:\Sun\SDK
PATH:
C:\Sun\SDK\jdk\bin;C:\cygwin\bin;
TEMP: (and TMP)
C:\temp
System Variables:
CLASSPATH:
C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.;
JAVA_HOME:
C:\Sun\SDK
Path:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Sun\SDK\jdk\bin;C:\WATCOM\BINNT;C:\WATCOM\BINW;C:\cygwin\bin;
PGLOCALEDIR:
C:\Program
Files\PostgreSQL\8.3\share\locale
TEMP: ( and TMP)
%SystemRoot%\TEMP



On Tue, Jun 17, 2008 at 8:20 AM, ivi610 <[EMAIL PROTECTED]> wrote:

which environment variables should i check please?
thanks

 Cyril



----- Message d'origine ----
De : Tiny User <[EMAIL PROTECTED]>
À : ivi610 <[EMAIL PROTECTED]>
Envoyé le : Mardi, 17 Juin 2008, 8h06mn 10s
Objet : Re: Re : [Tinyos-help] can't compile Blink


then you have to check the environment variables in system properties of win xp


On Tue, Jun 17, 2008 at 8:02 AM, ivi610 <[EMAIL PROTECTED]> wrote:
 
Hello
i use windows xp with cygwin

 Cyril



----- Message d'origine ----
De : Tiny User <[EMAIL PROTECTED]>
À : ivi610 <[EMAIL PROTECTED]>
Envoyé le : Mardi, 17 Juin 2008, 7h58mn 51s
Objet : Re: [Tinyos-help] can't compile Blink


do you use windows or Linux???


On Mon, Jun 16, 2008 at 5:14 PM, ivi610 <[EMAIL PROTECTED]> wrote:
 
Hello all,
i've installed tinyos-2.0 but i have problems while compiling Blink.
It seems make can't find some include files like atm128hardware.h and others....
What should i do?
I have no idea, please help!!
Thank you very much

------------------------------------------------------------------------------------------------------

 $ make micaz
C:\tinyos\cygwin\opt\tinyos-2.x\support\make\Makerules:31: warning, MAKERULES co
ntains 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.

mkdir -p build/micaz
    compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow -Wnesc-all
-target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -DIDENT_PROGRAM_NAME=
\"BlinkAppC\" -DIDENT_USER_ID=\"nguyenvp\" -DIDENT_HOSTNAME=\"mi2500961\" -DIDEN
T_USER_HASH=0xfb248314L -DIDENT_UNIX_TIME=0x48568207L -DIDENT_UID_HASH=0x755841c
bL -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referen
ced(interfacedefs, components)' -fnesc-dumpfile=build/micaz/wiring-check.xml Bli
nkAppC.nc -lm
In file included from C:/tinyos/cygwin/opt/tinyos-2.x/tos/system/MainC.nc:43:
C:/tinyos/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:50:28: atm128hard
ware.h: No such file or directory
C:/tinyos/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:51:23: Atm128Adc.
h: No such file or directory
C:/tinyos/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:52:23: MicaTimer.
h: No such file or directory
In component `BlinkAppC':
BlinkAppC.nc:45: failed to preprocess C:\tinyos\cygwin\opt\tinyos-2.x\tos/system
/MainC.nc
BlinkC.nc:37:19: Timer.h: No such file or directory
BlinkAppC.nc:45: failed to preprocess BlinkC.nc
In file included from BlinkAppC.nc:45:
In component `LedsC':
C:/tinyos/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:38: component PlatformLedsC
not found
C:/tinyos/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:42: cannot find `Init'
C:/tinyos/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:43: cannot find `Led0'
C:/tinyos/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:44: cannot find `Led1'
C:/tinyos/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:45: cannot find `Led2'
C:/tinyos/cygwin/opt/tinyos-2.x/tos/system/TimerMilliC.nc:34:19: Timer.h: No suc
h file or directory
In component `BlinkAppC':
BlinkAppC.nc:46: failed to preprocess C:\tinyos\cygwin\opt\tinyos-2.x\tos/system
/TimerMilliC.nc
BlinkAppC.nc:46: component `TimerMilliC' is not generic
BlinkAppC.nc:47: component `TimerMilliC' is not generic
BlinkAppC.nc:48: component `TimerMilliC' is not generic
BlinkAppC.nc:51: cannot find `Boot'
BlinkAppC.nc:53: cannot find `Timer0'
BlinkAppC.nc:54: cannot find `Timer1'
BlinkAppC.nc:55: cannot find `Timer2'
BlinkAppC.nc:56: cannot find `Leds'
make: *** [exe0] Error 1Cyril




 


-- 
---------------------------------------------------
www.youtube.com/yamos2


      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to