Hello,
I’ve been trying to build Audacity for a week on 10.6 and 10.5 mac systems without any chance…
The closer results were with Mac OS X 10.5, Audacity 1.2.6 and wxWidgets 2.8.11 but I’m stuck with the last XCode step: I hope you can point me some idea!
Here are the steps I followed:
Audacity Install Steps - April, 2011
Reference web page:
http://wiki.audacityteam.org/wiki/Developing_On_Mac
Mac OS X version 10.5.8
XCode 3.1.3
sh-3.2# gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)
Trying to compile audacity-src-1.2.6 against wxWidgets 2.8.11.
-
download MacPort from http://www.macports.org
-
install MacPort from the downloaded dmg
-
create a ~/.profile file to add /opt/local/bin in $PATH with the following line :
export PATH=$PATH:/opt/local/bin -
restart bash to check that the installed port command is in the path (or else check ~/.bashrc or ~/.bash_profile)
-
port info pkgconfig
-
sudo port install pkgconfig
-
download audacity-src-1.2.6.tar from http://audacityteam.org/download/source
-
uncompress it
-
make a ‘wx’ sub-directory inside
-
download wxWidgets 2.8.11 (wxMac-2.8.11.zip) from http://sourceforge.net/projects/wxwindows/files/2.8.11/
-
prepare installation of wxWidgets following only the first three instructions of install-mac.txt:
- cd into the base dir
- mkdir osx-build
- cd osx-build
[4) …/configure]
[5) make]
-
substitute the configure step with the right prefix path (example at http://wiki.audacityteam.org/wiki/Developing_On_Mac):
…/configure --disable-shared --enable-universal_binary --prefix=/Users/barkati/Dev/Audacity/audacity-src-1.2.6/wx/ --enable-static --enable-unicode --disable-dependency-tracking --disable-monolithic --enable-debug -
make
-
make install
-
create a file named Debug_Static.xcconfig in the same directory that the xcode project, with the following (adapted) line:
WXPREFIX = /Users/barkati/Dev/Audacity/audacity-src-1.2.6/wx/ -
open the audacity.xcodeproj file (automatic upgrade from the old XCode2 audacity.xcode file, XCode asking for the project root, test with the directory containing the audacity.xcode file – that is ‘audacity-src-1.2.6/mac’)
-
build audacity.xcodeproj (build failed: 540 errors)
- test with SDK 10.4 instead of empty field (in “Get Info”)
- test with Project Format XCode 3.0-compatible instead of 2.4 (in “Get Info”)
- test with xcodebuild -target Audacity -configuration “Release Static” WX_PREFIX=/Users/barkati/Dev/Audacity/audacity-src-1.2.6/wx
- test with ./configure in audacity-src-1.2.6 (configure messages: error: Unable to locate a suitable configuration of wxWidgets v2.4.x. […] wxWidgets 2.5.x and 2.6.x are NOT supported!)
- mkdir ~/.MacOSX
- save in ~/.MacOSX a environmant.plist file with a PATH string variable set to $PATH:/opt/local/bin
- build audacity.xcodeproj (build failed: 540 errors)