Hello Everyone!!!
I just say Thanks a lot for your cooperation, i've proved all outlines that you
told me. First i've fixed the second doubt, the way that i did was executing
the tinyos.sh from console (thanks Paul) as follow:
$ export TOSROOT=/opt/tinyos-2.1.0
$ export TOSDIR=$TOSROOT/tos
$ export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar
$ export MAKERULES=$TOSROOT/support/make/Makerules
$ export PATH=/opt/msp430/bin:$PATH
And then the classpath is ok.
I still have a doubt about the TOSSIM because i did two things. the first one
was copy at /usr/lib/ncc the steddef.h file and then i've put a new line in the
sim.extra file which is located in /opt/tinyos-2.1.0/support/make/, the line
that i've put is as follow:
GCC=gcc
GPP=g++
CFLAGS+=-I/usr/include -----LINE
THAT I'VE PUT
OPTFLAGS = -g -O0
LIBS = -lm -lstdc++
PFLAGS += -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\)
WFLAGS = -Wno-nesc-data-race
PYTHON_VERSION=2.5
And then, when i make "make micaz sim", this recognise the stddef.h file and
now it works, but now when i compile a new mistakes appears as follow:
lfel...@luisfe:/opt/tinyos-2.1.0/apps/Blink$ make micaz sim
mkdir -p simbuild/micaz
placing object files in simbuild/micaz
writing XML schema to app.xml
compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)
-Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c
-board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"lfeli99\"
-DIDENT_HOSTNAME=\"LuisFe\" -DIDENT_USERHASH=0x2d207a5bL
-DIDENT_TIMESTAMP=0x4a475093L -DIDENT_UIDHASH=0x04447312L -I/usr/include
-Wno-nesc-data-race BlinkAppC.nc -fnesc-dump=components -fnesc-dump=variables
-fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs
-fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:49:
/opt/tinyos-2.1.0/tos/lib/tossim/string.h:39: syntax error before `size_t'
/opt/tinyos-2.1.0/tos/lib/tossim/string.h:43: syntax error before `size_t'
/opt/tinyos-2.1.0/tos/lib/tossim/string.h:52: syntax error before `size_t'
/opt/tinyos-2.1.0/tos/lib/tossim/string.h:59: syntax error before `size_t'
.......
/opt/tinyos-2.1.0/tos/lib/tossim/string.h:109: syntax error before `strxfrm'
/opt/tinyos-2.1.0/tos/lib/tossim/string.h:184: syntax error before
`strcspn'
/opt/tinyos-2.1.0/tos/lib/tossim/string.h:188: syntax error before `strspn'
....
/usr/include/stdlib.h:140: syntax error before `__ctype_get_mb_cur_max'
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:50:
/usr/include/stdlib.h:337: syntax error before `size_t'
....
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:50:
/usr/include/stdlib.h:502: syntax error before `__size'
/usr/include/stdlib.h:507: syntax error before `size_t'
/usr/include/stdlib.h:684: syntax error before `size_t'
.....
/usr/include/stdio.h:678: syntax error before `fread'
/usr/include/stdio.h:684: syntax error before `fwrite'
/usr/include/stdio.h:706: syntax error before `fread_unlocked'
/usr/include/stdio.h:708: syntax error before `fwrite_unlocked'
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:80:
....
/opt/tinyos-2.1..0/tos/lib/tossim/sim_log.c:290: `args' undeclared (first use in
this function)
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:96:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_tossim.c: At top level:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_tossim.c:47: syntax error before `size_t'
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:37,
from /opt/tinyos-2.1.0/tos/lib/tossim/sim_mac.c:38,
from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:97:
/usr/include/time.h:200: syntax error before `strftime'
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/SimMoteP.nc:38,
from
/opt/tinyos-2.1.0/tos/lib/tossim/MainC.nc:49,
from BlinkAppC.nc:45:
In interface `SimMote':
/opt/tinyos-2.1.0/tos/lib/tossim/SimMote.nc:39: syntax error before `size_t'
In component `SimMoteP':
......
/opt/tinyos-2.1.0/tos/lib/tossim/SimMoteP.nc:61: syntax error before `)'
/opt/tinyos-2.1.0/tos/lib/tossim/SimMoteP.nc: At top level:
/opt/tinyos-2.1.0/tos/lib/tossim/SimMoteP.nc:107: syntax error before `size_t'
/opt/tinyos-2.1.0/tos/lib/tossim/SimMoteP.nc: In function
`sim_mote_get_variable_info':
/opt/tinyos-2.1.0/tos/lib/tossim/SimMoteP.nc:111: `len' undeclared (first use
in this function)
make: *** [sim-exe] Error 1
As you see, is about the data types of nesC. I've checked the structure when
they are defined in (nesc_nx.h) and is ok of course, but the makefile is not
able to find it. if someone have a clue to resolve
this, i would appreciate a lot.
Thanks
Luis Felipe Herrera Quintero
--- El vie 26-jun-09, Luis Felipe Herrera Quintero <[email protected]>
escribió:
> De: Luis Felipe Herrera Quintero <[email protected]>
> Asunto: [Tinyos-help] Doubts about install TinyOS 2.10 in a Ubuntu 9.04 -
> Jaunty Jackalope distribution
> Para: [email protected]
> Fecha: viernes, 26 de junio de 2009, 4:58 am
>
> Hello Everyone
>
> I've migrated to TinyOS 2.1 in a "Jaunty Jackalope
> Ubuntu Distribution", and i've installed all that this
> need it to run tinyOS, also i've proved some examples
> and runs normally. I have 2 doubts. The first one is related
> with the TOSSIM simulator because when i make "make micaz
> sim" a lot of mistakes appears as follow:
>
> /usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef..h: No
> such file or directory
>
/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such
> file or directory
> /usr/lib/ncc/nesc_nx.h:235: syntax error before
> `__nesc_ntoh_uint8'
> /usr/lib/ncc/nesc_nx.h:240: syntax error before
> `__nesc_hton_uint8'
> /usr/lib/ncc/nesc_nx.h:242: warning: type defaults to `int'
> in declaration of `base'
> /usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in
> a function)
> /usr/lib/ncc/nesc_nx.h:242: warning: data definition has no
> type or storage class
> /usr/lib/ncc/nesc_nx.h:243: syntax error before `return'
> /usr/lib/ncc/nesc_nx.h:246: syntax error before
> `__nesc_ntoh_leuint8'
> /usr/lib/ncc/nesc_nx.h:251: syntax error before
> `__nesc_hton_leuint8'
> /usr/lib/ncc/nesc_nx.h:253: warning: type defaults to `int'
> in declaration of `base'
> /usr/lib/ncc/nesc_nx.h:253: redefinition of `base'
>
/usr/lib/ncc/nesc_nx.h:242: previous declaration of `base'
> /usr/lib/ncc/nesc_nx.h:253: `value' undeclared here (not in
> a function)
> ....
>
> Likewise, the second one is about RadioCountLeds example, i
> can't compile it because the TinyOS doesn't find the
> classpath but i've checked it in the tinyos.sh file and the
> path is good
> (CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java) the
> mistakes are follow:
>
> RadioCountMsg.java:7: package net.tinyos.message does not
> exist
> public class RadioCountMsg extends
> net.tinyos.message.Message {
>
>
>
> ^
> RadioCountMsg.java:67: package net.tinyos.message does not
> exist
>
public
> RadioCountMsg(net.tinyos.message.Message msg, int
> base_offset) {
>
>
> ^
> RadioCountMsg.java:76: package net.tinyos.message does not
> exist
> public
> RadioCountMsg(net.tinyos.message.Message msg, int
> base_offset, int data_length) {
>
>
> ^
> RadioCountMsg.java:18: cannot find symbol
> symbol : method amTypeSet(int)
> location: class RadioCountMsg
> amTypeSet(AM_TYPE);
> ^
> RadioCountMsg.java:24: cannot find symbol
>
symbol : method amTypeSet(int)
> location: class RadioCountMsg
> amTypeSet(AM_TYPE);
> ^
>
> If someone tell me something about this, i would appreciate
> a lot again thanks.
>
>
> Best Regards
> Luis Felipe Herrera Quintero
>
>
>
>
> ____________________________________________________________________________________
> ¡Viví la mejor experiencia en la web!
> Descargá gratis el nuevo Internet Explorer 8
> http://downloads.yahoo.com/ieak8/?l=ar
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www..millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
¡Viví la mejor experiencia en la web!
Descargá gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=ar
____________________________________________________________________________________
¡Viví la mejor experiencia en la web!
Descargá gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=ar_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help