I tried this myself, and found issues when building audio-processors with VST host option on.
Easy to fix though, here's a patch:
- Code: Select all
diff --git a/libs/juce-2.0/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/libs/juce-2.0/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp
index 56846d0..b963713 100644
--- a/libs/juce-2.0/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp
+++ b/libs/juce-2.0/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp
@@ -46,6 +46,8 @@
#if JUCE_MSVC
#pragma warning (push)
#pragma warning (disable: 4996)
+#else
+ #define __cdecl
#endif
/* Obviously you're going to need the Steinberg vstsdk2.4 folder in
@@ -69,6 +71,10 @@
static void _clearfp() {}
#endif
+#if JUCE_LINUX
+ #undef KeyPress
+#endif
+
//==============================================================================
const int fxbVersionNum = 1;
EDIT: I got it to compile, but the application hangs at:
- Code: Select all
void PluginListComponent::scanFor (AudioPluginFormat* format)
{
...
if (aw.runModalLoop() == 0)
which in turns leads me into:
- Code: Select all
int Component::runModalLoop()
{
...
return ModalComponentManager::getInstance()->runEventLoopForCurrentComponent();
(hangs at 'runEventLoopForCurrentComponent()')
Not sure why, but I'm investigating...