VCV-Rack-Plugins
VCV-Rack-Plugins copied to clipboard
build fail with latest git
Linux Fedora 23 Rack 0.6.1
Is a dependency missing ?
g++ -Wsuggest-override -std=c++11 -Idep/include -DSLUG=mscHack -fPIC -I../../include -I../../dep/include -DVERSION=0.6.2 -MMD -MP -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN -c -o build/src/Windz.cpp.o src/Windz.cpp src/Windz.cpp: In member function ‘void Windz::BuildWave(int)’: src/Windz.cpp:447:2: error: ‘m_osc’ was not declared in this scope m_osc[ ch ].semi = semis[ srand() & 0x7 ]; ^ src/Windz.cpp:450:2: error: ‘m_wav’ was not declared in this scope m_wav[ ch ][ 0 ].Init( EnvelopeData::MODE_LOOP, EnvelopeData::RANGE_Audio, false, 1.0f ); ^ src/Windz.cpp: In member function ‘void Windz::BuildDrone()’: src/Windz.cpp:496:2: error: ‘m_global’ was not declared in this scope m_global[ GOSC_FILTER ].Init( EnvelopeData::MODE_LOOP, EnvelopeData::RANGE_0to1, false, 1.0f ); ^ src/Windz.cpp:496:12: error: ‘GOSC_FILTER’ was not declared in this scope m_global[ GOSC_FILTER ].Init( EnvelopeData::MODE_LOOP, EnvelopeData::RANGE_0to1, false, 1.0f ); ^ src/Windz.cpp:497:2: error: ‘m_GlobalOsc’ was not declared in this scope m_GlobalOsc[ GOSC_FILTER ].finc = 1.0f / frand_mm( 14.5f, 38.0f ); ^ src/Windz.cpp:502:12: error: ‘GOSC_NOISE’ was not declared in this scope m_global[ GOSC_NOISE ].Init( EnvelopeData::MODE_LOOP, EnvelopeData::RANGE_0to1, false, 1.0f ); ^ src/Windz.cpp: In member function ‘virtual void Windz::step()’: src/Windz.cpp:713:4: error: ‘m_wav’ was not declared in this scope m_wav[ ch ][ wv ].m_Clock.syncInc = 32.7032f * clamp( powf( 2.0f, clamp( inputs[ IN_VOCT ].normalize( 3.0f ) + m_osc[ ch ].semi, 0.0f, VOCT_MAX ) ), 0.0f, 4186.01f ); ^ src/Windz.cpp:713:115: error: ‘m_osc’ was not declared in this scope m_wav[ ch ][ wv ].m_Clock.syncInc = 32.7032f * clamp( powf( 2.0f, clamp( inputs[ IN_VOCT ].normalize( 3.0f ) + m_osc[ ch ].semi, 0.0f, VOCT_MAX ) ), 0.0f, 4186.01f ); ^ src/Windz.cpp:724:55: error: ‘fmorph’ was not declared in this scope In += m_wav[ ch ][ wv ].procStep( false, false ) * fmorph[ wv ]; ^ src/Windz.cpp:728:16: error: ‘m_osc’ was not declared in this scope out += In * m_osc[ ch ].fval[ MOD_LEVEL ]; ^ src/Windz.cpp:734:36: error: ‘m_GlobalOsc’ was not declared in this scope out += frand_mm( -1.0f, 1.0f ) * m_GlobalOsc[ GOSC_NOISE ].fval; ^ src/Windz.cpp:734:49: error: ‘GOSC_NOISE’ was not declared in this scope out += frand_mm( -1.0f, 1.0f ) * m_GlobalOsc[ GOSC_NOISE ].fval; ^ src/Windz.cpp:737:45: error: ‘m_GlobalOsc’ was not declared in this scope ChangeFilterCutoff( &m_filter, m_cuttoff * m_GlobalOsc[ GOSC_FILTER ].fval ); ^ src/Windz.cpp:737:58: error: ‘GOSC_FILTER’ was not declared in this scope ChangeFilterCutoff( &m_filter, m_cuttoff * m_GlobalOsc[ GOSC_FILTER ].fval ); ^ src/Windz.cpp:738:33: error: no matching function for call to ‘Windz::processFilter(FILTER_STRUCT ()[3], float)’ processFilter( &m_filter, &out ); ^ src/Windz.cpp:573:6: note: candidate: void Windz::processFilter(FILTER_STRUCT*, float*) void Windz::processFilter( FILTER_STRUCT pf, float pIn ) ^ src/Windz.cpp:573:6: note: no known conversion for argument 1 from ‘FILTER_STRUCT ()[3]’ to ‘FILTER_STRUCT’ ../../compile.mk:64: recipe for target 'build/src/Windz.cpp.o' failed make: *** [build/src/Windz.cpp.o] Error 1
My apologies, I had to do a quick commit and forgot I started making changes...
for now if you remove the Windz references it will build, i am pretty sure anyway.
Thanks ! I commented out the Windz references, everything is good now.
Btw, I ran into an earlier error but it's likely just due to the age of my system and compiler:
g++ -Wsuggest-override -std=c++11 -Idep/include -DSLUG=mscHack -fPIC -I../../include -I../../dep/include -DVERSION=0.6.2 -MMD -MP -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN -c -o build/src/mscHack.cpp.o src/mscHack.cpp
src/mscHack.cpp:45:14: error: ‘unsigned int index’ redeclared as different kind of symbol
unsigned int index = 4095;
^
In file included from ../../include/util/common.hpp:7:0,
from ../../include/rack.hpp:4,
from src/mscHack.hpp:1,
from src/mscHack.cpp:1:
/usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’
index (const char *__s, int __c) __THROW
^
src/mscHack.cpp: In function ‘void init_rand(unsigned int)’:
src/mscHack.cpp:59:11: error: overloaded function with no contextual type information
index = 4095;
^
src/mscHack.cpp: In function ‘short unsigned int srand()’:
src/mscHack.cpp:67:22: error: invalid operands of types ‘
This error was easily resolved by changing index to Index in mscHack.cpp