Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPluginLoader Plugin verification data mismatch
Qt 6.11 is out! See what's new in the release blog

QPluginLoader Plugin verification data mismatch

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 958 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    I can succesfully load this plugin:

    ...
    Q_PLUGIN_METADATA(IID "com.my.api")
    ...
    

    I can't load this plugin:

    ...
    Q_PLUGIN_METADATA(IID "com.my.api" FILE "api.json")
    ...
    

    api.json contains:

    {
        "name" :            "api",
        "version" :         "1.0"
    }
    

    This code then prints Plugin verification data mismatch error:

        QPluginLoader loader("api.dll");
        qDebug() << loader.errorString(); // Plugin verification data mismatch
    

    Why and how to append my JSON data to the plugin?

    1 Reply Last reply
    0
    • Ni.SumiN Offline
      Ni.SumiN Offline
      Ni.Sumi
      wrote on last edited by Ni.Sumi
      #2

      Hi @Martin ,

      May be silly , Did you put the following line in the main export class of the plugin:

      Q_PLUGIN_METADATA(IID "com.my.api" FILE "api.json"

      Possibly check :
      Version of Qt version, the same (major and minor)version but a different Qt configuration?
      Name mangling difference by compiler.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved