-
Notifications
You must be signed in to change notification settings - Fork 59
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
PluginManager::Manager::load(): cannot load plugin AssimpImporter #63
Comments
I'm very sorry to make a mistake for this. I forgot to compile to metadata and copy the same path as AssimpImporter.so |
Hi, sorry -- I had a reply written but forgot to send it 🙈 Usage of plugins in combination with CMake subprojects is currently everything but ideal. Fixing this is on my short-term roadmap, but not quite there yet. I just updated Corrade to make this error clearer in mosra/corrade@438fd97 -- now it will warn about the actual error instead of ending up with a cryptic message like this. The ideal fix for this is to not require random conf files and instead have the metadata self-contained in the |
to get the shared object dependencies, here's some code snippet base on ELF:
|
Problem is, the plugin is not explicitly linked to any of its plugin dependencies at compile-time, so the ELF file can't know what Contrary to plugin dependencies, for library dependencies (e.g. the AssimpImporter depending on |
What's the meaning of |
What mosra said is that plugins aren't linked to other plugins. Only to the libraries they directly depend on. |
thank you guys. |
Just FYI: since mosra/corrade@73d3f31, mosra/magnum@3a243a0 and dff98d8, plugins are put in the build directory into a common location, which makes CMake subprojects with default config (i.e., dynamic plugins) "just work". This change should also improve the experience for Windows users as all DLLs are placed next to the executables. |
PluginManager::Manager::load(): cannot load plugin AssimpImporter from "/home/obirt/Code/Render/VIS-magnum/cmake-build-debug/src/magnum-d/importers/AssimpImporter.so": /home/obirt/Code/Render/VIS-magnum/cmake-build-debug/src/magnum-d/importers/AssimpImporter.so: undefined symbol: _ZN6Magnum5Trade16AnyImageImporterC1ERN7Corrade13PluginManager7ManagerINS0_16AbstractImporterEEE
The text was updated successfully, but these errors were encountered: