Plugin not working in DAW but working in Standalone and AudioPluginHost

Hello everyone,

I’m quite new to JUCE framework, also english is not my native language so excuse my phrasing. I’ve seen similar questions on this forum but not concerning my exact problem so I decided to post.

I’m using an external library (libmysofa, written in C) in my plugin (a binaural renderer). Everything works perfectly in Standalone version AND also when I use AudioPluginHost to test it in Visual Studio.

The thing is, when I use a DAW to scan it, either it won’t detect it or it won’t launch it (the following effect plug-in could not be loaded…). I tried on Reaper and Ableton Live 11. I tried to see the issues using pluginval but all the same the plugin cannot be scaned.

I use the external library via dynamic linking (.dll) with vcpkg.

I think DAW’s are using more sofisticated testing than AudioPluginHost for scaning a plugin but I can’t figure out what the problem is.

My question is :

  • Do you know what basically makes a plugin working in AudioPluginHost not work in a DAW ?

If it is possible to build your external library as a static library, and link it into your plugin, that will be better for compatibility, and for installing on a user’s computer.

My problem is now solved. I think the issue was that the DAW could not access my dynamic libraries at runtime because they are written in C.
What I did was use a wrapper that accesses the library via juce::DynamicLibrary. I then placed the .dll files in C:/Windows/System32 (I saw a developer on this forum doing it that way, and it seemed to be a common approach).
I haven’t had time to try static linking yet.