Solution: I used helper.py in the /Rack directory instead of the plugin directory, so the plugin.hpp file didn’t know where to look to find <rack.hpp>.
So I’ve got Rack built from source on a Linux computer and the Fundamental modules are working as they should. I created the MyPlugin plugin with helper.py, made a suitable .svg file in Inkscape, and edited the src/MyModule.cpp file as instructed.
When I enter make, it spits out tons of errors, starting with:
It says “‘processArgs’ does not name a type”, and “‘Model’ does not name a type”.
Then there are a ton of names and functions and things that are “not included in this scope”.
All I can think is that there must be a missing header file somewhere, but everything looks like it’s been included. MyModule.cpp includes “plugin.hpp”, which in turn includes <rack.hpp>, which includes all the other header files I should need.
Thank you in advance for any insight you can provide!
I’m not sure this is relevant, but MyModule.cpp is currently located in the main /Rack directory, which seems a little weird to me. Here’s my plugin.hpp file:
#pragma once
#include <rack.hpp>
using namespace rack;
// Declare the Plugin, defined in plugin.cpp
extern Plugin* pluginInstance;
extern Model* modelMyModule;
// Declare each Model, defined in each module source file
// extern Model* modelMyModule;