# Polymorphic Plugins?

**URL:** <https://forum.juce.com/t/polymorphic-plugins/3948>\
**Category:** Audio Plugins\
**Created:** [May 22, 2009, 5:16am UTC](https://forum.juce.com/t/polymorphic-plugins/3948 "2009-05-22T05:16:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![in23d](https://avatars.discourse-cdn.com/v4/letter/i/46a35a/32.png) [@in23d](https://forum.juce.com/u/in23d)\
**Post date:** [May 22, 2009, 5:16am UTC](https://forum.juce.com/t/polymorphic-plugins/3948/1 "2009-05-22T05:16:15Z")

</div>

I am just a little confused with this, do I need to compile the same plug-in on both platforms i.e. PC and OS X? or can I just rename the PC compiled plug-in to .component or .vst and transfer it to the Mac and use it as an AU or Mac VST plugin?

At this stage I have the JuceDemo plugin working fine on the PC however when I re-name the suffix to .component in Mac OS it is not recognized as an AU plug-in.

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [May 22, 2009, 6:59am UTC](https://forum.juce.com/t/polymorphic-plugins/3948/2 "2009-05-22T06:59:48Z")

</div>

No, it means you can build a single plug-in on PC and a single one on Mac, each of them implmenenting multiple plug-in formats

The PC one can then be renamed to .dll for being seen as a VST and to .dpm for a RTAS.

The Mac one can get .component, .vst or .dpm extension in order to be seen as a AU, VST or RTAS plug-in respectively.

---

<div class="post-metadata">

**Author:** ![in23d](https://avatars.discourse-cdn.com/v4/letter/i/46a35a/32.png) [@in23d](https://forum.juce.com/u/in23d)\
**Post date:** [May 22, 2009, 8:11am UTC](https://forum.juce.com/t/polymorphic-plugins/3948/3 "2009-05-22T08:11:31Z")

</div>

Ok thanks! Appreciate it.

---

<div class="post-metadata">

**Author:** ![ShareCommunity](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sharecommunity/32/1748_2.png) [@ShareCommunity](https://forum.juce.com/u/ShareCommunity)\
**Post date:** [July 1, 2009, 12:17am UTC](https://forum.juce.com/t/polymorphic-plugins/3948/4 "2009-07-01T00:17:53Z")

</div>

I’m still a bit confused… On OSX - can I just rename the target from a .component to a .vst?

---

<div class="post-metadata">

**Author:** ![Salvator](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Salvator](https://forum.juce.com/u/Salvator)\
**Post date:** [July 1, 2009, 6:35am UTC](https://forum.juce.com/t/polymorphic-plugins/3948/5 "2009-07-01T06:35:59Z")

</div>

Yes, that’s how I understand it, just try it !

Make sure to have specified #define JucePlugin\_Build\_VST 1 in JucePluginCharacteristics.h , and have the steinberg SDK in your search path.

Salvator

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [July 1, 2009, 6:46am UTC](https://forum.juce.com/t/polymorphic-plugins/3948/6 "2009-07-01T06:46:27Z")

</div>

Yes that’s the way it works (and I already had chance to try it, so if it’s not working at your place for some reason, you should be missing something)

The formats supported by the resulting binary will depend on the #defines you will specify in JucePluginCharacteristics.h

If you are interested in AU and VST, you should specify these:

#define JucePlugin\_Build\_VST 1  
#define JucePlugin\_Build\_AU 1

---

<div class="post-metadata">

**Author:** ![ShareCommunity](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sharecommunity/32/1748_2.png) [@ShareCommunity](https://forum.juce.com/u/ShareCommunity)\
**Post date:** [July 1, 2009, 1:31pm UTC](https://forum.juce.com/t/polymorphic-plugins/3948/7 "2009-07-01T13:31:05Z")

</div>

[quote=“Salvator”]Yes, that’s how I understand it, just try it !  
…  
Salvator[/quote]

Yes, I just didn’t get a chance last night (first time I tried to build with new Xcode/latest Polymorphiic Juce etc) - I’ll give it a go 🙂

I even got as far as Building and manually renaming files, but was scared-off when OSX queried my renaming a .component to .vst  
I was convinced I was doing something illegal that would cause OSX to throw the toys from its pram
