Compiling mac Audacity 2.0.4+ (current HEAD)

I have already compiled Audacity HEAD (after 2.0.4 plus my own mods) with success under Windows XP and I thought I’d set up my OSX partition too.
I’m not successful yet…

I’ve come a good way - but you’re probably not interested in knowing what I have made work, and if so please skip to next paragraph.
But for those interested I’ve overcome:

  • A stale OSX 10.5 partition.
  • Missing libtool and cmake.
  • A macports library that had somehow ended up in a stalemate - a “port update outdated” reported of unsolvable incompatibilities.
  • A compile bash script with CR+LF line endings.

But I can’t compile portaudio.
It prints an error from line 15795 of the portaudio-19/compile script as it gives up on searching for SDK version - and this I don’t understand because I have both /Developer/SDKs/MacOSX10.5.sdk and /Developer/SDKs/MacOSX10.4u.sdk.
Any ideas?

My system:

  • OSX: 10.5 Leopard
  • XCode 3.1
  • Intel Core2 Duo 2.2 GHz
  • 2 GB RAM
  • 10 GB free space on HDD

// Lasse

Hi Lasse,

Although I compile Audacity on Mac I am not an expert, and I suspect most others here also.

The 10.5 SDK could be the problem. Is this an Apple Mac machine?

Are you following http://wiki.audacityteam.org/wiki/Building_On_Mac ?


Gale

Thanks Gale!


That might be the problem as I have not been following that guide… I will give it a go immediately :slight_smile:
I believe there are some pages in the non-wiki part of the site that should be updated to point to that particular wiki page, if that is the officially maintained guide.

I got to this page instead:

I’ve also had a look at the compile.txt file in the mac/ folder of the sources, but even though it claims to be updated for 2.0.4. I don’t suppose it really is.
And - btw - that text file also points you back here:

Hi Lasse,

You’re right that Leland’s “Building on Mac” is only obliquely linked to - though there is a prominent yellow div on http://wiki.audacityteam.org/wiki/Developing_On_Mac that points to Leland’s page. The obliqueness is because no-one was sure how well Leland’s instructions would work on Tiger, and then I had some problems using Leland’s instructions to build with accessibility enabled (I’ve not tried that again).

Ideally Leland’s page should really just replace http://wiki.audacityteam.org/wiki/Developing_On_Mac but what about the case of an existing developer who already has Xcode 5 or a more modern OS X SDK?


Gale