GuitarML / SmartGuitarAmp

Guitar plugin made with JUCE that uses neural networks to emulate a tube amplifier.
https://guitarml.com/
Apache License 2.0
1.24k stars 55 forks source link

‘class juce::FileChooser’ has no member named ‘browseForFileToOpen’ #27

Closed tank-trax closed 2 years ago

tank-trax commented 3 years ago

OS: Debian Bullseye JUCE Version: v6.1.1

I got this error when trying to build SmartGuitarAmp

Compiling PluginEditor.cpp
../../Source/PluginEditor.cpp: In member function ‘void WaveNetVaAudioProcessorEditor::loadButtonClicked()’:
../../Source/PluginEditor.cpp:271:17: error: ‘class juce::FileChooser’ has no member named ‘browseForFileToOpen’
  271 |     if (chooser.browseForFileToOpen())
      |                 ^~~~~~~~~~~~~~~~~~~
make: *** [Makefile:250: build/intermediate/Release/PluginEditor_94d4fb09.o] Error 1

it builds successfully using JUCE v6.0.8

KottV commented 2 years ago

you need to set in jucer: extraCompilerFlags="-DJUCE_MODAL_LOOPS_PERMITTED=1"

GuitarML commented 2 years ago

@KottV Thanks for answering! Closing this issue