[Mac] Building Audacity on Mac OS X 10.5.8

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:

  1. cd into the base dir
  2. mkdir osx-build
  3. 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)

I’m not able to help with the compile errors as I’m unfamiliar with building on Macs, but I would recommend that you give up with Audacity 1.2.6 and concentrate on building from the current 1.3 source code. The 1.2.6 version will often not run at all on modern Macs, and if it does then it’s likely to be highly unstable.

The current source code is available through SVN http://code.google.com/p/audacity/source/checkout

Some of the documentation for compiling is rather out of date, but I think this is pretty recent: http://wiki.audacityteam.org/wiki/Building_Universal_Binaries_On_Mac
This is the main page for developers information: http://wiki.audacityteam.org/index.php?title=Category:For_Developers
There is also a developers mailing list: http://audacityteam.org/contact/lists

Also have a look at this thread: https://forum.audacityteam.org/t/building-on-osx-10-6-snow-leopard/17737/1