Compiling XCode 4.5 Mountain Lion

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
Patrikt
Posts: 4
Joined: Sun Sep 09, 2012 6:04 pm
Operating System: Please select

Compiling XCode 4.5 Mountain Lion

Post by Patrikt » Tue Sep 25, 2012 4:07 pm

Moved from the Mac 2.x Help board

Hi folks,

I'm banging with my head few days trying to get run the newest Audacity with wxWidgets 2.8.12 on my Mac.

What I have done :

Compiled and installed wxWidgets :

Code: Select all

../configure --disable-shared --disable-universal_binary --prefix=/Users/Patrik/Develop/RCAudio/audacity/wx --enable-static --enable-unicode --disable-depency-tracking --enable-monolithic --enable-debug --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.5.sdk --with-macosx-version-min=10.5 CFLAGS="-arch i386" CXXFLAGS="-arch i386" CPPFLAGS="-arch i386" LDFLAGS="-arch i386" OBJCFLAGS="-arch i386" OBJCXXFLAGS="-arch i386"

sudo make install
Compiled the Audacity :

Code: Select all

./configure --enable-static --with-portmixer="local" --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6
But then when I want to make :

I get errors :

Code: Select all

/wx/mac/carbon/private.h:1459: error: ‘Cursor’ does not name a type
/wx/include/wx-2.8/wx/mac/carbon/private.h:1488: error: ‘ClassicCursor’ does not name a type
mac/FileDialogPrivate.cpp:58: error: ‘NavDialogRef’ does not name a type
mac/FileDialogPrivate.cpp:78: error: variable or field ‘NavEventProc’ declared void
mac/FileDialogPrivate.cpp:78: error: ‘NavEventCallbackMessage’ was not declared in this scope
mac/FileDialogPrivate.cpp:79: error: ‘NavCBRecPtr’ was not declared in this scope
mac/FileDialogPrivate.cpp:80: error: ‘NavCallBackUserData’ was not declared in this scope
mac/FileDialogPrivate.cpp:82: error: ‘NavEventUPP’ does not name a type
mac/FileDialogPrivate.cpp:84: error: variable or field ‘HandleAdjustRect’ declared void
mac/FileDialogPrivate.cpp:84: error: ‘NavCBRecPtr’ was not declared in this scope
mac/FileDialogPrivate.cpp:84: error: expected primary-expression before ‘*’ token
mac/FileDialogPrivate.cpp:84: error: ‘data’ was not declared in this scope
make[2]: *** [mac/FileDialogPrivate.o] Error 1
make[1]: *** [FileDialog-recursive] Error 2
make: *** [audacity] Error 2

Compiling from Xcode works neither : I get error :

from Configure :

Code: Select all

audacity/mac/DerivedData/Audacity/Build/Intermediates/Audacity.build/Debug Static/Configure.build/Script-17072E8C0988BD85008541CC.sh: line 44: sh: command not found
Command /bin/sh failed with exit code 1
Can anyone help???? THX!

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Compiling XCode 4.5 Mountain Lion

Post by Gale Andrews » Wed Sep 26, 2012 1:43 am

Building Audacity on "Mountain Lion" is not officially supported yet. A Mac developer who sometimes works on Audacity got it to work with hackage but has not documented his steps. No-one else has made it work yet.

You may get some ideas from http://wiki.audacityteam.org/wiki/Developing_On_Mac , not least don't think about compiling from the configure script, use Xcode. It's also the case I think that unless you symlink Xcode 4 to a parallel installation of Xcode 3, you will build an "Intel only", "10.6 and later only" version of Audacity which we couldn't release because we still support 10.4 and PPC. The Audacity universal binary releases are still built with Xcode3 on 10.4, or symlinked Xcode 3/4 on OS X 10.6 ( http://wiki.audacityteam.org/wiki/Release_Process/Mac ).

I'm interested in compiling Audacity on Mountain Lion myself but I am not a programmer, so I can compile Audacity on Windows and Linux because there are known steps, but not on Mountain Lion. It would be good if you could help with documenting whatever progress you make.

If you want the 10.4 SDK, does that not come with Xcode 3?



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply