antoniograzioli / Autodafe

Autodafe Module Pack for VCV Rack
http://www.autodafe.net/virtual-instruments/vcv-rack-modules/autodafe-module-pack-for-vcv-rack.html
Other
31 stars 7 forks source link

Compile failing on Linux (Fedora 26) #2

Open kmkrebs opened 6 years ago

kmkrebs commented 6 years ago

Hi - I'm attempting to compile your VCV Plugins on Linux (Fedora 26), but am having no success. I get the following error:

g++ -fPIC -I../../include -I../../dep/include -DVERSION=dev -MMD -O3 -march=nocona -ffast-math -g -Wall -DARCH_LIN -std=c++11 -c -o build/src/Phaser.cpp.o src/Phaser.cpp
src/Phaser.cpp: In member function ‘virtual void PhaserFx::step()’:
src/Phaser.cpp:145:32: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<rack::Param> >::value_type {aka rack::Param}’ to ‘float’ in initialization
  float rate = params[PARAM_RATE];
                                ^
src/Phaser.cpp:146:40: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<rack::Param> >::value_type {aka rack::Param}’ to ‘float’ in initialization
  float feedback = params[PARAM_FEEDBACK];
                                        ^
src/Phaser.cpp:147:34: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<rack::Param> >::value_type {aka rack::Param}’ to ‘float’ in initialization
  float depth = params[PARAM_DEPTH];
                                  ^
src/Phaser.cpp:149:34: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<rack::Input> >::value_type {aka rack::Input}’ to ‘const float*’ for argument ‘1’ to ‘float rack::getf(const float*, float)’
  float input = getf(inputs[INPUT]) / 5.0;
                                  ^
src/Phaser.cpp:159:28: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<rack::Output> >::value_type {aka rack::Output}’ to ‘float*’ for argument ‘1’ to ‘void rack::setf(float*, float)’
  setf(outputs[OUT], out * 5);
                            ^
make: *** [../../compile.mk:50: build/src/Phaser.cpp.o] Error 1

I'm compiling with gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC).

Any ideas?

antoniograzioli commented 6 years ago

yes, these sources are still for Rack v. 0.32 they won't compile with the current sources that are for v. 0.40

I will update soon my repository for Rack 0.40 as well