Hello all,
I’ve been writing a simple plugin on linux, I’m trying to get the path of a file chosen by the user. Here is the code snippet that I currently use :
void ConvolvAudioProcessorEditor::chooseFile()
{
juce::FileChooser chooser ("Open file (wav)", juce::File("~"), "*wav");
if(chooser.browseForFileToOpen()){
std::cout << chooser.getResult().getFullPathName() << "\n";
}
}
When ld is trying to link everything together I get this error :
undefined reference to `juce::FileChooser::browseForFileToOpen(juce::FilePreviewComponent*)'
Trying to browse the forum I did not find anyone having the same issue except for people trying to build for Android, so I thought creating a post could help someone else if I’m able to get around this issue.
I’m trying to debug this issue on my end, I’ll keep this post updated on what I’ll settle with. If anyone come across this post unresolved any suggestion is apreciated.
As additionnal information I’m running debian 10 with lxde as my desktop environment (xfce and i3 are also installed).
I also have added JUCE_MODAL_LOOPS_PERMITTED=1 to the preprocessor definitions as well as included the modules juce_gui_basics and juce_gui_extra in the project