Errors building AU plugins with Max+Gen –
I’m pretty new to max+gen, and Audio Unit plugins in general. I’m trying to build an AU plugin via XCode and I’m running into a few issues:
my setup -> Mac OS 10.8.5; XCode 5.0.2; Max 6.1.2
my process ->
I’m following along with the gen AU instructions here: http://cycling74.com/wiki/index.php?title=Gen_Code_Export_AU
When I get to "step 7" (build the project), the compiler throws a bunch of unknown type errors:
Unknown type name 't_sample' Unknown type name "Common State'
Is there something I’m missing in terms of a flag or type definition? Also (this might be a total newbie question here), what exactly happens when I change the flags in "Step 5" – Change the COMP_MANUF and COMP_SUBTYPE settings in the <MyPlugin Name>.r resource file and the <My Plugin Name>-Info.plist file
Thanks for any help in advance!
Just wanted to bump this up. Anyone run into this error before?
I haven’t encountered this yet, but I would really like to see a more worked out example. AU development has become a lot more difficult as Apple has fallen down on maintaining it.
yes apple’s audiounit examples are a mess and that c74 tutorial has some out of date info i think. Apple are changing compiler versions all the time so what works with one version of xcode may fail with another.
the errors suggest that the compiler is not finding the stuff in the gen_dsp folder, where these types are defined in genlib_common.h
changing COMP_MANUF and COMP_SUBTYPE determine how the audiounit identifies itself with the component manager https://developer.apple.com/library/mac/documentation/MusicAudio/Conceptual/AudioUnitProgrammingGuide/AudioUnitDevelopmentFundamentals/AudioUnitDevelopmentFundamentals.html#//apple_ref/doc/uid/TP40003278-CH7-SW1
You might find it easier to use my gen~ -> iplug project
It should work on xcode3.26 and xcode5.x if you follow the instructions carefully