Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
Name clash when multiple plug-ins use auwrapper
HAMoon1
KVRer
- profile
- pm
- e-mail
PostPosted: Wed May 09, 2012 8:06 am reply with quote
When I create two or more plug-ins using the auwrapper, I get warnings like this when running auval -a:

objc[47636]: Class SMTGCocoa_NSViewWrapperForAU is implemented in both /Library/Audio/Plug-Ins/Components/MyPlugin2_AU.component/Co ntents/MacOS/MyPlugin2_AU and /Library/Audio/Plug-Ins/Components/MyPlugin1_AU.component/Co ntents/MacOS/MyPlugin1_AU. One of the two will be used. Which one is undefined.
objc[47636]: Class SMTGCocoa_AUViewFactory_Version_1 is implemented in both /Library/Audio/Plug-Ins/Components/MyPlugin2_AU.component/Co ntents/MacOS/MyPlugin2_AU and /Library/Audio/Plug-Ins/Components/MyPlugin1_AU.component/Co ntents/MacOS/MyPlugin1_AU. One of the two will be used. Which one is undefined.

I'm not all that familiar with how Cocoa works in this regard, but shouldn't the plug-in project be doing something during the compile to make sure those names are unique? When used in this manner, they're part of auwrapper.a, a library that is used by multiple plug-in projects, and so the names exist in multiple plug-ins. How can I resolve this name clash?

Thanks,
Howard
^ Joined: 15 Dec 2005  Member: #91199  Location: Sacramento, CA
HAMoon1
KVRer
- profile
- pm
- e-mail
PostPosted: Thu May 10, 2012 10:23 am reply with quote
I found one way to resolve this... I copied the entire auwrapper project into my own project folder for each project, and made a different library for each, with different names for those two Objective-C classes. So now each of my plug-ins has distinct names.

There's most likely a better (certainly less hack-y) way to do this, but this was fast and easy and works.
^ Joined: 15 Dec 2005  Member: #91199  Location: Sacramento, CA
All times are GMT - 8 Hours

Printable version
Page 1 of 1
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012