Mac OS X Software Installation
Links
- CrossPack-AVR - contains GNU compiler suite, a C library for the AVR, the AVRDUDE uploader and several other useful tools
- Ladyada's mac setup guide - for the Fuzebox kit
- Pixen - pixel art editor for Mac - works with Python Script for Generating Tile Data
Troubleshooting
Unknown opcode `typedef' errors
First, try switching gcc version from the Terminal:
$ avr-gcc-select 4
If the problem still persists, recompile your AVR toolchain (see below).
Avr-size: invalid option -- C
From the included Makefile, change this line:
@avr-size -C --mcu=${MCU} ${TARGET}
To this:
@avr-size -A ${TARGET}
Compiling AVR Toolchain
Install Xcode
Make sure that you have Apple's Xcode Developer Tools installed first. This is necessary to build the toolchain.
Install binutils
Download the newest version of binutils.
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure --target=avr make sudo make install
Install gmp
Download the newest version of gmp (needed to compile gcc).
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install
Install mpfr
Download the newest version of mpfr (needed to compile gcc).
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install
Install mpc
Download the newest version of mpc (needed to compile gcc).
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install
Install gcc
Download latest release of gcc version 4
Important: version 5 is not currently compatible
Extract the file and cd to its folder in the Terminal.
From the Terminal:
mkdir obj cd obj/ ../configure --target=avr --enable-languages=c,c++ --disable-libssp --disable-nls make sudo make install
Install avr-libc
Download the newest version of avr-libc.
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure CC=avr-gcc --host=avr make sudo make install
Install libusb-0.1
If you are planning to use an AVRISP mkII USB programmer you must install libusb before compiling avrdude. Otherwise, skip to installing avrdude.
Important: Install the legacy version of libusb
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install
Install avrdude
Download the newest version of avrdude.
Extract the file and cd to its folder in the Terminal.
From the Terminal:
./configure make sudo make install
Building Uzebox Tools
Install Homebrew
From the Terminal:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install SDL
From the Terminal
brew install sdl
Compiling Uzebox Tools
From the Terminal:
git clone https://github.com/Uzebox/uzebox.git cd uzebox make tools