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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help