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. Program throws issue "Failed to extract plugin meta data from .dll"
Forum Updated to NodeBB v4.3 + New Features

Program throws issue "Failed to extract plugin meta data from .dll"

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    patricxian
    wrote on 16 Aug 2021, 05:42 last edited by
    #1

    hi, when I use visual studio to remote debug on windows 10, the program throws the issue "Failed to extract plugin meta data from .dll". These dll are created based on the application. The Qt version is 5.12.11.
    The head file of plugin is below:

    class pGen12Control : public InterfaceControl
    {
        Q_OBJECT
    #if QT_VERSION >= 0x050000
        Q_PLUGIN_METADATA(IID InterfaceControl_iid FILE "pGen12Control.json")
    #endif // QT_VERSION >= 0x050000
        Q_INTERFACES(InterfaceControl)
        FORCE_NOT_ABSTRACT(pGen12Control)
    

    And the head file of "InterfaceControl" is below:

    class InterfaceControl : public QObject, public InterfaceGlobal
    {
    public:
        InterfaceControl() : InterfaceGlobal(LIB_ID_CONTROL_UNKNOWN)
        {
        }
        InterfaceControl(quint16 plugID) : InterfaceGlobal(plugID)
        {
        }
        virtual ~InterfaceControl() {}
        virtual InterfaceControl * newUniqueInstance() const = 0;
    
        //virtual QString echo(const QString &message) = 0; // Example Function
    signals:
        virtual void sendBusMessage(const so_Message & payload) = 0;
    
        private slots:
        virtual void recvBusMessage(const so_Message & payload) = 0;
    };
    
    #define InterfaceControl_iid "hil.tooling.control"
    
    Q_DECLARE_INTERFACE(InterfaceControl, InterfaceControl_iid)
    

    The call code to pluginloader function is below:

    QString filepath = pluginsDir.absoluteFilePath(fileName);
    QPluginLoader *pluginLoader = new QPluginLoader(filepath);
    logging::log(logging::log_level::INFO, pluginLoader->errorString());
    

    The value of "fileName" and "filepath" are right.

    Appreciate your advice.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Aug 2021, 20:18 last edited by
      #2

      Hi and welcome to devnet,

      @patricxian said in Program throws issue "Failed to extract plugin meta data from .dll":

      These dll are created based on the application.

      What do you mean by that ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply 18 Aug 2021, 01:40
      0
      • S SGaist
        16 Aug 2021, 20:18

        Hi and welcome to devnet,

        @patricxian said in Program throws issue "Failed to extract plugin meta data from .dll":

        These dll are created based on the application.

        What do you mean by that ?

        P Offline
        P Offline
        patricxian
        wrote on 18 Aug 2021, 01:40 last edited by
        #3

        @SGaist said in Program throws issue "Failed to extract plugin meta data from .dll":

        What do you mean by that ?

        The plugin is created by myself, not belong to Qt library.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          patricxian
          wrote on 18 Aug 2021, 05:41 last edited by
          #4

          I solve the problem. The issue is caused by the dll version.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 18 Aug 2021, 20:46 last edited by
            #5

            Your dll version ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            1/5

            16 Aug 2021, 05:42

            • Login

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