Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile failing on Linux (Fedora 26) #2

Open
kmkrebs opened this issue Oct 7, 2017 · 1 comment
Open

Compile failing on Linux (Fedora 26) #2

kmkrebs opened this issue Oct 7, 2017 · 1 comment

Comments

@kmkrebs
Copy link

kmkrebs commented Oct 7, 2017

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
Copy link
Owner

antoniograzioli commented Oct 9, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants