Difference between revisions of "Installing TinyOS-2.x on Mac OS X (Snow Leopard)"
(New page: * Install NesC, the AVR GCC compiler and the MSP GCC compiler by following the instructions at the [http://hinrg.cs.jhu.edu/git/?p=ports.git "Unofficial MacPorts for TinyOS" page]. * Ins...) |
m |
||
Line 10: | Line 10: | ||
* 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. | ||
+ | [[Category:Installation]] |
Revision as of 20:58, 17 February 2010
- Install NesC, the AVR GCC compiler and the MSP GCC compiler by following the instructions at the "Unofficial MacPorts for TinyOS" page.
- 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 "-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.