On Mar 31, 2006, at 8:55 PM, Philip Levis wrote:

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

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


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to