PDA

View Full Version : Trying to compile a 64Bit VST-plugin on OSX


Soundbytes
03-23-2010, 07:18 AM
Hi,
Has anybody suceeded in compiling a 64Bit VST plugin on MAC OS X?
I am getting this error message:
Cast from 'void*' to 'int' looses precision.

The error is caused by the main function in IPlug_include_in_plug_src.h

EXPORT int main(audioMasterCallback hostCallback)
{
return (int) VSTPluginMain(hostCallback);
}

It is obvious that a 64Bit pointer is longer than an (32Bit) int and that's why the compilation fails (and why the 32Bit version compiles fine). Is there any solution or workaround to this problem?
Or should I care at all? Are there any VST hosts that can host 64Bit VST2.4 Plugins?
Thanks for any comments!

Andreas

cc_
03-24-2010, 03:51 AM
I haven't really looked at this for OSX, but for Windows the hosts I have tried (Cubase, Sonar) support 32 bit plugins fine. So, I don't see the point of releaseing a 64 bit version unless your plugin actually needs it (multi-GB samples in memory).

olilarkin
04-09-2011, 04:28 PM
old post, but the solution is

return (VstIntPtr) VSTPluginMain(hostCallback);