Difference between revisions of "Installing TinyOS-2.x on Mac OS X (Snow Leopard)"

From TinyOS Wiki
Jump to: navigation, search
Line 11: Line 11:
 
* For simulations that involve opening a lot of files, e.g. simulations involving Flash memories, in the shell, type "ulimit -n <number>" where <number> is a high-enough value.
 
* For simulations that involve opening a lot of files, e.g. simulations involving Flash memories, in the shell, type "ulimit -n <number>" where <number> is a high-enough value.
  
For troubleshooting, some of the [http://www.mobilab.unina.it/TinyOSMAC.htm tips here written for Tiger] are applicable.
+
== Troubleshooting ==
 +
 
 +
* If Java complains about not finding the JNI libraries (getenv, toscomm), try running it using sudo.
 +
 
 +
* For more troubleshooting, some of the [http://www.mobilab.unina.it/TinyOSMAC.htm tips here written for Tiger] maybe applicable.
  
 
[[Category:Installation]]
 
[[Category:Installation]]

Revision as of 17:39, 9 March 2010

  • Install gcc44 from MacPorts and softlink /opt/local/bin/gcc-mp-4.4 to gcc, and /opt/local/bin/g++-mp-4.4 to g++, in the directory /usr/bin.
 Note: gcc43 works too.
 Note: the apple-gcc* compiler does not work because it will complain that "-c" is not a valid option to the preprocessor.
  • Put "CFLAGS+=-D_FORTIFY_SOURCE=0" in your Makefile.
  • For simulations that involve opening a lot of files, e.g. simulations involving Flash memories, in the shell, type "ulimit -n <number>" where <number> is a high-enough value.

Troubleshooting

  • If Java complains about not finding the JNI libraries (getenv, toscomm), try running it using sudo.