| 1 | [[PageOutline(1-2,Contents,inline)]] |
| 2 | |
| 3 | = FAQ -- common run-time errors = |
| 4 | |
| 5 | == Plugin loader failure == |
| 6 | === Error message === |
| 7 | {{{ |
| 8 | #!div style="color: red" |
| 9 | 000038 [2014-02-28 15:50:58.750509] <error> cannot load plugin '!PluginName.dll'. Plugin loader returned |
| 10 | error: Cannot load library !.//PluginName.dll: ... |
| 11 | }}} |
| 12 | |
| 13 | === Solution === |
| 14 | |
| 15 | 1. Check if filename '!PluginName.dll' is correct in your XML file. |
| 16 | X. Check if the correct version (release/debug) is used, see plugins ''postfix'' attribute in the XML. |
| 17 | X. Check if this file exists in the same directory as the executable. |
| 18 | X. Check if this component CMakeLists.txt uses ```create_export``` and ```pacpus_plugin``` macros and that it adds generated files to the source file list, e.g.: |
| 19 | {{{ |
| 20 | create_export(EXPORT_HDR ${PROJECT_NAME}) |
| 21 | pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME}) |
| 22 | |
| 23 | set(SRCS |
| 24 | ${PLUGIN_CPP} |
| 25 | ... |
| 26 | ) |
| 27 | }}} |
| 28 | X. (Windows specific) Check if the .dll file exports any symbols (using e.g. [[UsefulTools|DependencyWalker]]). |
| 29 | X. ... TO BE FOUND |