The problem appears to be the GCC 4.x vs GCC 3.x problem if
I remember correctly. It should be in the archives on how to change your
compiler version from 4 to 3.
have u modified the AM.h file because it is showing a parse error in AM.h. check if u have done some changes in that
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sougata sen
Sent: Monday, September 11, 2006 00:17
To: preeti k
Cc: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] installation query
On 9/9/06, preeti k <[EMAIL PROTECTED] > wrote:Hi,
I gave the 'make pc ' command by going to the application stored at ../tinyosdir/tinyos1.x/apps/Blink.
But the file did not compile and i got the following error (it is quite long but i am pasting it for your reference)
[EMAIL PROTECTED] Blink]# make pc
compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000 -fnesc-cfile=build/pc/app.c Blink.nc -lm
In file included from /home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/GuiMsg.h:51,
from /home/preeti/tinyosdir/tinyos- 1.x/tos/types/dbg.h:70,
from /home/preeti/tinyosdir/tinyos- 1.x/tos/platform/pc/hardware.h:65,
from /home/preeti/tinyosdir/tinyos-1.x/tos/system/tos.h:132:
/home/preeti/tinyosdir/tinyos- 1.x/tos/types/AM.h:155: parse error before `struct'
/home/preeti/tinyosdir/tinyos- 1.x/tos/types/AM.h:156: parse error before `struct'
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:183: parse error before `TOS_Msg'
In file included from /home/preeti/tinyosdir/tinyos- 1.x/tos/platform/pc/hardware.h:116,
from /home/preeti/tinyosdir/tinyos- 1.x/tos/system/tos.h:132:
/home/preeti/tinyosdir/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
/home/preeti/tinyosdir/tinyos- 1.x/tos/platform/pc/eeprom.c:114: warning: declaration of `length' shadows global declaration
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration
/home/preeti/tinyosdir/tinyos- 1.x/tos/platform/pc/eeprom.c:144: warning: declaration of `length' shadows global declaration
/home/preeti/tinyosdir/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration
make: *** [build/pc/main.exe] Error 1
Can anyone help please?
PreetiOn 9/9/06, Sumit Gupta <[EMAIL PROTECTED] > wrote:
Hi,
make pc is a command to compile which will store the compiled binary file in build folder in your computer.
For example: If you want to compile application Blink stored in ../tinyos-1.x/apps/Blink/ then you need to give following command:
make <platform>
thus for tossim (or PC platform), it is: make pc (it will store binary in .../Blink/build/pc/main.exe)
and for other platforms like mica2 it is: make mica2 (it will store binary in .../Blink/build/mica2/main.exe)
Now to run the file on TOSSIM (which comes with Tinyos-1.x by defualt, thus u dont have to install it) - stay in Blink directory and type:
build/pc/main.exe <number of nodes you want to simulate>
thus for example for 10 nodes network:
build/pc/main.exe 10.
To see the result of simulation you have to learn more about tinyos's tools and options and you might want to go through TOSSIM tutorial located at
http://www.tinyos.net/tinyos-1.x/doc/nido.pdf
I hope it helped.
Sumit
On 9/8/06, preeti k < [EMAIL PROTECTED] > wrote:Hello there..
i have been trying to install tinyos1.x on fedora core 5 . I need to use tossim as well. i typed 'make pc ' on the prompt to get tossim running but i could not. Can anyone help please
Preeti_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Sougata Sen
Bangalore
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help