 |
| Author |
Message |
|
|
Posted: Dec 19, 2011 - 03:31 PM |
|

Joined: Dec 19, 2011
Posts: 1
|
|
I've reinstalled my macs os with the newest lion version and now I'm trying to get a working toolchain for AVR programming. Unfortunately I'm having trouble getting it running.
I've tried the ladyada tutorial (http://www.ladyada.net/learn/avr/setup-mac.html) but the first two options didn't work for me. It looks like the packages are a few years old and make refuses to compile the code I've written for my ATMega644 because of missing definitions.
The second thing I've tried is compiling all the sources myself once through ladyada's tutorial and once with help of J Manton's blog (http://jmanton.wordpress.com/2010/08/08/compiling-avr-gcc-toolchain-from-scratch/). The problem is however that both times the compilation of GCC fails with the following line: "configure: error: libmpfr not found or uses a different ABI."
I'm not a terminal expert and I honestly have no idea how to fix this.
Is there anyone here that has the toolchain running on os x lion and that could point me in the right direction (or even maybe to a pre-compiled package)?
Thanks a lot. |
|
|
| |
|
|
|
|
|
Posted: Dec 28, 2011 - 08:05 PM |
|

Joined: Dec 28, 2011
Posts: 1
|
|
Build the toolchain using Homebrew: http://mxcl.github.com/homebrew/
Homebrew doesn't include AVR in the official library, so you need to use an unofficial one from: https://github.com/larsimmisch/homebrew-alt
Steps:
1. Install Homebrew from link above
2. In Terminal:
Code:
git clone https://github.com/larsimmisch/homebrew-alt.git /usr/local/LibraryAlt
brew install /usr/local/LibraryAlt/avr/avr-libc.rb
brew install avrdude
Worked for me on Lion. |
|
|
| |
|
|
|
|
|
Posted: Mar 28, 2012 - 12:59 AM |
|

Joined: Nov 28, 2006
Posts: 1
|
|
Hi,
The recommended way to install the avr tools through homebrew has changed. It is now:
Code:
brew tap larsimmisch/avr
brew install avr-libc
brew install avrdude
The brew tap command is new (and nicer than git clone), so things were shuffled around. In particular, the repository https://github.com/larsimmisch/homebrew-alt was deprecated. The commands above will use the new repository at https://github.com/larsimmisch/homebrew-avr. |
|
|
| |
|
|
|
|
|
|
|