Dear Daniel,

I don't think this is due to the environment variables.

I can get the file produced by mannually execute the command like:

C:\>\progra~1\UCB\cygwin\bin\bash -l -c "make -C /opt/tinyos-1.x/apps/Sense/

pc"

this is under windows cmd. And according to Janos, "The -l option will make
sure that make will see the cygwin environment."  So I think it is not
because of the environment or sth.

I checked the make rule of pc. The first step:

mkdir -p build/pc is done.

and the second step:

"ncc -o build/pc/main.exe -g -O0 -pthread  -fnesc-nido-tosnodes=1000....."

is not complete. Because I suppose that at this step a file called app.c
should be generated.

Hope some of you can give some suggestions. Thank you a lot.

Cheers,
Enric



Best Regards,
Enric Y.H. Zheng
----- Original Message -----
From: "daniel widyanto" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 26, 2007 5:57 PM
Subject: Re: [Tinyos-help] How to make tinyos application under ecclipse


> Hi,
>
> TinyOS Makefile needs these environment variables to be set :
> TOSROOT, TOSDIR, CLASSPATH, and MAKERULES.
>
> I think your cygwin environment has these env variables (you can check
> it using "export" command), but your exec command doesn't have (when you
> exec the bash, it will run bash with empty env variables).
>
> Regards,
>
> -daniel
>
>
> On Mon, 2007-11-26 at 16:57 +0800, Enric wrote:
>> Dear Janos,
>>
>> I am sorry I was wrong.
>>
>> When I implemented my method, like:
>>
>> exec("\progra~1\UCB\cygwin\bin\bash -l -c "make
>> -C /opt/tinyos-1.x/apps/Sense/ pc");
>>
>> and your method, like:
>>
>> exec("c:\progra~1\UCB\cygwin\bin\bash -l -c
>> "cd /opt/tinyos-1.x/apps/Sense/;make pc");
>>
>> both cannot generate the proper result.
>>
>> The build/pc directory has been created. However, inside the directory
>> there is only one file: ident_flags.txt. Nothing else.
>>
>> But if I run the command with cmd mannually, like:
>>
>> C:\>\progra~1\UCB\cygwin\bin\bash -l -c "make
>> -C /opt/tinyos-1.x/apps/Sense/ pc"
>>
>> both can generate the expected .exe file.
>>
>> Can you suggest any reason? Thank you.
>>
>>
>> Best Regards,
>> Enric Y.H. Zheng
>>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[EMAIL PROTECTED]



-- 
Best wishes,
Kenneth Chan

------------------------
Wish you have a good day!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to