Open Cordoha opened 6 years ago
I was trying to build in the wrong area I guess. But I've gotten another error resulting in failure though.
~/Rack/plugins/MSCHack$` make
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/Maude221.cpp.o src/Maude221.cpp 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/ARP700.cpp.o src/ARP700.cpp 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/Morze.cpp.o src/Morze.cpp 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/Mixer_4x4_Stereo.cpp.o src/Mixer_4x4_Stereo.cpp src/Mixer_4x4_Stereo.cpp: In member function ‘void Mix_4x4_Stereo::ProcessMuteSolo(int, bool, bool)’: src/Mixer_4x4_Stereo.cpp:947:28: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] for( i = si; i < ei; i++ )
^~ src/Mixer_4x4_Stereo.cpp:947:28: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] 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/3Ch_Osc.cpp.o src/3Ch_Osc.cpp 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/Alienz.cpp.o src/Alienz.cpp 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_Control_EnvelopeData.cpp.o src/mscHack_Control_EnvelopeData.cpp 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/SynthDrums.cpp.o src/SynthDrums.cpp 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/XFade.cpp.o src/XFade.cpp 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 /usr/include/string.h:431:0, from ../../include/util/common.hpp:7, from ../../include/rack.hpp:4, from src/mscHack.hpp:1, from src/mscHack.cpp:1: /usr/include/strings.h:61: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:13: error: overloaded function with no contextual type information index = 4095; ^~~~ src/mscHack.cpp: In function ‘short unsigned int srand()’: src/mscHack.cpp:67:20: error: invalid operands of types ‘’ and ‘int’ to binary ‘operator+’ index = (index + 1) & 4095; src/mscHack.cpp:68:20: error: invalid types ‘unsigned int [4096][<unresolved overloaded function type>]’ for array subscript t = a * Q[index] + c; ^ src/mscHack.cpp:78:39: error: invalid types ‘unsigned int [4096][<unresolved overloaded function type>]’ for array subscript return (unsigned short)( ( Q[index] = r - x ) & 0xFFFF ); ^ ../../compile.mk:61: recipe for target 'build/src/mscHack.cpp.o' failed make: *** [build/src/mscHack.cpp.o] Error 1
Same as https://github.com/mschack/VCV-Rack-Plugins/issues/70
Removed Windz.cpp, renamed index to Index. Got it compiled.
Makefile:9: ../../plugin.mk: No such file or directory make: *** No rule to make target '../../plugin.mk'. Stop.