I am building the JUCE lib on Linux and using in a console app, so I don’t want GUI, and turned off the JUCE_BUILD_GUI_CLASSES flag. JUCE lib build properly, but when I build my console application I got linking errors like "juce_AudioDeviceManager.cpp:457: undefined reference to `juce::MidiInput::getDevices()’ ".
When I looked for MidiInput::getDevices(), I found it in juce_linux_Midi.cpp under the #if JUCE_BUILD_GUI_CLASSES. And that’s why it is not been compiled.
For initialization of juce I am using initialiseJuce_NonGUI() API in my console application.