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

Reply via email to