Compiling Audacity under Mac OS X using gcc Authors: Dominic Mazzoni ================================================================ This version is currently accurate for Audacity version 1.3.1. Last Updated: February 3, 2006 If the advice here is inaccurate or incomplete, please email audacity-devel@lists.sourceforge.net. ================================================================ Note: Audacity is no longer supported at all for Mac OS 9. This document assumes you are using Mac OS X 10.4 or newer with Xcode 1.5 or newer. If you type "gcc --version" at your prompt, you should see: gcc version 3.3 20030304 (Apple Computer, Inc. build 1666) Only the command-line build process is officially supported because it's easier to keep it in sync between the various platforms. However, an Xcode 2.2 project is included in the "mac" subdirectory that should be up-to-date. We suggest that you follow the instructions below to compile Audacity using the automated command-line build process first, and only then consider using an IDE. --------------------------- STEP 1: Download wxWindows --------------------------- To simplify the implementation of a near-identical user interface across platforms, Audacity uses classes and resources from wxWindows, a portable GUI framework for C++ (and Python). You must download and build wxWindows before attempting to compile Audacity, or nothing will work! wxWindows is available from http://www.wxwindows.org. Similar to the Linux kernel, wxWindows is available as stable and development branches. The best way to compile Audacity is to download wxMac 2.8.10. For step 1, just download wxMac 2.8.10 from: http://www.wxwindows.org/downloads/ Uncompress wxMac from the command line by typing: tar xvzf wxMac-2.8.10.tar.gz -------------------------- STEP 2: Download Audacity -------------------------- You can find the latest Audacity source code from http://audacity.sourceforge.net/ To retrieve the latest version from SVN, use the following command: svn checkout http://audacity.googlecode.com/svn/audacity-src/trunk/ audacity-read-only ---------------------------------- STEP 3: Compile and install wxMac ---------------------------------- cd wxMac-2.8.10 mkdir macbuild cd macbuild ../configure --disable-shared make sudo make install [ Type your Mac OS X password ] --------------------------------------------- STEP 4a: Compile Audacity using command line --------------------------------------------- To compile everything: ./configure --enable-static make -------------------------------------- STEP 4b: Compile Audacity using Xcode -------------------------------------- Double click Audacity.xcodeproj in the "mac" subdirectory of the Audacity source tree. Click the "Build" toolbar button or select "Build" from the "Build" menu. NOTE: If you installed wxWidgets using a prefix other than the default (/usr/local), you will need to specify the prefix you used in the project before building. Double click "Audacity" in the "Groups & Files" tree. Go to the "Build" page and change the WX_PREFIX setting to the value you used. (This is just a tag identifying this file to Arch) arch-tag: 4388ba16-7889-4874-a000-d8699498ef16