To compile Audio Units with the OWLSim:
1). Download the Core Audio Utility Classes from:
http://developer.apple.com/library/ios/#samplecode/CoreAudioUtilityClasses/
Introduction/Intro.html
2). Move the CoreAudio folder to:
/Library/Developer/CoreAudio
3). Create a symlink to:
/Applications/Xcode.app/Contents/Developer/Extras/
Be sure to use the Juce forums if you get stuck - there’s a lot of info. there
about getting AU’s to compile:
http://www.rawmaterialsoftware.com/
http://rawmaterialsoftware.com/viewtopic.php?f=8&t=9546&p=56679#p56677
4). Make an new group folder in your XCode project called something like AU
wrapper folder, and put this in your Juce Library Code group. Add the necessary
CA files (you don’t need all of these to compile AU’s successfully - look at the juce
demo plugin project).
(It’s also a good idea to add these files in the Introjucer project in case the
project has to be rebuilt for any reason).
5). Make sure you are building against these frameworks (these can also be added
in the Introjucer under Extra Frameworks):
AudioToolbox, AudioUnit, CoreAudio, CoreAudioKit
6). Set Header Search Paths in XCode:
~/SDKs/vstsdk2.4
…/…/JuceLibraryCode
$(DEVELOPER_DIR)/Extras/CoreAudio/PublicUtility
$(DEVELOPER_DIR)/Extras/CoreAudio/AudioUnits/AUPublic/Utility
$(DEVELOPER_DIR)/Extras/CoreAudio/AudioUnits/AUPublic/AUBase $(inherited)
7). Set Other Rez Flags in XCode:
-d
ppc_$ppc
-d
i386_$i386
-d
ppc64_$ppc64
-d
x86_64_$x86_64
-l
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers
-l
“$(DEVELOPER_DIR)/Extras/CoreAudio/AudioUnits/AUPublic/AUBase”
Rez errors that you might encounter:
Rez exit code 2 : in Build phases only have the juce AUResources.r file - delete
the other one!
Rez exit code 3 : Make sure that the Other Rez flags are set correctly.