[Tinyos-help] TOSSIM compiling error in tinyos2.x
Francisco Javier Muñiz rodriguez
pancho.muniz at gmail.com
Sun Aug 27 18:47:55 PDT 2006
> TOSSIM for TinyOS 2.0 currently does not work under Cygwin. It turns out
> to be a really nasty problem: in Windows, shared objects cannot have
> undefined references. The way most python modules work is that they link
> against the interpreter (e.g., for functions to manipulate basic data
> types). There are ways around it, but it's going to be some work (you have
> to create an importlib that the shared object can link against). It'll
> definitely be there for the full release. Until then, you can still run
> TOSSIM as a C++ program. The latter parts of the tutorial go into how to
> do this.
>
> Alternatively, you can run Linux inside VMWare or Xen.
>
>
> Scratch that. Kaisen Lin and I just figured it out. It looks like CVS is
> down right now, so I've put a fix up on the web:
>
> http://csl.stanford.edu/~pal/tinyos/sim-cygwin.extra <http://csl.stanford.edu/%7Epal/tinyos/sim-cygwin.extra>
>
> Download this file and put it in your tinyos-2.x/support/make directory.
> Instead of typing 'make micaz sim' type 'make micaz sim- cygwin'. You'll
> still get some warnings about shadowed declarations (I'll clean those up
> when I can), but you should be able to compile and use TOSSIM under
> cygwin. I'll eventually fold this stuff into the basic sim.extra so it
> acts conditionally on whether you're under Cygwin. This file assumes that
> you have Python 2.3; if you have a different version, you might need to
> change the file a bit. Eventually, the 2.x install might detect this sort
> of thing, but for now you might need to tweak files a bit.
>
> Phil
>
>
Hello all,
I'm trying to learn Tinyos, so mi doing the first tutorial and i encounter
the same problem as the post before, but mi not using cygwin, instead mi
working in Ubuntu 6. So the cygwin patch wont work for me, is there any
other way to get past these problem?
/Blink$ make micaz sim
----just is a part of the error list ---
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3420: error: 'd' no se
declaró en este ámbito
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3422: error: 'SWIG_globals'
no se declaró en este ámbito
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3422: error:
'SWIG_Python_newvarlink' no se declaró en este ámbito
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3423: error: 'SwigMethods' no
se declaró en este ámbito
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3423: error: 'Py_InitModule'
no se declaró en este ámbito
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3424: error:
'PyModule_GetDict' no se declaró en este ámbito
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3432: error: no se puede usar
'SWIG_Python_InstallConstants' como una función
make: *** [sim-exe] Error 1
Thank you all
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060827/1030b9f8/attachment.html
More information about the Tinyos-help
mailing list