hello,
when running tossim on Blink (lesson 11) I got the following error:
o...@acer:~/tos/tinyos-2.x/apps/Blink$ make micaz sim
mkdir -p simbuild/micaz
make: python2.5-config : commande introuvable
make: python2.5-config : commande introuvable
make: python2.5-config : commande introuvable
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\(\)
-fnesc-gcc=gcc -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=\"omar\" -DIDENT_HOSTNAME=\"acer\"
-DIDENT_USERHASH=0x6f4de28aL -DIDENT_TIMESTAMP=0x4bcc92edL
-DIDENT_UIDHASH=0x2f18ecd3L -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 simbuild/micaz/pytossim.o -g -O0
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"omar\"
-DIDENT_HOSTNAME=\"acer\" -DIDENT_USERHASH=0x6f4de28aL
-DIDENT_TIMESTAMP=0x4bcc92edL -DIDENT_UIDHASH=0x2f18ecd3L
/home/omar/tos/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/include/python2.5
-I/home/omar/tos/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H
/home/omar/tos/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:139:20: error:
Python.h: Aucun fichier ou dossier de ce type
/home/omar/tos/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2501:4: error: #error
"This python version requires swig to be run with the '-classic' option"
/home/omar/tos/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:744: error: expected
initializer before ‘*’ token
/home/omar/tos/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:799: error: expected
initializer before ‘*’ token
/home/omar/tos/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:820: error: expected
initializer before ‘*’ token
In file included from /usr/include/c++/4.4/stdexcept:38,
from
/home/omar/tos/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2520:
/usr/include/c++/4.4/exception:35: error: expected declaration before end of
line
make: *** [sim-exe] Erreur 1
It seems that the system does not found the Python.h file.
any help please
thanks in advance,
**********************************************
Omar Cheikhrouhou
Engineer & Researcher @SENS Lab (Software Engineering and Network Security)
Higher Institute of Technological Studies - Address : Mahdia's road Km 2.5
Sfax. BP 88 A - 3099 El Bustan Sfax Telephone : (+216)74 237425 Poste : 437
Fax: : (+216)74 431 386
Ph.D @ CES Lab (Computer and Embedded System)-University of Sfax, National
School of Engineers BP W, Sfax, 3038, Tunisia , Fax:(+216)74665369
Coordinator C2i @ ISET Sfax (Certified C2i since 2008)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help