Help first compiling modules on Mac

What errors are you getting?

@xandra-max here a copy

Paste code directly in a reply surrounded with ``` a .rtf file may not copy formatting correctly.

Macmini-2:Fundamental yanledean$ RACK_DIR=~/Desktop/Rack-SDK make
c++ -std=c++11 -stdlib=libc++  -Idep/include -fPIC -I/Users/yanledean/Desktop/Rack-SDK/include -I/Users/yanledean/Desktop/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7  -c -o build/src/Noise.cpp.o src/Noise.cpp
src/Noise.cpp:92:7: error: no template named 'IIRFilter' in namespace 'rack::dsp'; did you mean 'TRCFilter'?
        dsp::IIRFilter<2, 2> redFilter;
        ~~~~~^~~~~~~~~
             TRCFilter
/Users/yanledean/Desktop/Rack-SDK/include/dsp/filter.hpp:14:8: note: 'TRCFilter' declared here
struct TRCFilter {
       ^
src/Noise.cpp:92:17: error: template argument for template type parameter must be a type
        dsp::IIRFilter<2, 2> redFilter;
                       ^
/Users/yanledean/Desktop/Rack-SDK/include/dsp/filter.hpp:13:20: note: template parameter is declared here
template <typename T = float>
                   ^
src/Noise.cpp:101:3: error: cannot initialize object parameter of type 'rack::engine::Module' with an expression of type 'Noise'
                config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
                ^~~~~~
src/Noise.cpp:167:13: error: cannot initialize a parameter of type 'engine::Module *' with an lvalue of type 'Noise *'
                setModule(module);
                          ^~~~~~
/Users/yanledean/Desktop/Rack-SDK/include/app/ModuleWidget.hpp:49:33: note: passing argument to parameter 'module' here
        void setModule(engine::Module* module);
                                       ^
src/Noise.cpp:175:13: error: no matching function for call to 'createOutputCentered'
                addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(7.621, 21.727)), module, Noise::WHITE_OUTPUT));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:105:14: note: candidate function [with TPortWidget = rack::componentlibrary::PJ301MPort] not viable: no known conversion
      from 'Noise *' to 'engine::Module *' for 2nd argument
TPortWidget* createOutputCentered(math::Vec pos, engine::Module* module, int outputId) {
             ^
src/Noise.cpp:176:13: error: no matching function for call to 'createOutputCentered'
                addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(7.621, 36.726)), module, Noise::PINK_OUTPUT));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:105:14: note: candidate function [with TPortWidget = rack::componentlibrary::PJ301MPort] not viable: no known conversion
      from 'Noise *' to 'engine::Module *' for 2nd argument
TPortWidget* createOutputCentered(math::Vec pos, engine::Module* module, int outputId) {
             ^
src/Noise.cpp:177:13: error: no matching function for call to 'createOutputCentered'
                addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(7.621, 51.727)), module, Noise::RED_OUTPUT));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:105:14: note: candidate function [with TPortWidget = rack::componentlibrary::PJ301MPort] not viable: no known conversion
      from 'Noise *' to 'engine::Module *' for 2nd argument
TPortWidget* createOutputCentered(math::Vec pos, engine::Module* module, int outputId) {
             ^
src/Noise.cpp:178:13: error: no matching function for call to 'createOutputCentered'
                addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(7.621, 66.727)), module, Noise::VIOLET_OUTPUT));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:105:14: note: candidate function [with TPortWidget = rack::componentlibrary::PJ301MPort] not viable: no known conversion
      from 'Noise *' to 'engine::Module *' for 2nd argument
TPortWidget* createOutputCentered(math::Vec pos, engine::Module* module, int outputId) {
             ^
src/Noise.cpp:179:13: error: no matching function for call to 'createOutputCentered'
                addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(7.621, 81.727)), module, Noise::BLUE_OUTPUT));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:105:14: note: candidate function [with TPortWidget = rack::componentlibrary::PJ301MPort] not viable: no known conversion
      from 'Noise *' to 'engine::Module *' for 2nd argument
TPortWidget* createOutputCentered(math::Vec pos, engine::Module* module, int outputId) {
             ^
src/Noise.cpp:180:13: error: no matching function for call to 'createOutputCentered'
                addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(7.621, 96.727)), module, Noise::GRAY_OUTPUT));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:105:14: note: candidate function [with TPortWidget = rack::componentlibrary::PJ301MPort] not viable: no known conversion
      from 'Noise *' to 'engine::Module *' for 2nd argument
TPortWidget* createOutputCentered(math::Vec pos, engine::Module* module, int outputId) {
             ^
src/Noise.cpp:181:13: error: no matching function for call to 'createOutputCentered'
                addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(7.621, 111.727)), module, Noise::BLACK_OUTPUT));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:105:14: note: candidate function [with TPortWidget = rack::componentlibrary::PJ301MPort] not viable: no known conversion
      from 'Noise *' to 'engine::Module *' for 2nd argument
TPortWidget* createOutputCentered(math::Vec pos, engine::Module* module, int outputId) {
             ^
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:23:20: error: cannot initialize a variable of type 'engine::Module *' with an rvalue of type 'Noise *'
                        engine::Module* m = new TModule;
                                        ^   ~~~
/Users/yanledean/Desktop/Rack-SDK/include/helpers.hpp:21:9: note: in instantiation of member function 'rack::createModel(const std::string &)::TModel::createModule' requested
      here
        struct TModel : plugin::Model {
               ^
src/Noise.cpp:186:21: note: in instantiation of function template specialization 'rack::createModel<Noise, NoiseWidget>' requested here
Model* modelNoise = createModel<Noise, NoiseWidget>("Noise");
                    ^
12 errors generated.
make: *** [build/src/Noise.cpp.o] Error 1

For info, it’s fixed now, my rack sdk was not the good one Thanks to all that help here and on French Facebook group !

3 Likes