Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Plugin loading fails on Windows 7

Plugin loading fails on Windows 7

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 1.5k 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
    junitw
    wrote on last edited by
    #1

    Hi all,

    I am developing application which uses Qt plugin architecture. Main application loads my other Qt plugins by using QPluginLoader.

    Normally application works fine in Windows XP, Vista and 7 64bit. But now I have faced one Windows 7 64bit PC which constantly fails on plugin loading.

    QPluginLoader returns this kind of error message:
    @The plugin 'C:/My projects/TestApplication/Plugins/GUI/MainGUI.dll' uses incompatible Qt library. (3.7.0) [release]@

    I am using Qt version 4.8.1 and my installer is delivering Visual Studio 2008 redistributable packet. User who tries to execute this application belongs to Administrator usergroup.

    I have searched Qt dlls from this computer E.g. if some other application is delivering older versions from Qt dlls but there isn't any. I have also added my application to be the first one in PATH environment variable.

    I have also tried to use depwalker to figure out if there is missing some depended dlls but it looks ok.

    Weird thing here is that if I run this application as a Windows Service and by using SYSTEM user it works fine. But again if I try to run this service under local user account it fails like before.

    Have anyone faced this kind of issues before? Any help and ideas would be appreciated :-)

    BR
    Jukka

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      Well, the message is quite explicit. It looks like you are trying to load a plugin which was compiled against a 3.7.0 version of Qt. Could it be in some path only accessible by the user account ?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        junitw
        wrote on last edited by
        #3

        I have double checked that there isn't any other qt dlls present.

        If I clear qt pluging cache (HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults) application is able to load plugins but they are behaving weirdly. For example QDateTime::currentDateTime() returns datetime with year 3000 something and also other native Qt classes are behaving badly.

        After this execution round it seems that loading is marked to be bad and QPluginLoader will start returning that specific error message and will not load them again before clearing qt plugin cache again.

        Is that Qt version 3.7.0 actually even valid for Windows platform?

        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