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. Qt 5.6 and 5.7: difference in handling plugins
QtWS25 Last Chance

Qt 5.6 and 5.7: difference in handling plugins

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.2k 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.
  • J Offline
    J Offline
    janK
    wrote on last edited by
    #1

    Is there a difference in handling plugins in 5.7 compared to previous Qt versions? My program that uses plugins and ran without problems for 4 years, complains when loading my own plugins stating Plugin verification data mismatch since upgraded to 5.7.
    All sources recompiled several times, recompilation seems fine, pluginloader complains with the message Plugin verification data mismatch
    Suggestions?
    janK

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Check that you are indeed loading the plugins you built.

      You can get more details about what is happening defining the QT_DEBUG_PLUGINS environnement variable.

      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
      • J Offline
        J Offline
        janK
        wrote on last edited by
        #3

        Thanks for the hint. Setting QT_DEBUG_PLUGINS as env variable generates a lot of output on program start up. However, there is no additional output when the QPluginLoader is executed with - as parameter - the filename of the plugin. I cross compiled the software - using mingw64-32 - and cross compiling the same set of sources gives windows executable that run perfectly. The windows version of Qt is pre-5.7.
        J

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What exact version are you running and is failing ?
          On what OS ?
          With which compiler ?

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

          J 1 Reply Last reply
          0
          • SGaistS SGaist

            What exact version are you running and is failing ?
            On what OS ?
            With which compiler ?

            J Offline
            J Offline
            janK
            wrote on last edited by
            #5

            @SGaist It took a while, but I found that omitting the test on the version of Qt (see below) works fine. Strange, since the test itself (I tested it) yields true. I run Fedora 25 gcc version 6.2.1 20160916 (Red Hat 6.2.1-2) (GCC) and Qt 5.7. So I can circumvent the error, but I cannot explain it. (The version test is there to allow compilation with Qt4 and Qt5)
            JanK
            The header of the class in the plugin reads
            class remote: public rigInterface, public Ui_Form {
            Q_OBJECT
            Q_INTERFACES (rigInterface)
            #if QT_VERSION >= 0x050000
            Q_PLUGIN_METADATA (IID "remote")
            #endif

            1 Reply Last reply
            1
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Can you re-produce that with a minimal code sample ?

              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

              • Login

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