PDA

View Full Version : audiounits- auval objective c errors


olilarkin
12-14-2010, 09:18 AM
i really want to fix this once and for all. I have put two iplug plugins in my audiounit folder. They were both built with my modified iplug.

In "IGraphicsCocoa.h" i changed the tag to:

#define IGRAPHICS_COCOA IGraphicsCocoa_vOLIB

now when i run auval i get these errors, although the plugins still work fine:

objc[1060]: Class SWELL_APP_PREFIX_sdh is implemented in both /Library/Audio/Plug-Ins/Components/IPlugEffect.component/Contents/MacOS/IPlugEffect and /Library/Audio/Plug-Ins/Components/EndlessSeries.component/Contents/MacOS/EndlessSeries. One of the two will be used. Which one is undefined.
objc[1060]: Class IGraphicsCocoa_vOLIB is implemented in both /Library/Audio/Plug-Ins/Components/IPlugEffect.component/Contents/MacOS/IPlugEffect and /Library/Audio/Plug-Ins/Components/EndlessSeries.component/Contents/MacOS/EndlessSeries. One of the two will be used. Which one is undefined.

i could fix it by not building a static iplug.a library, but that would increase compile time by a lot.

Anyone got any other ideas?

thanks,

oli

Tale
12-14-2010, 01:49 PM
I have modded my OSX build of IPlug, so that it automatically runs a script that sets the IGRAPHICS_COCOA macro to a unique value each time I (re)build IPlug library. The downside is that two plug-ins with exactly the same code will get different class names, which probably is less memory efficient.

I haven't properly tested if this really prevents these warnings, but in theory it should work, I think.

olilarkin
12-17-2010, 05:40 AM
OK, i set this up so i'm no longer building a static iplug library, and hence i can change the IGRAPHICS_COCOA definition per plugin. The rebuild time is not actually much worse.

For the swell one i am going to try and update to the latest iplug first and then see if it's still a problem. the swell stuff im using appears to be out of date

olilarkin
12-18-2010, 06:07 AM
>For the swell one i am going to try and update to the latest iplug first and then see if it's still a problem. the swell stuff im using appears to be out of date

I found the same problem once i had updated and fixed it by defining SWELL_APP_PREFIX in the xcode project per plugin. This is only necessary for me because i'm using SWELL for my popup menu control.

now auval doesn't give me errors - yey!