It seems that there is no shared-object library in the python package of
cygwin (neither in the version on that is part of the cygwin bundle on
tinyos.net nor in the current versions on cygwin.com), and that there is
nothing called cygwin-devel, so I guess that this library might have
been created by a full "configure;make;" of the python sources.
If you have a working copy of the .so file, I would appreciate a copy to
try to void the "configure;make" hassle.
Sivan
Philip Levis wrote:
On Oct 7, 2006, at 12:02 PM, Sivan Toledo wrote:
I'm using tinyos-2.0.0beta2-3.cygwin.noarch.rpm which is what the
TinyOS installation page specifies.
<http://www.tinyos.net/dist-2.0.0/tinyos/windows/tinyos-2.0.0beta2-3.cygwin.noarch.rpm>
I don't think the problem is with the version of python. The command
that fails is
g++ -shared -fPIC build/micaz/pytossim.o build/micaz/sim.o
build/micaz/tossim.o -lstdc++ -o _TOSSIMmodule.so
The unresolved references are in pytossim.o, and they seem to refer
to some Python-related library (symbols like _PyString_FromString and
__imp__PyExc_NameError). I don't see on this command line the library
from which they should come. They are not in tossim.o (I checked with
nm).
The instructions in the TOSSIM tutorial seem pretty similar to the
one in the first tutorial, it basically just say to run "make micaz
sim" in apps/Blink.
Hm. This is weird. -fPIC suggests that it thinks it's compiling for
Linux, not Cygwin. The default sim.extra tries to figure out which OS
you are with the OSTYPE environment variable. If it is "cygwin", it
compiles for Cygwin, if "darwin" it compiles for Mac OSX, otherwise
Linux.
What is this environment variable on your machine? Can you try
OSTYPE=cygwin make micaz sim
and see what happens?
The other possibility is that you don't have the Python development
libraries. I had though that this was standard on most Cygwins, but...
did you install the one linked on the TinyOS site?
Phil
+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help