Enric,


I suspect that there is something written to stderr, as well. What you're
seeing is probably just stdout.



You might also want to add PFLAGS += -v to your Makefile, just to get some
more details on what the nesc compiler is doing.



Janos





-----Original Message-----
From: Enric [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 28, 2007 1:25 AM
To: Janos Sallai
Cc: [email protected]
Subject: Re: [Tinyos-help] How to make tinyos application under ecclipse



Dear Janos, and all guys,



Thank you for taking your time. I checked the output, it just hung after
run ncc command. Something like this:



Output Message:

mkdir -p build/pc

compiling Sense to a pc binary

ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -Wall
-Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc
-fnesc-cfile=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME="Sense"
-DIDENT_PROGRAM_NAME_BYTES="83,101,110,115,101,0" -DIDENT_USER_ID="admin"
-DIDENT_USER_ID_BYTES="97,100,109,105,110,0" -DIDENT_HOSTNAME="c430pc2"
-DIDENT_HOSTNAME_BYTES="99,52,51,48,112,99,50,0"
-DIDENT_USER_HASH=0x43d304f7L -DIDENT_UNIX_TIME=0x474d159dL Sense.nc -lm
-v

The process does not carry on. It's weird because why ncc worked well if I
manually execute the command under cmd. what's the possible reason for
this?

Thank you.

Best Regards,
Enric Y.H. Zheng

From: Janos Sallai <[EMAIL PROTECTED]>
Date: 27-nov-2007 0:21
Subject: RE: [Tinyos-help] How to make tinyos application under ecclipse
To: Enric <[EMAIL PROTECTED]>
Cc: [email protected]
<mailto:[EMAIL PROTECTED]>

A coulple of things can cause this. Most probably, you environment
variables are not correctly set up. You might want to grab the output
(stdout and stderr) of the process you execute. This will tell you what
the problem is.



Janos



-----Original Message-----
From: Enric [mailto:[EMAIL PROTECTED]
Sent: Monday, November 26, 2007 2:57 AM
To: Janos Sallai
Cc: [email protected]
Subject: Re: [Tinyos-help] How to make tinyos application under ecclipse



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

----- Original Message -----

From: "Janos Sallai" <  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]>

To: <  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]>

Sent: Monday, November 26, 2007 12:17 PM

Subject: RE: [Tinyos-help] How to make tinyos application under ecclipse



> As I recall, you can tell exec what working directory is (and what the
> environment is). Check out the docs of java.lang.Runtime.
>
> If that's not what you need, you can still do exec("/cygwin/bin/bash -l
-c
> cd mydir; /cygwin/tinyos-1.x/apps/Blink/make pc")
>
> Janos
>
> -----Original Message-----
> From:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 25, 2007 12:12 AM
> To: Janos Sallai
> Subject: RE: [Tinyos-help] How to make tinyos application under ecclipse
>
> Dear Janos,
>
> Thank you very much for your kind reply.
>
> As you know I need to execute make on a specific directory. How should
> I specify that?Is it something like:
>
> exec("/cygwin/bin/bash -l -c "/cygwin/tinyos-1.x/apps/Blink/make pc") ?
>
> Best,
> Enric
>
>
> -You can use exec("/cygwin/bin/bash -l -c "make"). The -l option will
make
> -sure that make will see the cygwin environment.
>
> -Janos
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.5/1148 - Release Date:
> 11/23/2007 7:39 PM
>
>



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.7 - Release Date: 11/25/2007
12:00 AM





No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.7 - Release Date: 11/25/2007
12:00 AM


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to