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

Build errors (v2.beta.1, Windows 10) #45

Open
ThePython10110 opened this issue Nov 25, 2021 · 0 comments
Open

Build errors (v2.beta.1, Windows 10) #45

ThePython10110 opened this issue Nov 25, 2021 · 0 comments

Comments

@ThePython10110
Copy link

ThePython10110 commented Nov 25, 2021

It seems like there is a missing library of some kind.

src/Recorder.cpp:672:34: error: 'struct rack::engine::Engine' has no member named 'getPrimaryModule'
  672 |                 if (APP->engine->getPrimaryModule() == this) {
      |                                  ^~~~~~~~~~~~~~~~
src/Recorder.cpp: In member function 'void Recorder::setPrimary()':
src/Recorder.cpp:987:30: error: 'struct rack::engine::Engine' has no member named 'setPrimaryModule'
  987 |                 APP->engine->setPrimaryModule(this);
      |                              ^~~~~~~~~~~~~~~~
src/Recorder.cpp: In member function 'bool Recorder::isPrimary()':
src/Recorder.cpp:991:37: error: 'struct rack::engine::Engine' has no member named 'getPrimaryModule'
  991 |                 return APP->engine->getPrimaryModule() == this;
      |                                     ^~~~~~~~~~~~~~~~
src/Recorder.cpp: In member function 'virtual void RecorderWidget::appendContextMenu(rack::ui::Menu*)':
src/Recorder.cpp:1112:51: error: no matching function for call to 'createCheckMenuItem(std::string, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda()>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda()>)'
 1112 |                 menu->addChild(createCheckMenuItem((path != "") ? path : "Select...",
      |                                ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1113 |                         [=]() {return module->isPrimary();},
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1114 |                         [=]() {selectPath(module);}
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1115 |                 ));
      |                 ~

...

src/Recorder.cpp:1117:53: error: no matching function for call to 'createBoolPtrMenuItem(const char [24], bool*)'
 1117 |                 menu->addChild(createBoolPtrMenuItem("Append -001, -002, etc.", &module->incrementPath));
      |                                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

...

src/Recorder.cpp:1124:59: error: no matching function for call to 'createCheckMenuItem(std::__cxx11::basic_string<char>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda()>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda()>)'
 1124 |                         menu->addChild(createCheckMenuItem(fi.name + " (." + fi.extension + ")",
      |                                        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1125 |                                 [=]() {return format == module->format;},
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1126 |                                 [=]() {module->setFormat(format);}
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1127 |                         ));
      |                         ~

...

src/Recorder.cpp:1135:59: error: no matching function for call to 'createCheckMenuItem(std::__cxx11::basic_string<char>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda()>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda()>)'
 1135 |                         menu->addChild(createCheckMenuItem(fi.name + " (." + fi.extension + ")",
      |                                        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1136 |                                 [=]() {return format == module->format;},
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1137 |                                 [=]() {module->setFormat(format);}
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1138 |                         ));
      |

...

src/Recorder.cpp: In lambda function:
src/Recorder.cpp:1147:75: error: no matching function for call to 'createCheckMenuItem(std::string, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>::<lambda()>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>::<lambda()>)'
 1147 |                                         menu->addChild(createCheckMenuItem(string::f("%g kHz", sampleRate / 1000.0),
      |                                                        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1148 |                                                 [=]() {return module->sampleRate == sampleRate;},
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1149 |                                                 [=]() {module->setSampleRate(sampleRate); DEBUG("%d", sampleRate);}
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1150 |                                         ));
      |                                         ~

...

src/Recorder.cpp:1144:49: error: no matching function for call to 'createSubmenuItem(const char [12], RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>)'
 1144 |                 menu->addChild(createSubmenuItem("Sample rate",
      |                                ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
 1145 |                         [=](Menu* menu) {
      |                         ~~~~~~~~~~~~~~~~~
 1146 |                                 for (int sampleRate : module->getSampleRates()) {
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1147 |                                         menu->addChild(createCheckMenuItem(string::f("%g kHz", sampleRate / 1000.0),
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1148 |                                                 [=]() {return module->sampleRate == sampleRate;},
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1149 |                                                 [=]() {module->setSampleRate(sampleRate); DEBUG("%d", sampleRate);}
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1150 |                                         ));
      |                                         ~~~
 1151 |                                 }
      |                                 ~
 1152 |                         }
      |                         ~
 1153 |                 ));
      |                 ~

...

src/Recorder.cpp:1159:83: error: no matching function for call to 'createCheckMenuItem(std::string, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>::<lambda()>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>::<lambda()>)'
 1159 |                                                 menu->addChild(createCheckMenuItem(string::f("%d bit", depth),
      |                                                                ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1160 |                                                         [=]() {return module->depth == depth;},
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1161 |                                                         [=]() {module->setDepth(depth);}
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1162 |                                                 ));
      |                                                 ~

...

src/Recorder.cpp:1156:57: error: no matching function for call to 'createSubmenuItem(const char [10], RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>)'
 1156 |                         menu->addChild(createSubmenuItem("Bit depth",
      |                                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
 1157 |                                 [=](Menu* menu) {
      |                                 ~~~~~~~~~~~~~~~~~
 1158 |                                         for (int depth : module->getDepths()) {
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1159 |                                                 menu->addChild(createCheckMenuItem(string::f("%d bit", depth),
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1160 |                                                         [=]() {return module->depth == depth;},
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1161 |                                                         [=]() {module->setDepth(depth);}
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1162 |                                                 ));
      |                                                 ~~~
 1163 |                                         }
      |                                         ~
 1164 |                                 }
      |                                 ~
 1165 |                         ));
      |                         ~

...

src/Recorder.cpp:1172:83: error: no matching function for call to 'createCheckMenuItem(std::string, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>::<lambda()>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>::<lambda()>)'
 1172 |                                                 menu->addChild(createCheckMenuItem(string::f("%d kbps", bitRate / 1000),
      |                                                                ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1173 |                                                         [=]() {return module->bitRate == bitRate;},
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1174 |                                                         [=]() {module->setBitRate(bitRate);}
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1175 |                                                 ));
      |                                                 ~

...

src/Recorder.cpp:1169:57: error: no matching function for call to 'createSubmenuItem(const char [9], RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda(rack::ui::Menu*)>)'
 1169 |                         menu->addChild(createSubmenuItem("Bit rate",
      |                                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
 1170 |                                 [=](Menu* menu) {
      |                                 ~~~~~~~~~~~~~~~~~
 1171 |                                         for (int bitRate : module->getBitRates()) {
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1172 |                                                 menu->addChild(createCheckMenuItem(string::f("%d kbps", bitRate / 1000),
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1173 |                                                         [=]() {return module->bitRate == bitRate;},
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1174 |                                                         [=]() {module->setBitRate(bitRate);}
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1175 |                                                 ));
      |                                                 ~~~
 1176 |                                         }
      |                                         ~
 1177 |                                 }
      |                                 ~
 1178 |                         ));
      |                         ~

...

src/Recorder.cpp:1182:51: error: no matching function for call to 'createCheckMenuItem(const char [21], RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda()>, RecorderWidget::appendContextMenu(rack::ui::Menu*)::<lambda()>)'
 1182 |                 menu->addChild(createCheckMenuItem("Primary audio module",
      |                                ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
 1183 |                         [=]() {return module->isPrimary();},
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1184 |                         [=]() {module->setPrimary();}
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1185 |                 ));
      |                 ~
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

1 participant