Hello, I am new to JUCE and can’t seem to get any new plugin projects to compile. However, I have no issues compiling the example audio plugin projects.
To rule out my code being the issue, I created a new basic plugin project (made sure the necessary modules were selected, all paths set correctly, and proper exporter selected), removed the default source files from the project, and replaced them with the source code from an example (and verified that these added files were being properly referenced in the .jucer project file). Here are some of the errors I received when attempting to compile:
I’ve compared the .jucer files for an example project and a new project and found minute differences, but still tried changing the format of a .jucer file for a new project to match that of an example to no avail.
I’m currently using JUCE 8.0.2 and Ubuntu 24.10. Thank you in advance for any advice.
Hi, thank you for your response. I already have the juce_audio_basics module included and the path is set to the JUCE modules folder, so do I need to include each specific file from the module as well?
The examples in the JUCE repository rely on using namespace juce; being included in the JuceHeader.h. This makes sense for the built-in examples, because we have full control over name collisions, and it helps to make the code more concise. However, this approach is not recomended for new projects, and so completely new projects create with the Projucer will default to omittingusing namespace juce; from JuceHeader.h.
In the Projucer, this option is called Add "using namespace juce" to JuceHeader.h. You can change this option (not recommended), or manually add juce:: prefixes to unrecognised classnames (recommended).
No, don’t do that. The Projucer should automatically configure the module source files that should be built.