SVModular / DrumKit

Drum modules for VCVRack
Other
40 stars 3 forks source link

Compile failed with latest HEAD #4

Closed cschol closed 6 years ago

cschol commented 6 years ago
src/Snare.cpp: In constructor 'SnareWidget::SnareWidget(SnareModule*)':
src/Snare.cpp:53:32: error: 'RoundSmallBlackSnapKnob' was not declared in this scope
   addParam(ParamWidget::create<RoundSmallBlackSnapKnob>(
                                ^~~~~~~~~~~~~~~~~~~~~~~
src/ClosedHH.cpp: In constructor 'ClosedHHWidget::ClosedHHWidget(ClosedHHModule*)':
src/ClosedHH.cpp:52:32: error: 'RoundSmallBlackSnapKnob' was not declared in this scope
   addParam(ParamWidget::create<RoundSmallBlackSnapKnob>(
                                ^~~~~~~~~~~~~~~~~~~~~~~
src/Snare.cpp:54:67: error: no matching function for call to 'rack::Parameter::create<<expression error> >(rack::Vec, SnareModule*&, DrumModule::ParamIds, double, double, double)'
       Vec(8, 92), module, SnareModule::DRUM1_PARAM, 1.0, 16.0, 8.0));
                                                                   ^
In file included from ../../include/rack.hpp:9:0,
                 from src/DrumKit.hpp:3,
                 from src/Snare.cpp:4:
../../include/app.hpp:244:12: note: candidate: template<class T> static T* rack::Parameter::create(rack::Vec, rack::Module*, int, float, float, float)
  static T *create(Vec pos, Module *module, int paramId, float minValue, float maxValue, float defaultValue) {
            ^~~~~~
../../include/app.hpp:244:12: note:   template argument deduction/substitution failed:

Probably related to this API Update.

JerrySievert commented 6 years ago

yes, at this moment, rack is a moving target, it's changing as fast as I can keep modules caught up (knobs changed again yesterday, for instance).

I'm trying to keep up :)

JerrySievert commented 6 years ago

it looks like some knob definitions disappeared during the big knob redo:

62:struct RoundSmallBlackSnapKnob : RoundSmallBlackKnob {

is now missing. I'll add a component src, at which point it should be buildable again.

JerrySievert commented 6 years ago

see: https://github.com/VCVRack/Rack/issues/799

JerrySievert commented 6 years ago

compilation should now work, but I'll likely get started on a custom component library, since I'm already relying on custom components in some of my other modules.