Hi, I'm new to TinyOS and i'm desperate because i'm trying to do the "Getting Started" tutorial and i can't make Blink to compile without errors. Everytime i try to compile it appears the following:
mkdir -p build/micaz placing object files in build/micaz writing XML schema to app.xml compiling BlinkAppC to object file sim.o ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -finline-limit=100000 -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"mike\" -DIDENT_HOSTNAME=\"Mike-PC\" -DIDENT_USERHASH=0xea39ab9bL -DIDENT_TIMESTAMP=0x48a16a29L -DIDENT_UIDHASH=0xc27871eaL -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 compiling Python support and C libraries into pytossim.o, tossim.o, and c-support.o g++ -c -shared -fPIC -o build/micaz/pytossim.o -g -O0 -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"mike\" -DIDENT_HOSTNAME=\"Mike-PC\" -DIDENT_USERHASH=0xea39ab9bL -DIDENT_TIMESTAMP=0x48a16a29L -DIDENT_UIDHASH=0xc27871eaL /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.5 -I/opt/tinyos-2.0.2/tos/lib/tossim -DHAVE_CONFIG_H /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:26:20: error: Python.h: Ficheiro ou directoria inexistente /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:296: error: ISO C++ forbids declaration of 'PyObject' with no type /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:296: error: expected ';' before '*' token /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:297: error: 'PyObject' has not been declared /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:302: error: 'PyObject_HEAD' does not name a type /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:306: error: expected initializer before '*' token /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:313: error: 'FILE' has not been declared /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx: In function 'int swig_varlink_print(swig_varlinkobject*, int*, int)': /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:316: error: 'fprintf' was not declared in this scope /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:317: error: 'struct swig_varlinkobject' has no member named 'vars' /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx: At global scope: /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:325: error: expected initializer before '*' token /opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:3496: error: expected `}' at end of input make: *** [sim-exe] Error 1 i think i have python installed but i can't find 'Python.h' Can someone pleeeeease help me? TIA
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
