helio-fm / helio-sequencer

Libre music sequencer for desktop and mobile platforms
https://helio.fm
GNU General Public License v3.0
3.09k stars 115 forks source link

UnityBuild.cpp compiling error #253

Closed kamkamkamkamkamkamkamkam closed 1 year ago

kamkamkamkamkamkamkamkam commented 1 year ago

when compiling helio from source, this error occurs Compiling UnityBuild.cpp In file included from ../../Source/UI/Common/MetronomeEditor.h:27, from ../../Source/Core/../../Source/Core/Audio/BuiltIn/MetronomeSynthAudioPlugin.cpp:22, from ../Projucer/JuceLibraryCode/UnityBuild.cpp:18: ../../Source/UI/Themes/HelioTheme.h:58:15: error: explicit specialization in non-namespace scope ‘class HelioTheme’ 58 | template <> | ^ ../../Source/UI/Themes/HelioTheme.h:59:24: error: template-id ‘drawDashedHorizontalLine<1>’ in declaration of primary template 59 | inline static void drawDashedHorizontalLine<1>(Graphics &g, float x, float y, float width, float dashLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../Source/UI/Themes/HelioTheme.h:72:15: error: explicit specialization in non-namespace scope ‘class HelioTheme’ 72 | template <> | ^ ../../Source/UI/Themes/HelioTheme.h:73:24: error: template-id ‘drawDashedHorizontalLine<2>’ in declaration of primary template 73 | inline static void drawDashedHorizontalLine<2>(Graphics &g, float x, float y, float width, float dashLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../Source/UI/Themes/HelioTheme.h:73:24: error: ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float)’ cannot be overloaded with ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float)’ ../../Source/UI/Themes/HelioTheme.h:59:24: note: previous declaration ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float)’ 59 | inline static void drawDashedHorizontalLine<1>(Graphics &g, float x, float y, float width, float dashLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../Source/UI/Themes/HelioTheme.h:88:15: error: explicit specialization in non-namespace scope ‘class HelioTheme’ 88 | template <> | ^ ../../Source/UI/Themes/HelioTheme.h:89:24: error: template-id ‘drawDashedHorizontalLine<3>’ in declaration of primary template 89 | inline static void drawDashedHorizontalLine<3>(Graphics &g, float x, float y, float width, float dashLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../Source/UI/Themes/HelioTheme.h:89:24: error: ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float)’ cannot be overloaded with ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float)’ ../../Source/UI/Themes/HelioTheme.h:59:24: note: previous declaration ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float)’ 59 | inline static void drawDashedHorizontalLine<1>(Graphics &g, float x, float y, float width, float dashLength) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../Source/UI/Themes/HelioTheme.h:107:24: error: too many template-parameter-lists 107 | inline static void drawDashedVerticalLine(Graphics &g, float x, float y, float height, float dashLength = 4.f); | ^~~~~~~~~~~~~~~~~~~~~~ ../../Source/UI/Themes/HelioTheme.h:109:15: error: explicit specialization in non-namespace scope ‘class HelioTheme’ 109 | template <> | ^ ../../Source/UI/Themes/HelioTheme.h:110:24: error: variable or field ‘drawDashedVerticalLine’ declared void 110 | inline static void drawDashedVerticalLine<1>(Graphics &g, float x, float y, float height, float dashLength) | ^~~~~~~~~~~~~~~~~~~~~~ ../../Source/UI/Themes/HelioTheme.h:110:24: error: expected ‘;’ at end of member declaration 110 | inline static void drawDashedVerticalLine<1>(Graphics &g, float x, float y, float height, float dashLength) | ^~~~~~~~~~~~~~~~~~~~~~ | ; ../../Source/UI/Themes/HelioTheme.h:110:46: error: expected unqualified-id before ‘<’ token 110 | inline static void drawDashedVerticalLine<1>(Graphics &g, float x, float y, float height, float dashLength) | ^ In file included from ../Projucer/JuceLibraryCode/UnityBuild.cpp:240: ../../Source/Core/../../Source/UI/Sequencer/Helpers/CutPointMark.cpp: In member function ‘virtual void ClipCutPointMark::paint(juce::Graphics&)’: ../../Source/Core/../../Source/UI/Sequencer/Helpers/CutPointMark.cpp:149:17: error: ‘drawDashedVerticalLine’ is not a member of ‘HelioTheme’ 149 | HelioTheme::drawDashedVerticalLine(g, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../Projucer/JuceLibraryCode/UnityBuild.cpp:262: ../../Source/Core/../../Source/UI/Sequencer/PianoRoll/NoteResizerLeft.cpp: In member function ‘virtual void NoteResizerLeft::paint(juce::Graphics&)’: ../../Source/Core/../../Source/UI/Sequencer/PianoRoll/NoteResizerLeft.cpp:70:17: error: ‘drawDashedVerticalLine’ is not a member of ‘HelioTheme’ 70 | HelioTheme::drawDashedVerticalLine(g, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../Projucer/JuceLibraryCode/UnityBuild.cpp:263: ../../Source/Core/../../Source/UI/Sequencer/PianoRoll/NoteResizerRight.cpp: In member function ‘virtual void NoteResizerRight::paint(juce::Graphics&)’: ../../Source/Core/../../Source/UI/Sequencer/PianoRoll/NoteResizerRight.cpp:69:17: error: ‘drawDashedVerticalLine’ is not a member of ‘HelioTheme’ 69 | HelioTheme::drawDashedVerticalLine(g, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../../Source/UI/Common/MetronomeEditor.h:27, from ../../Source/Core/../../Source/Core/Audio/BuiltIn/MetronomeSynthAudioPlugin.cpp:22, from ../Projucer/JuceLibraryCode/UnityBuild.cpp:18: ../../Source/UI/Themes/HelioTheme.h: At global scope: ../../Source/UI/Themes/HelioTheme.h:56:24: warning: inline function ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float) [with int thickness = 2]’ used but never defined 56 | inline static void drawDashedHorizontalLine(Graphics &g, float x, float y, float width, float dashLength = 4.f); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../../Source/UI/Themes/HelioTheme.h:56:24: warning: inline function ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float) [with int thickness = 3]’ used but never defined ../../Source/UI/Themes/HelioTheme.h:56:24: warning: inline function ‘static void HelioTheme::drawDashedHorizontalLine(juce::Graphics&, float, float, float, float) [with int thickness = 1]’ used but never defined cc1plus: note: unrecognized command-line option ‘-Wno-dynamic-class-memaccess’ may have been intended to silence earlier diagnostics make: *** [Makefile:203: build/intermediate/Debug/UnityBuild_19c451ca.o] Error 1

peterrudenko commented 1 year ago

Thanks for reporting, this should have been fixed in the develop branch. Please reopen if any problems persist.