[Mac] Building Audacity on Mac OS X 10.5.8

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
kbarkati
Posts: 1
Joined: Fri Apr 08, 2011 2:54 pm
Operating System: Please select

[Mac] Building Audacity on Mac OS X 10.5.8

Post by kbarkati » Fri Apr 08, 2011 3:02 pm

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)

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: [Mac] Building Audacity on Mac OS X 10.5.8

Post by steve » Fri Apr 08, 2011 3:50 pm

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/Build ... ies_On_Mac
This is the main page for developers information: http://wiki.audacityteam.org/index.php? ... Developers
There is also a developers mailing list: http://audacityteam.org/contact/lists
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

bgravato
Posts: 2098
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Linux Debian

Re: [Mac] Building Audacity on Mac OS X 10.5.8

Post by bgravato » Sun Apr 10, 2011 3:02 am

Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

Post Reply