Dear all, I seem to have solved this. The key problems were that I needed nesc 1.3.0 instead of 1.3.2 and need gcc4.0 for the nesc and start of tinyos install before switching to gcc44 to compile tinyos.jar. This seemed rather odd to me (see my route to a successful installation below).
Best wishes, Alex 1. Follow http://docs.tinyos.net/index.php/Installing_TinyOS-2.x_on_Mac_OS_X_%28Snow_Leopard%29: 1. cd /Users/user git clone git://hinrg.cs.jhu.edu/git/ports.git 2. Edit /opt/local/etc/macports/sources.conf to include a line: file:///Users/user/ports 3. sudo port install msp430-binutils-tinyos msp430-gcc-tinyos msp430-libc-tinyos (for MSP430) But don't install nesc 1.3.2 from macports. Install gcc44 from macports as instructed, but don't softlink yet. 2. Follow http://docs.tinyos.net/index.php/Installing_tinyos-2.x_on_Mac_OS_X_%28Tiger_%26_Leopard%29 to install stow, download tinyos-2.x & install nesc 1.3.0: * sudo port install stow * sudo mkdir -p /stow/repository * Open up the file ~/.profile from your home directory * Add the following two lines to export the PATH correctly whenever a new shell is opened * PATH=/stow/bin:/stow/sbin:$PATH * export PATH * cvs -d:pserver:[email protected]:/cvsroot/tinyos login * cvs -z3 -d:pserver:[email protected]:/cvsroot/tinyos co -P tinyos-2.x nesc 1.3.0 can be downloaded from http://sourceforge.net/projects/nescc/files/nescc/ * Install nesc using the standard configure/make/make install procedure * cd nesc-1.3.0 * ./configure --prefix=/stow/repository/nesc-1.3.0 * make * sudo make install * Run stow to install nesc into standard installation directories * cd /stow/repository * sudo stow nesc-1.3.0 3. Install the tinyos toolset $ cd tinyos-2.x/tools/ $ ./Bootstrap $ ./configure $ make $ sudo make install $ sudo tos-install-jni $ chmod a+x $TOSROOT/tools/tinyos/ncc/mig Check that the mig in the tinyos tools is being called and that it in turn calls the correct version of nescc: $ which mig $ cat /Users/alex/tinyos-2.x/tools/tinyos/ncc/mig $ cd ~/tinyos-2.x/support/sdk/java/ Now softlink to gcc44: $ sudo rm /usr/bin/gcc $ sudo rm /usr/bin/g++ $ sudo ln -s /opt/local/bin/gcc-mp-4.4 /usr/bin/gcc $ sudo ln -s /opt/local/bin/g++-mp-4.4 /usr/bin/g++ $ make 4. Check it worked. e.g. $ cd ~/tinyos-2.x/apps/tests/TestSerial $ make shimmer2r At this point I then had to go back and arch x86_64 when making the .jnilib files when installing the tinyos toolset. Dr Alexander I J Forrester MEng PhD CEng MIMechE Senior Lecturer Computational Engineering and Design Research Group / Rolls-Royce UTC for Computational Engineering School of Engineering Sciences University of Southampton Southampton SO17 1BJ Tel. 023 80592713 Southampton University Human Powered Aircraft, SUHPA: www.soton.ac.uk/suhpa<http://www.soton.ac.uk/suhpa> We have a book: "Engineering Design via Surrogate Modelling: A Practical Guide<http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470060689.html>", with accompanying Matlab software<http://www.wiley.com/go/forrester>. On 14 Apr 2011, at 10:58, Forrester A.I.J. wrote: Dear HELP, I'm trying to get TinyOS up and running on my MacBook Pro with OS X Snow Leopard and I've got issues. Please could someone have try and find time to give me some help? I'm trying to follow a mix of: http://docs.tinyos.net/index.php/Installing_TinyOS-2.x_on_Mac_OS_X_%28Snow_Leopard%29 and http://research-machine.blogspot.com/2010/01/how-to-install-tinyos-2-on-macosx-106.html and http://www.mobilab.unina.it/TinyOSMAC.htm (none of these links seem to have a full set of instructions, i.e. some "obvious" steps seem to be missing) I understand that I should be using gcc43 or gcc44, but cd tools ./Bootstrap ./configure make throws up errors unless I use the pre-installed gcc-4.0 or gcc-4.2, i.e. using the recommended soft links doesn't work. I then get errors with cd $TOSROOT/support/sdk/java make This seems to be an error with mig that yields SerialPacket.java and PrintMsg.java in the wrong format (very long make output included below). I have used export PATH=$TOSROOT/tools/tinyos/ncc/:$PATH chmod a+x $TOSROOT/tools/tinyos/ncc/mig to use the tinyos mig rather than that in /usr/local/bin. tos-check-env output also below and java version is: Alexander-Forresters-MacBook-Pro:java alex$ java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode) I've been trawling through message boards for a couple of days now. Any help would be much appreciated. No doubt you'll need some more info and I'll try to respond with it by return (my out of office auto reply that you'll get initially is because I'm hiding in my office trying to sort this out). Best wishes, Alex Dr Alexander I J Forrester MEng PhD CEng MIMechE Senior Lecturer Computational Engineering and Design Research Group / Rolls-Royce UTC for Computational Engineering School of Engineering Sciences University of Southampton Southampton SO17 1BJ Tel. 023 80592713 Southampton University Human Powered Aircraft, SUHPA: www.soton.ac.uk/suhpa<http://www.soton.ac.uk/suhpa> We have a book: "Engineering Design via Surrogate Modelling: A Practical Guide<http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470060689.html>", with accompanying Matlab software<http://www.wiley.com/go/forrester>. _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
