Lateset develop doesn't compile on Ubuntu Mate Arm


#1

Error is here:

Compiling MainComponent.cpp
In file included from ../../JuceLibraryCode/modules/juce_audio_processors/juce_audio_processors.h:109:0,
                 from ../../Source/../JuceLibraryCode/JuceHeader.h:21,
                 from ../../Source/MainComponent.h:12,
                 from ../../Source/MainComponent.cpp:9:
../../JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessor.h: In member function ‘juce::AudioProcessor::BusesLayout juce::AudioProcessor::getNextBestLayoutInLayoutList(const juce::AudioProcessor::BusesLayout&, const short int (*)[2])’:
../../JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessor.h:773:86: error: no matching function for call to ‘juce::AudioProcessor::layoutListToArray(const short int (*&)[2])’
         return getNextBestLayoutInList (layouts, layoutListToArray (channelLayoutList));
                                                                                      ^
../../JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessor.h:1469:36: note: candidate: template<int numLayouts> static juce::Array<juce::AudioProcessor::InOutChannelPair> juce::AudioProcessor::layoutListToArray(const short int (&)[numLayouts][2])
     static Array<InOutChannelPair> layoutListToArray (const short (&configuration) [numLayouts][2])
                                    ^
../../JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessor.h:1469:36: note:   template argument deduction/substitution failed:
../../JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessor.h:773:86: note:   mismatched types ‘const short int [numLayouts][2]’ and ‘const short int (*)[2]’
         return getNextBestLayoutInList (layouts, layoutListToArray (channelLayoutList));
                                                                                      ^
../../JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessor.h:1483:36: note: candidate: static juce::Array<juce::AudioProcessor::InOutChannelPair> juce::AudioProcessor::layoutListToArray(const std::initializer_list<const short int [2]>&)
     static Array<InOutChannelPair> layoutListToArray (const std::initializer_list<const short[2]>& configuration)
                                    ^
../../JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessor.h:1483:36: note:   no known conversion for argument 1 from ‘const short int (*)[2]’ to ‘const std::initializer_list<const short int [2]>&’
Makefile:100: recipe for target 'build/intermediate/Debug/MainComponent_a6ffb4a5.o' failed
make: *** [build/intermediate/Debug/MainComponent_a6ffb4a5.o] Error 1

#2

Thanks for reporting. Should be fixed now!


#3

I’m on the develop branch in Git, and this error is still coming up for me.


#4

Are you sure you are on the develop branch? Just tried this on latest Mint Linux Cinnamon. I don’t think that Cinnamon/Mate should make any difference. What’s your compiler version?