I'm basically guessing in the dark, but I would think that anything
that uses cygwin.dll to access files gets the "advantage" of the
cygdrive prefix fix...but I just hate to trust everything to them.
Java does not use cygwin.dll, so you should use C:/whatever for
full path names, especially if you have multiple drive/partitions.
When you say "...system is still working fine" does that mean we
fixed the original problem, or that we haven't broken anything else?
MS
ankur jain wrote:
Hi michael,
Thnx for such a thoughtful reply.
I tried the changes suggested by you in the TOSROOT and TOSDIR variables
and the good part is that system is still working fine.If that is true
then should i also change the path for MAKERULES env. variable. to the
real path. Since it is also specified as
"/opt/tinyos-1.x/tools/make/Makerules" .
Also i have a doubt about how the cygdrive directory is appended at
the beginning automatically before every absolute path when we see the
values for environmental variables "inside cygwin shell".Does it really
make a diffrence???
But for the "Classpath" variable the path is not shown with cygdrive
appended to the beginning .Why is it so.???
I am sorry for such childful doubts but i need to clear them for always
.So kindly bare with it,
Ankur Jain
------------------------------------------------------------------------
Download prohibited? No problem. CHAT
<http://in.rd.yahoo.com/tagline_webmessenger_1/*http://in.messenger.yahoo.com/webmessengerpromo.php>
from any browser, without download.
------------------------------------------------------------------------
Subject:
Re: [Tinyos-help] Regarding execution of TracerouteTest app in
contrib/hsn repository
From:
Michael Schippling <[EMAIL PROTECTED]>
Date:
Tue, 24 Jul 2007 12:46:31 -0600
To:
ankur jain <[EMAIL PROTECTED]>
To:
ankur jain <[EMAIL PROTECTED]>
CC:
TINYOS Help <[email protected]>
I wish I could answer your questions...cygwin makes some
(questionable? unavoidable? annoying?) assumptions and
hacks in order to imitate a *NIX system on MSWidows.
One of these is the confusing truncation of the "real"
path to such things as /usr and /opt -- There is a
registry entry that supplies the full prefix, seemingly
in your case "E:\Program Files\tinyos\UCB\cygwin" which
gets used somewhat willy-nilly. My observation is that
if you use the "real" path in place of the convenient
*NIX path as much as possible, things go a bit smoother.
Another BIG problem is spaces in dir/file names. Shells
like to parse commands as words separated by white space
so without careful consideration "E:/Program Files" becomes
two arguments to a command and creates havoc. (Thankfully
cygwin doesn't do the 8-char obfuscation that we have come
to know and love from Win3.0 days). You can trick the parser
with various combinations of "''"'s but it quickly becomes
a full time job finding the next place that needs it.
Why files are being removed...I couldn't say.
Anyway, my advice is to re-load cygwin someplace without
spaces, like E:/cygwin (although I'm not even sure that
it will behave correctly if it's not on C: -- I gave up
and increased my C partition size just to avoid finding out).
And to set those TOS variables similarly to mine.
Also as a special feature note, Java CLASSPATH entries
do NOT use the cygwin hacks so you have to specify paths
with C:/whatever...PLUS they are just as sensitive to
spaces.
sorry
MS
ankur jain wrote:
Thanks very much Michael for your quick response.
Regarding the questions that you have raised i have
1. tos.h is definitely there in the specified directory but this
particular application is strangely deleting all the contents of the
"tos.h" file and making it empty the moment i do "make mica2" every
time .I really don't know why it's happening??.
2. The "Program Files" directory is with a space between Program and
Files".But how it is supposed to show in cygwin shell.Should it not be
shown completely and should appear like Progr~1 in the cygwin
shell??.How can i make changes to make it appear like this.??
But other applications that are present in main apps directory of
tinyos repositry are absolutely running fine with this setting.
3. the values for TOSROOT and TOSDIR env. variables on my pc are:
TOSROOT=/opt/tinyos-1.x
TOSDIR=/opt/tinyos-1.x/tos
and following is the path for main tinyos repository on my p.c
/cygdrive/e/Program Files/tinyos/UCB/cygwin/opt/tinyos-1.x/
So do i need to change the values for TOSROOT and TOSDIR as specified
by you to include the absolute path w.r.t cygdrive ??????
Kindly help me to clear the following doubts Thanks in advance
Ankur jain
*/Michael Schippling <[EMAIL PROTECTED]>/* wrote:
Is tos.h actually in the directory specified?
And are you sure it's not "Program Files" with a space?
If it is with a space it will probably trip you up
since *NIX shell utilities often can't deal with it.
Also see if you have environment variables like this
set to your actual directories:
export TOSROOT=C:/cygwin/opt/tinyos-1.1.7
export TOSDIR=/cygdrive/C/cygwin/opt/tinyos-1.1.7/tos
MS
ankur jain wrote:
> Hi all,
> I was trying to execute the TracerouteTest app. present in
> contrib/hsn/apps directory.I downloaded whole hsn repository fron
> tinyos.cvs.sourceforge.net and placed it accordingly in the the
contrib
> folder.But when i tried to compile that app. for mica2 platform it
> thrown some strange error which is as follows:
> [TraceRouteTestAODV]$make mica2
> mkdir -p build/mica2
> compiling TraceRouteTest to a mica2 binary
> ncc -o build/mica2/main.exe -Os -tosdir=../../../../tos/ -I.
> -I%T/../contrib/hsn
> /tos/interfaces -I%T/../contrib/hsn/tos/system
> -I%T/../contrib/hsn/tos/lib -I%T/
> ../contrib/hsn/tos/lib/neighborhood -DDSDV_PERSISTANCE=1
> -DDSDV_PASSIVE_ACK=1 -D
> CONST_NEIGHBOR_LIST_LEN=5 -DTR_PIGGYBACK_LEN=5
-DDSDV_BI_DIR_QUALITY=1
> -DDSDV_PE
> RSISTANCE=1 -DDSDV_PASSIVE_ACK=1 -DRUPDATE_RANDOMIZE=1
> -DFAST_START_DSDV=1 -DCON
> ST_TXRES_VAL=85 -DFAST_START_DSDV=1 -DCONST_PROGVER=55
-DBUILD_DAY=24
> -DBUILD_MO
> NTH=7 -DBUILD_YEAR=7 -I%T/../contrib/hsn/tos/platform/mica2
> -finline-limit=10000
> 0 -Wall -Wshadow -DDEF_TOS_AM_GROUP=125 -Wnesc-all -target=mica2
> -fnesc-cfile=bu
> ild/mica2/app.c -board=micasb -DCC1K_DEF_FREQ=916700000
-I%T/lib/Deluge
> -DIDENT_
> PROGRAM_NAME=\"TraceRouteTest\" -DIDENT_USER_ID=\"Administrator\"
> -DIDENT_HOSTNA
> ME=\"administrator\" -DIDENT_USER_HASH=0xeada8bc5L
> -DIDENT_UNIX_TIME=0x46a58529L
> -DIDENT_UID_HASH=0xcded0b7eL TraceRouteTest.nc -lm
> cc1: e:\Program
>
Files\tinyos\UCB\cygwin\opt\tinyos-1.x\contrib\hsn\tos\interfaces\: No
> such file or directory
> : failed to preprocess
> e:\ProgramFiles\tinyos\UCB\cygwin\opt\tinyos-1.x\tos\system/tos.h
> cc1: e:\Program
>
Files\tinyos\UCB\cygwin\opt\tinyos-1.x\contrib\hsn\tos\interfaces\: No
> such file or directory
> : failed to preprocess TraceRouteTest.nc
> make: *** [exe0] Error 1
> I am not able to understand why it isn't finding or able to
locate to
> the interfaces directory and why it can't preprocess th tos.h
file in
> the system directory.
> Do i need to make certain changes to the application
makefile(i.e to
> include something) as well as to the MakeHSN file.......???
> Kindly somebody help me out as i am stuck due to this error for
last one
> week and struggling with it..
> Thnx in advance
> Ankur jain
>
>
------------------------------------------------------------------------
> Get the freedom to save as many mails as you wish. Click here to
know
> how.
>
>
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
------------------------------------------------------------------------
5, 50, 500, 5000. Store N number of mails in your inbox. Click here.
<http://in.rd.yahoo.com/tagline_mail_4/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/>
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help