1 Building OpenOCD for OSX
2 ------------------------
4 There are a few prerequisites you will need first:
6 - Xcode 4 (install from the AppStore)
7 - Command Line Tools (install from Xcode 4 -> Preferences -> Downloads)
8 - MacPorts (http://www.macports.org/install.php)
10 - Homebrew (http://mxcl.github.io/homebrew/)
12 libtool, automake, autoconf, pkg-config and libusb can be easily
13 installed via MacPorts:
14 sudo port install libtool automake autoconf pkgconfig libusb [libusb-compat]
16 brew install libtool automake libusb [libusb-compat] [hidapi]
18 You should also specify LDFLAGS and CPPFLAGS to allow configure to use
19 MacPorts' libraries, so run configure like this:
20 LDFLAGS=-L/opt/local/lib CPPFLAGS=-I/opt/local/include ./configure [options]
22 If you're using Homebrew, no custom flags are necessary.
24 See README for the generic building instructions.
26 If you use an FTDI-based adapter and have the FTDI kext installed, you
27 will need to unload it prior to using OpenOCD:
28 sudo kextunload FTDIUSBSerialDriver.kext