Hi Razvan,

Yes you are right. I am missing python2.5-dev! Thanks.
Maybe the wiki needs to specifically mention about python2.5-dev for Ubuntu.

David

2009/4/18 Razvan Musaloiu-E. <razv...@cs.jhu.edu>

> Hi!
>
> On Fri, 17 Apr 2009, David Li wrote:
>
>  Hi Everyone,
>>
>> I was compiling Tossim for Iris platform by "make iris sim" under
>> tinyos-2.1.0/app/Blink.  I am puzzled by the following errors. Anyone has
>> any clue? I didn't search the archive.
>>
>> David
>> ---------------------------
>>
>>
>>  compiling Python support and C libraries into pytossim.o, tossim.o, and
>> c-support.o
>> g++ -c  -shared -fPIC -o simbuild/iris/pytossim.o -g -O0
>> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"wdli\"
>> -DIDENT_HOSTNAME=\"SVLCZNJBF1\" -DIDENT_USERHASH=0xecd56ae3L
>> -DIDENT_TIMESTAMP=0x49e8c81fL -DIDENT_UIDHASH=0xcb41bfb9L
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.5
>> -I/opt/tinyos-2.1.0/tos/lib/tossim -DHAVE_CONFIG_H
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:26:20: error: Python.h:
>> No such file or directory
>>
>
> Your system doesn't have the Python.h. This is a common problem that is
> discuss here:
>
> http://docs.tinyos.net/index.php/TOSSIM#You_do_not_have_the_needed_Python_support_installed
> In Debian/Ubuntu the package you need to install is called python2.5-dev.
>
> --
> Razvan ME
>
>
>  /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:296: error: ISO C++
>> forbids declaration of ‘PyObject’ with no type
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:296: error: expected ‘;’
>> before ‘*’ token
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:297: error: ‘PyObject’
>> has not been declared
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:302: error:
>> ‘PyObject_HEAD’ does not name a type
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:306: error: expected
>> initializer before ‘*’ token
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:313: error: ‘FILE’ has
>> not been declared
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx: In function ‘int
>> swig_varlink_print(swig_varlinkobject*, int*, int)’:
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:316: error: ‘fprintf’ was
>> not declared in this scope
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:317: error: ‘struct
>> swig_varlinkobject’ has no member named ‘vars’
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx: At global scope:
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:325: error: expected
>> initializer before ‘*’ token
>> /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:3496: error: expected `}'
>> at end of input
>> make: *** [sim-exe] Error 1
>>
>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to