Using a componentlibrary resource e.g. a port along side my own res it shows no issues or errors for my res but my own components do not show in rack or the module browser. The componentlibrary res shows in both.
this will work ↓ componentlibrary.hpp
addInput(createInput<PJ301MPort>(Vec(13.28f, rackY - 375.f), module, TrimLFO::FM1_INPUT));
this will not ↓ mycomponents.hpp
addOutput(createOutput<BarkOutPort350>(Vec(13.28f, rackY - 52.35f), module, TrimLFO::SIN_OUTPUT));
/** Returns the path of a resource in the plugin's folder. Should only read files from this location. */
std::string plugin(plugin::Plugin *plugin, std::string filename);
Your BarkOutPort350.svg file is in your plugin folder, not in the system or user folder. I also noticed that you’re adding things to the rack namespace above. There should be no reason to ever do that. For plugins, it’s perfectly fine just to define everything in the root namespace.