Thanks Philip, but my Python version is 2.5 seen as below:
[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink> python --version
Python 2.5

regards,
weiping

> On Aug 13, 2007, at 1:47 AM, Wei Ping Song wrote:
>
>> Dear all,
>> I am a beginning student of Tinyos. Now I faced a problem while using
>> TOSSIM showed as below, and my os is open suse and Python version
>> is 2.5.
>>
>> Can anyone help me?
>>
>> thank very much
>>
>> weiping
>>
>> cjspc9:/opt/tinyos-2.x/apps/Blink # make micaz sim
>> 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
>> -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
>> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/
>> python2.5
>> -I/opt/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H
>> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ‘int
>> SWIG_Python_ConvertFunctionPtr(PyObject*, void**, swig_type_info*)’:
>> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2051: error: invalid
>> conversion from ‘const char*’ to ‘char*’
>> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ‘void
>> SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*,
>> swig_type_info**,
>> swig_type_info**)’:
>> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:6921: error: invalid
>> conversion from ‘const char*’ to ‘char*’
>> make: *** [sim-exe] Error 1
>>
>> _
>
> It looks like there's an inconsistency between your Python and the
> SWIG-generated code. I have Python 2.5 and it works fine... what
> exact Python version do you have?
>
> Phil

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to