You should look at the location of Python.h file. I have 2.6.6 version
installed and I found it at /usr/include/python2.6

set this location to the variable: CFLAGS in sim.extra file
restart your terminal.

see what happens.


Parisa Panjideh wrote:
> 
> Hi all,
> 
>  
> 
> I have a problem compiling TOSSIM. I face to this error:  "make:
> python2.5-config: Command not found".
> 
> The Python version that I have is 2.6.2. I have set
> "PYTHON_VERSION=2.6.2" in sim.extra file. But I have still the same
> problem...
> 
> Can anyone help me please??!
> 
>  
> 
> The complete error message is as the following:
> 
> mkdir -p simbuild/micaz
> 
> make: python2.5-config: Command not found
> 
> make: python2.5-config: Command not found
> 
> make: python2.5-config: Command not found
> 
>   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=\"nap\"
> -DIDENT_HOSTNAME=\"NAP\" -DIDENT_USERHASH=0x23204da4L
> -DIDENT_TIMESTAMP=0x4d74feabL -DIDENT_UIDHASH=0x4e8ed5b3L
> -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=\"nap\"
> -DIDENT_HOSTNAME=\"NAP\" -DIDENT_USERHASH=0x23204da4L
> -DIDENT_TIMESTAMP=0x4d74feabL -DIDENT_UIDHASH=0x4e8ed5b3L
> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx -I/include/python2.5
> -I/opt/tinyos-2.1.1/tos/lib/tossim -DHAVE_CONFIG_H 
> 
> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:139:20: error:
> Python.h: No such file or directory
> 
> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:2501:4: error: #error
> "This python version requires swig to be run with the '-classic' option"
> 
> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:744: error: expected
> initializer before '*' token
> 
> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:799: error: expected
> initializer before '*' token
> 
> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:820: error: expected
> initializer before '*' token
> 
> In file included from /usr/include/c++/4.3/stdexcept:43,
> 
>                  from
> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:2520:
> 
> /usr/include/c++/4.3/exception:40: error: expected declaration before
> end of line
> 
> make: *** [sim-exe] Error 1
> 
>  
> 
> Best regards
> 
> Parisa
> 
>  
> 
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-Compiling-TOSSIM-tp31088835p31111260.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to