almostEric / FrozenWasteland

Plugins for VCV Rack
Other
91 stars 18 forks source link

Build failure on Linux #55

Closed cschol closed 4 years ago

cschol commented 4 years ago
[FrozenWasteland] Building plugin on platform linux...src/ProbablyNote.cpp:147:63: error: array must be initialized with a brace-enclosed initializer
     float noteInitialProbability[POLYPHONY][MAX_NOTES] = {0.0f}; /// NEEDS POLY
                                                               ^
src/ProbablyNote.cpp:150:57: error: array must be initialized with a brace-enclosed initializer
     float actualProbability[POLYPHONY][MAX_NOTES] = {0.0}; /// NEEDS POLY
                                                         ^
make: *** [build/src/ProbablyNote.cpp.o] Error 1
make: *** Waiting for unfinished jobs....
FAILED
AndrewBelt commented 4 years ago

float x[N][M] = {0.f}; is invalid C++. Use {{0.f}}.

almostEric commented 4 years ago

That makes more sense.

cschol commented 4 years ago

Another compile failure on Linux:

[FrozenWasteland] Building plugin on platform linux...src/QuadAlgorithmicRhythm.cpp: In member function 'virtual void QuadAlgorithmicRhythm::process(const rack::engine::Module::ProcessArgs&)':                                                                                                                      
src/QuadAlgorithmicRhythm.cpp:551:50: warning: array subscript is below array bounds [-Warray-bounds]                                                                                                                                                                                                                 
                     while(rulerLengths[rulerToUse] + 1 > actualStepCount && rulerToUse >=  0) {                                                                                                                                                                                                                      
                                                  ^                                                                                                                                                                                                                                                                   
src/HairPick.cpp: In constructor 'HairPick::HairPick()':                                                                                                                                                                                                                                                              
src/HairPick.cpp:138:13: error: could not convert '0.0f' from 'float' to 'FloatFrame'                                                                                                                                                                                                                                 
  HairPick() {                                                                                                                                                                                                                                                                                                        
             ^                                                                                                                                                                                                                                                                                                        
src/HairPick.cpp:138:13: error: could not convert '0.0f' from 'float' to 'FloatFrame'                                                                                                                                                                                                                                 
In file included from src/HairPick.cpp:2:0:
src/dsp-delay/delayLine.cpp: In constructor 'constexpr MultiTapDelayLine<FloatFrame, 65>::MultiTapDelayLine()':
src/dsp-delay/delayLine.cpp:118:8: error: could not convert '0.0f' from 'float' to 'FloatFrame'
 struct MultiTapDelayLine {
        ^
src/dsp-delay/delayLine.cpp:118:8: error: could not convert '0.0f' from 'float' to 'FloatFrame'
src/PortlandWeather.cpp: In constructor 'PortlandWeather::PortlandWeather()':                                                                                                                                                                                                                                         
src/PortlandWeather.cpp:258:20: error: could not convert '0.0f' from 'float' to 'FloatFrame'
  PortlandWeather() {                                                                                                                                                                                                                                                                                                 
                    ^
src/PortlandWeather.cpp:258:20: error: could not convert '0.0f' from 'float' to 'FloatFrame'                                                                                                                                                                                                                          
src/HairPick.cpp: In constructor 'HairPick::HairPick()':
src/HairPick.cpp:138:13: note: synthesized method 'constexpr MultiTapDelayLine<FloatFrame, 65>::MultiTapDelayLine()' first required here                                                                                                                                                                              
  HairPick() {
             ^                                                                                                                                                                                                                                                                                                        
make: *** [build/src/HairPick.cpp.o] Error 1
make: *** Waiting for unfinished jobs....                                                                                                                                                                                                                                                                             
In file included from src/PortlandWeather.cpp:2:0:
src/dsp-delay/delayLine.cpp: In constructor 'constexpr MultiTapDelayLine<FloatFrame, 18>::MultiTapDelayLine()':                                                                                                                                                                                                       
src/dsp-delay/delayLine.cpp:118:8: error: could not convert '0.0f' from 'float' to 'FloatFrame'
 struct MultiTapDelayLine {                                                                                                                                                                                                                                                                                           
        ^
src/dsp-delay/delayLine.cpp:118:8: error: could not convert '0.0f' from 'float' to 'FloatFrame'                                                                                                                                                                                                                       
src/PortlandWeather.cpp: In constructor 'PortlandWeather::PortlandWeather()':
src/PortlandWeather.cpp:258:20: note: synthesized method 'constexpr MultiTapDelayLine<FloatFrame, 18>::MultiTapDelayLine()' first required here                                                                                                                                                                       
  PortlandWeather() {
                    ^                                                                                                                                                                                                                                                                                                 
src/PortlandWeather.cpp:258:20: error: could not convert '0.0f' from 'float' to 'FloatFrame'
src/PortlandWeather.cpp:258:20: error: could not convert '0.0f' from 'float' to 'FloatFrame'                                                                                                                                                                                                                          
In file included from src/PortlandWeather.cpp:2:0:
src/dsp-delay/delayLine.cpp: In constructor 'constexpr InterpolatedDelay<2048>::InterpolatedDelay()':                                                                                                                                                                                                                 
src/dsp-delay/delayLine.cpp:73:8: error: could not convert '0.0f' from 'float' to 'FloatFrame'
 struct InterpolatedDelay {                                                                                                                                                                                                                                                                                           
        ^
src/dsp-delay/delayLine.cpp:73:8: error: could not convert '0.0f' from 'float' to 'FloatFrame'                                                                                                                                                                                                                        
src/dsp-delay/delayLine.cpp: In constructor 'GranularPitchShifter::GranularPitchShifter()':
src/dsp-delay/delayLine.cpp:195:8: note: synthesized method 'constexpr InterpolatedDelay<2048>::InterpolatedDelay()' first required here                                                                                                                                                                              
 struct GranularPitchShifter {
        ^                                                                                                                                                                                                                                                                                                             
src/PortlandWeather.cpp: In constructor 'PortlandWeather::PortlandWeather()':
src/PortlandWeather.cpp:258:20: note: synthesized method 'GranularPitchShifter::GranularPitchShifter()' first required here                                                                                                                                                                                           
  PortlandWeather() {
                    ^                                                                                                                                                                                                                                                                                                 
make: *** [build/src/PortlandWeather.cpp.o] Error 1