# Can't open plugins in AudioPluginHost

**URL:** <https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555>\
**Category:** General JUCE discussion\
**Created:** [May 19, 2020, 6:09pm UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555 "2020-05-19T18:09:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlmoriart](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jlmoriart/32/8268_2.png) [@jlmoriart](https://forum.juce.com/u/jlmoriart)\
**Post date:** [May 19, 2020, 6:09pm UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/1 "2020-05-19T18:09:25Z")

</div>

Hi all. Trying to get debugging set up. I’ve compiled and run the AudioPluginHost, and compiled a default test plugin, but when scanning for new plugins, I get the message “Note that the following files appeared to be plugin files, but failed to load correctly: plugin\_name.so”

The plugin loads into Reaper just fine. I’m on Ubuntu 18.04, using v5.4.7 of the Projucer.

I’m not 100% sure, but it looks like this person solved the problem by just downloading a different version of JUCE?

> [@Linux/Ubuntu plugins compile but will not open in Audacity or AudioPluginHost](https://forum.juce.com/t/linux-ubuntu-plugins-compile-but-will-not-open-in-audacity-or-audiopluginhost/33078):
>
> I’m trying to build plug-ins in Linux. At first I thought it was the code changes I made to, but then I tried another plug-in that runs on my Mac in Logic, Ableton, and the AudioPluginHost, and this one also fails to get recognized in Linux by both Audacity and the AudioPluginHost. I also tried the simple GainPlugin demo provided and this also fails to load. The AudioPluginHost gives the message: “Note that the following files appeared to be plugin files, but failed to load correctly:” and then…

Would that be worth trying?

This person had a similar issue on OSX:

> [@Failing to compile proper VST files (OSX)](https://forum.juce.com/t/failing-to-compile-proper-vst-files-osx/17416):
>
> Boring stuff first: OSX 10.10 XCode 7.2.1 Juce 4.2.1 ( I believe, how would I double check?) I’ve followed the [basic tutorial](https://www.juce.com/doc/tutorial_create_projucer_basic_plugin). It compiles fine, however when I try to load the plugin in to the Plugin Host, it gives me this error message: Note that the following files appeared to be plugin files, but failed to load correctly: FirstPlugin.vst I tried compiling the GainPlugIn example project and it works fine. Any ideas?

And they fixed it by changing the “OSX Deployment Target”, but I don’t see a corresponding setting for linux builds.

I can’t find the thread where I read this, but someone suggested it could be a 32/64 bit issue, and that compiling the plugins or the AudioPluginHost for a different architecture could solve the issue, but I can compile neither the plugin nor host in 32 bit. Changing the architecture to 32-bit in the projucer, saving the project, and reloading the project into CodeBlocks, and then clicking compile either results in “fatal error: bits/c++config.h: No such file or directory” for the plugin, or for the host, the following errors:

||=== Build: App | Debug in AudioPluginHost (compiler: GNU GCC Compiler) ===|  
ld||cannot find Scrt1.o: No such file or directory|  
ld||cannot find crti.o: No such file or directory|  
ld||cannot find -lasound|  
ld||cannot find -lX11|  
ld||cannot find -lXinerama|  
ld||cannot find -lXext|  
ld||cannot find -lfreetype|  
ld||cannot find -lcurl|  
ld||cannot find -lrt|  
ld||cannot find -ldl|  
ld||cannot find -lpthread|  
ld||cannot find -lGL|  
ld||cannot find -lstdc++|  
ld||cannot find -lm|  
ld||cannot find -lgcc|  
||error: ld returned 1 exit status|  
||=== Build failed: 16 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Any idea what I should try to get these plugins to load? Thanks very much for any help!

---

<div class="post-metadata">

**Author:** ![tobante](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tobante/32/9644_2.png) [@tobante](https://forum.juce.com/u/tobante)\
**Post date:** [May 20, 2020, 9:34am UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/2 "2020-05-20T09:34:16Z")

</div>

You can try the `juce6` preview branch. I think that’s the only one with Linux VST support currently.

I’m using the AudioPluginHost on Ubuntu 20.04 (PopOS), but build with CMake.

---

<div class="post-metadata">

**Author:** ![jlmoriart](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jlmoriart/32/8268_2.png) [@jlmoriart](https://forum.juce.com/u/jlmoriart)\
**Post date:** [May 27, 2020, 12:40pm UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/3 "2020-05-27T12:40:34Z")

</div>

Thanks very much for the response!

> I think that’s the only one with Linux VST support currently.

The first thread I linked seems to have been resolved with OP on Linux and being able to build plugins that do load into the AudioPluginHost. Do you know if something changed since then that make it so that JUCE6 is the only way to go now? (I do have the VST2\_SDK, if that makes a difference.)

I cloned the JUCE6 branch, but I’m afraid the readme file is mostly gibberish to me =/

It says:

> To build the examples and extras bundled with JUCE, simply clone JUCE and then run:

> ```

But “```” just brings up a caret-thing (“\>”) next to which I can type.

It also says:

> Configure build with all examples and extras enabled

> cmake -B cmake-build -DJUCE\_BUILD\_EXAMPLES=ON -DJUCE\_BUILD\_EXTRAS=ON

But when running that command I get

> CMake Error: The source directory “/home/john/JUCE/cmake-build” does not exist.  
> Specify --help for usage, or press the help button on the CMake GUI.

Is this just because I don’t really know what’s going on with CMAKE? Are there any good resources where I can pick up what I need to know?

Thanks again for any help!

---

<div class="post-metadata">

**Author:** ![mcmartin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mcmartin/32/7432_2.png) [@mcmartin](https://forum.juce.com/u/mcmartin)\
**Post date:** [May 28, 2020, 5:20am UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/4 "2020-05-28T05:20:43Z")

</div>

JUCE 6 requires CMake 3.12 minimum, but the `-B` argument of CMake is properly supported only starting from CMake 3.13 ([https://cmake.org/cmake/help/v3.13/release/3.13.html#command-line](https://cmake.org/cmake/help/v3.13/release/3.13.html#command-line)).

However, you don’t have to use CMake to use the `juce6` branch. You can build AudioPluginHost directly, its `Makefile` is in `extras/AudioPluginHost/Builds/LinuxMakefile/`.

---

<div class="post-metadata">

**Author:** ![jlmoriart](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jlmoriart/32/8268_2.png) [@jlmoriart](https://forum.juce.com/u/jlmoriart)\
**Post date:** [May 28, 2020, 1:15pm UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/5 "2020-05-28T13:15:46Z")

</div>

Thanks McMartin. I just built the JUCE6 AudioPluginHost using the makefile. It was still unable to load the plugins, giving me the same error. Just to be sure, I built the JUCE6 Projucer, opened the plugin project’s projucer file there, saved the project, and rebuilt the project in CodeBlocks, no change: the host gives the same error.

> Note that the following files appeared to be plugin files, but failed to load correctly: plugin\_name.so

In case this was a VST2 vs VST3 problem, I tried checking the VST3 box in Plugin Formats in the Projucer. (I’m still not sure what about JUCE6 is supposed to make this more likely to work, but maybe it’s VST3 support?) I noticed that, after saving the project in the Projucer, CodeBlocks didn’t ask if I wanted to reload the file. (Like it usually does when something is changed.) So I unchecked all plugin formats except for VST3, saved the project, and then, when building in CodeBlocks, I get the error:

> #error “You need to enable at least one plugin format!”

So, is VST3 still not available on Linux? Should the option to check the box be disabled in that case?

And if so, what could still be going wrong here with loading the plugins into the AudioPluginHost? I would REALLY like to have the debugging options available, since I’m already a noob and could use every bit of help I can get =(

Thanks very much for any help, as usual.

---

<div class="post-metadata">

**Author:** ![mcmartin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mcmartin/32/7432_2.png) [@mcmartin](https://forum.juce.com/u/mcmartin)\
**Post date:** [May 28, 2020, 7:17pm UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/6 "2020-05-28T19:17:24Z")

</div>

VST3 support on Linux is one of the main new features of JUCE 6:

> [@\`juce6\` technical preview branch](https://forum.juce.com/t/juce6-technical-preview-branch/38699/9):
>
> Building and hosting VST3 plug-ins is now supported on Linux!

Which exact Git commit of JUCE are you using?

---

<div class="post-metadata">

**Author:** ![jlmoriart](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jlmoriart/32/8268_2.png) [@jlmoriart](https://forum.juce.com/u/jlmoriart)\
**Post date:** [May 28, 2020, 8:36pm UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/7 "2020-05-28T20:36:36Z")

</div>

Thanks, and sorry, that’s something I probably could have just looked up myself. Great to hear that VST3 should work on Linux with JUCE6 though! And I’m guessing that that’s why it was suggested by tobanteAudio? I did have the VST2\_SDK all set up, but I’m happy to continue figuring out VST3 if it’s possible that that will resolve the issue.

> Which exact Git commit of JUCE are you using?

I’m not 100% sure this is what you’re looking for, but:

```
git show-branch

```

gives me

```
[juce6] Projucer: Add all format-specific plug-in files in juce_audio_plugin_client to correct targets in Visual Studio

```

and gitk brings up a bunch of info, including:

```
Author: ed <eddavies95@gmail.com> 2020-05-22 11:44:30
Committer: ed <eddavies95@gmail.com> 2020-05-22 12:36:07
Parent: b57509c4a21bafa54341a085ef48683cf16039e5 (Removed some cross-module relative includes)
Child: 0000000000000000000000000000000000000000 (Local uncommitted changes, not checked in to index)
Branches: juce6, remotes/origin/juce6
Follows: 5.4.7
Precedes:

```

---

<div class="post-metadata">

**Author:** ![mcmartin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mcmartin/32/7432_2.png) [@mcmartin](https://forum.juce.com/u/mcmartin)\
**Post date:** [May 29, 2020, 5:49am UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/8 "2020-05-29T05:49:50Z")

</div>

The issue is that the CodeBlocks exporter of Projucer doesn’t know that building VST3 plugins is supported on Linux.

That commit only adapted the Linux Makefile exporter:

> <https://github.com/juce-framework/JUCE/commit/7d1bfb054d5eef99e91ca2d92324656fa5f593ec>

@ed95 FYI

---

<div class="post-metadata">

**Author:** ![jlmoriart](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jlmoriart/32/8268_2.png) [@jlmoriart](https://forum.juce.com/u/jlmoriart)\
**Post date:** [May 29, 2020, 2:02pm UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/9 "2020-05-29T14:02:10Z")

</div>

Switching to the Makefile did it, thanks so much! I’m able to compile VST3s and load them into the AudioPluginHost. Looking forward to being able to use DBG! xD

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [May 29, 2020, 4:29pm UTC](https://forum.juce.com/t/cant-open-plugins-in-audiopluginhost/39555/10 "2020-05-29T16:29:49Z")

</div>

Building VST3 plug-ins using the Code::Blocks exporter isn’t supported (on Windows or Linux).
