I updated JUCE to 7.0.6 (in hope) to fix some automation issues I was having on Live11.
But encountered a build error,
Error C2084 function 'std::unique_ptr<juce::AudioProcessor,std::default_delete<juce::AudioProcessor>> juce::createPluginFilterOfType(juce::AudioProcessor::WrapperType)' already has a body (compiling source file ..\..\JuceLibraryCode\include_juce_audio_plugin_client_utils.cpp)
This is PC/VST3.
Any help/suggestions to fix this are appreciated!
@reuk I tried but build fails due to other files not finding then eg. juceHeader.h.
Iâm sure thereâs a decent way to achieve this, can you shed a light on it?
Make sure that youâre using the version of the Projucer that came with 7.0.6. If necessary, build the Projucer yourself using the project files provided in extras/Projucer/Builds.
Then, using the new Projucer, make sure that your module paths are pointing to JUCE 7.0.6 and not an older version of JUCE.
Finally, resave your project in the new version of the Projucer, open it in an IDE, and build it.
Tried these steps, but somehow the error persists. JuceLibraryCode folder is never getting removed, and if I do that manually, it complains about missing juceHeader.h.
On updating the global paths for modules and JUCE, it shouldnât search for JuceHeader.h in JuceLibraryCode, correct?
Thatâs not happening. Is there any place I need to do these changes in project settings?
Thereâs not really enough information to say what might be happening. It would be helpful if you could describe the exact steps youâre taking, in as much detail as possible.
When you remove JuceLibraryCode and then save the project in the Projucer, does JuceLibraryCode get regenerated? If so, does the regenerated directory contain JuceHeader.h?
Iâve Projucer built from 7.0.6 extras/projucer/Builds, and using that for my projects.
I did set global paths for Juce and Modules to 7.0.6
Open my project in projucer (open .jucer file)
Check Global paths again ( set to 7.0.6)
Save and open in IDE - VS 2022.
Yes, it is regenerated and has JuceHeader.h.
Additional Tests I did:
Open and Build Juce demo example from 7.0.6 â It was initially not working for me ( Initially I was getting errors similar to this Build errors: VST3 post build script - JUCE 7.0.6. )
But, now itâs all solved and I was able to build AudioDemoPlugin from 7.0.6
Perhaps, it also generated JuceLibraryCode folder and has JuceHeader.h.
Another thought: Are you sure you open the new VS solution/vcproj file?
The only safe approach is wipe the Builds and the JuceLibraryCode folder and click âOpen in IDEâ button next to the âSelected Exporterâ field.
Make sure if you have custom modifications in JuceLibraryCode/AppConfig.h to salvage those before wiping!