Manifest contains module MyModule but it is not defined in plugin

I am trying to follow the Plugin Development Tutorial at: VCV Manual - Plugin Development Tutorial.

I followed all the steps and installed the plug-in using make install. But when I open Rack and check the log I see this error:

[0.091 info src/plugin.cpp:128 loadPlugin] Loading plugin from .../Rack2/plugins/test_3 [0.296 warn src/plugin.cpp:194 loadPlugin] Could not load plugin .../Rack2/plugins/test_3: Manifest contains module MyModule but it is not defined in plugin

Is this a common issue with a known fix ? I am working on a Mac with arm-64 architecture.

Possibly missing an addModel() call in plugin.cpp? Something like p->addModel(modelMyModule);

Have you declared the the module (model) in your plugin.hpp file?

Make sure the slug in your plugin.json matches that specified in your module code - beware it is case sensitive:

plugin.json


  "modules": [
		{
		  "slug": "MyModule",
		  "name": "My Funky Module",
		  "description": "Does some great stuff",
		  "tags": [
			"Appropriate Tag"
		  ]
		},

MyModule.cpp

Model *modelMyModule = createModel<MyModule, MyModuleWidget>("MyModule");

Also make sure, as tonecarver mentioned, that you are adding the model in your plugin code.

void init(Plugin *p) {
	pluginInstance = p;

	p->addModel(modelMyModule);
}

Thanks for all the help. I hadn’t changed the commented out parts in the plugin code. So module wasn’t added and plug-in wasn’t declared.

It’s working now. Thanks