TOSSIM Python compiling problem

When you use TOSSIM in TinyOS, you come up to this error:

In function ‘void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)’
error: invalid conversion from ‘const char*’ to ‘char*’

(overall there are two errors like this one)

First check whether the error can be solved using solution on TinyOS wiki website on
TOSSIM .

If even than, it doesn't work,
go to $TOSROOT/tos/lib/tossim and run ./generate-swig.bash
In my case, it shows you some warnings, but that is ok.
afterwards, it worked fine for me.

If you still have troubles, check also:
python and python-dev should be on the same version,
swig should be installed.

If all this didnt solve your problems, good luck finding it, and I hope you put the solution somewhere on internet as well.

Comments

renesto said…
Take a look also on which version is written in sim.extra
Sometimes, for some other app requirements, you have updated the version of Python. Most likely, everything is already set, just a small thing called PYTHON_VERSION should be the right value.
ivy said…
This comment has been removed by a blog administrator.

Popular posts from this blog

Timeline on Latex

Exporting Skype Chat/Skype Contacts to csv file using the shell script and sqlite3 (usually already installed on mac)

trim() not supported by IE7 and IE8