wiki:FAQ_runtime

Version 1 (modified by Marek Kurdej, 10 years ago) ( diff )

Added: cannot load plugin

Contents

  1. FAQ -- common run-time errors
    1. Plugin loader failure

FAQ -- common run-time errors

Plugin loader failure

Error message

000038 [2014-02-28 15:50:58.750509] <error> cannot load plugin 'PluginName.dll'. Plugin loader returned error: Cannot load library .//PluginName.dll: ...

Solution

  1. Check if filename 'PluginName.dll' is correct in your XML file.
  2. Check if the correct version (release/debug) is used, see plugins postfix attribute in the XML.
  3. Check if this file exists in the same directory as the executable.
  4. 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.:
    create_export(EXPORT_HDR ${PROJECT_NAME})
    pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME})
    
    set(SRCS
        ${PLUGIN_CPP}
        ...
    )
    
  5. (Windows specific) Check if the .dll file exports any symbols (using e.g. DependencyWalker).
  6. ... TO BE FOUND

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.