I recently upgraded to OSX 10.7 and had to take some steps to get my plugins to compile. Anyway, thought it would be fun to share since I have seen a few posts with issues around this topic.
download latest git, open plugin demo project
note the AU wrapper files drop out if you have OSX 10.7 (/Applications/Xcode.app/Contents/Developer/Extras/CoreAudio/AudioUnits does not exist)
so … replace those files with the new AudioUnit libs for 10.7 downloaded from Apple.
note that the new AudioUnit wrapper files will NOT compile with OSX 10.6 base SDK, so switch to 10.7 (or you will get a bunch of errors when compiling ComponentBase.h if the base SDK is set to 10.6).
One final linker error _vDSP_vsma referenced from … indicates we must include the accelerate framework. You’ll have to dig that up, and/or download it from the Apple website.
Voila! SUCCESS … now a few changes, notes, etc …
Since I don’t want to continue supporting carbon (it goes away with Mac OSX 10.8 this summer by the way), I now set the #define BUILD_AU_CARBON_UI flag to 0 in AppConfig.h.
I can now remove a bunch of the AudioUnit files that have to do with Carbon as well.
- note that the .r files in the wrapper are needed for Carbon support … those are resource files from a bygone era - only relevant for carbon resources. Sometimes you get this screwy “resource fork not written” error regarding these files, but if you remove them from the codebase, clean, recompile, then readd them … it will generally work. Never understood that myself, but it happens.
So far, so good …
Now, I also want to make this 64 bit … so I change the Architecture and recompile. Now I have a small problem though, since the plugin doesn’t show up in any of my (32 bit) AudioUnit hosts (including the latest ableton and Apple’s own AULab).
Luckily I have a copy of Reaper which can be run in 64 bit mode, and then see’s the plugin as expected.
I also compiled the Juce plugin host in 64 bit mode, but oddly it doesn’t seem to see 64 bit plugins (would you expect it to host 64 bit plugs … not sure).
Anyway, that’s my adventures for the last few days, just thought I’d share.