Hi,
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.
I took the latest copy of amalgamated files .h and .cpp
I tuned off the following flags by commenting those:
1. JUCE_ASIO
2. JUCE_ALSA
3. JUCE_QUICKTIME
4. JUCE_BUILD_GUI_CLASSES
and tried to build the amalgamated. It build it but getting linking errors, such as: (there are lots of errors)
undefined reference to juce::MidiOutput::getDevices()' undefined reference tojuce::KeyPress::downKey’
undefined reference to `juce::DragAndDropContainer::performExternalDragDropOfFiles(juce::StringArray const&, bool)’
So could you please help me in building JUCE on LINUX without GUI.