Copy AU/VST/RTAS script

Discuss issues relating to audio plugins

Copy AU/VST/RTAS script

Postby zamrate » Mon Jan 10, 2011 5:24 pm

On the Mac, there's this script that copies AU/VST/RTAS in their specific dirs. For me the copyVST flag is never set, because no symbol found that contains 'VSTPlugin', this is in the line:

Code: Select all
copyVST=1 #`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'VSTPlugin' | wc -l`


For AU it works. And if I copy the .component into the VST dir and rename it, it also works. I assume that this test is wrong or not foolproof.
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Re: Copy AU/VST/RTAS script

Postby jules » Mon Jan 10, 2011 6:27 pm

Can't see anything wrong with that, and I've been using the same script for years... Have you tried running a

Code: Select all
nm -g whatever_your_exe_is_called | grep -i 'VSTPlugin'


to see what happens?
User avatar
jules
Fearless Leader
 
Posts: 17218
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Copy AU/VST/RTAS script

Postby zamrate » Mon Jan 10, 2011 6:45 pm

Yes, nothing happens. But with 'AudioUnit' there are 3 entries.
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Re: Copy AU/VST/RTAS script

Postby zamrate » Mon Jan 10, 2011 6:53 pm

Hmm, weird. In the JUCE demo plugin "VSTPluginMain" actually shows up. In mine, it does not. But the plugin still works! That's mysterious.
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Re: Copy AU/VST/RTAS script

Postby zamrate » Mon Jan 10, 2011 7:03 pm

Another thing is that I can find it in my plugin using a Hex Editor, but only 2 times, although it should be 3 times (ppc, intel32, intel64).
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Re: Copy AU/VST/RTAS script

Postby jules » Mon Jan 10, 2011 7:23 pm

Silly question, but are you sure you enabled the JucePlugin_Build_VST flag?
User avatar
jules
Fearless Leader
 
Posts: 17218
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Copy AU/VST/RTAS script

Postby jules » Mon Jan 10, 2011 7:26 pm

ah.. maybe the 'nm' command is looking at the wrong section of your binary, e.g. if you've built the 64-bit as only an AU, but the 32-bit as VST/AU, then if 'nm' only looks at the 64-bit symbols, it'd fail..
User avatar
jules
Fearless Leader
 
Posts: 17218
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Copy AU/VST/RTAS script

Postby zamrate » Mon Jan 10, 2011 8:18 pm

Yes, the JucePlugin_Build_VST flag is set.
But what's weird is, I just did an extra check. I compiled again as 32/64Bit Universal binary (AU+VST in one).
AU works for all platforms (PPC/Intel32+64), but VST only works for Intel. Could there be something wrong with a condition in the VST wrapper? I'll check now...
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Re: Copy AU/VST/RTAS script

Postby zamrate » Mon Jan 10, 2011 8:46 pm

Hmm, try building as 64 Bit Intel only. After that, nm -g JuceDemoPlugin.component/Contents/MacOS/JuceDemoPlugin | grep -i 'VSTPlugin' doesn't produce anything. But when using 32 Bit Universal as architecture setting, then you'll get 2 values!
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Re: Copy AU/VST/RTAS script

Postby jules » Tue Jan 11, 2011 10:22 am

hmm.. Anyone know if there's a command-line option for 'nm' that tells it to open a 64-bit binary?
User avatar
jules
Fearless Leader
 
Posts: 17218
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Copy AU/VST/RTAS script

Postby Franky47 » Thu May 12, 2011 1:32 pm

Yes, it seems there is:

Code: Select all
nm -arch yourarchname
or
nm -arch all


I had the same problem, I thought the symbols were stripped during the link step, but it seems they were just hidden in an other section of the binary.


I'm building a universal 32/64 bits (i386 and x86_64 archs) plugin in VST/AU/RTAS, here is what I have:
  • AudioUnit: symbols are present in both archs.
  • VST: _VSTPluginMain symbol is only present in i386 section.
  • RTAS: _CProcess* symbols are only present in i386 section.

Maybe some of the symbols are shared between 32 and 64bit?
This statement is false.
User avatar
Franky47
JUCE Geek
 
Posts: 44
Joined: Tue Mar 29, 2011 5:15 pm
Location: France

Re: Copy AU/VST/RTAS script

Postby Salvator » Wed Apr 11, 2012 1:00 am

Hello Jules,

Here the RTAS doesn't get copied when in universal 32-64 bits.
Is there any solution that could be implemented inside the introjucer's script ?

Thanks !

Salvator
Salvator
JUCE UberWeenie
 
Posts: 179
Joined: Mon May 18, 2009 9:01 pm

Re: Copy AU/VST/RTAS script

Postby jules » Wed Apr 11, 2012 8:49 am

Salvator wrote:Hello Jules,

Here the RTAS doesn't get copied when in universal 32-64 bits.
Is there any solution that could be implemented inside the introjucer's script ?

Thanks !

Salvator


I don't understand.. why would the binary format make a difference to the process of copying the file?
User avatar
jules
Fearless Leader
 
Posts: 17218
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Copy AU/VST/RTAS script

Postby Salvator » Sat May 26, 2012 9:49 am

I don't understand either. it seems to be picky and not consistent on my machine...

But at least, more recently, it's definitively broken since the tip of 19 May GIT :
Removed some unnecessary files from linux plugin builds.

From then, even the juce plugin demo don't get copied as RTAS. And I'm not on Linux either :roll:
With the tip before that, it works.

Salvator
Salvator
JUCE UberWeenie
 
Posts: 179
Joined: Mon May 18, 2009 9:01 pm

Re: Copy AU/VST/RTAS script

Postby jules » Sat May 26, 2012 11:03 am

Ok, try it now..
User avatar
jules
Fearless Leader
 
Posts: 17218
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Next

Return to Audio Plugins

Who is online

Users browsing this forum: No registered users and 1 guest