Hello there, when trying to get JUCE/examples/CMake/AudioPlugin running, I came across the issue to not being able to resolve JucePlugin_Name from PluginProcessor.cpp’s getName() function.
I have not modified anything at all except the CMakeLists.txt which looks like this:
cmake_minimum_required(VERSION 3.22)
project(AUDIO_PLUGIN_EXAMPLE VERSION 0.0.1)
set(JUCE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/external/JUCE")
add_subdirectory("${JUCE_PATH}")
juce_add_plugin(AudioPluginExample
PLUGIN_MANUFACTURER_CODE Juce
PLUGIN_CODE Dem0
FORMATS AU VST3 Standalone
PRODUCT_NAME "Audio Plugin Example")
target_sources(AudioPluginExample
PRIVATE
source/PluginEditor.cpp
source/PluginProcessor.cpp)
target_compile_definitions(AudioPluginExample
PUBLIC
JUCE_WEB_BROWSER=0
JUCE_USE_CURL=0
JUCE_VST3_CAN_REPLACE_VST2=0)
target_link_libraries(AudioPluginExample
PRIVATE
juce::juce_audio_utils
PUBLIC
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags)
What i’ve tried:
- Adding a PLUGIN_NAME within juce_add_plugin()
- including “JucePluginDefines.h” (also version with <>) at the top of AudioProcessor.cpp
Please prevent me from smashing my head against a wall.
Appreciated ![]()
