Results 1 to 5 of 5

Thread: Loading plugin and "Incompatible Qt library" issue.

  1. #1
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Loading plugin and "Incompatible Qt library" issue.

    My application attempts to load several plugins. It works just fine in debug mode, loading all of them. In the release mode for every plugin that I am loading with QPluginLoader::load method it returns the error:

    The plugin <full path to plugin> uses incompatible Qt library.(4.6.2) [release]

    Indeed, I am using Qt 4.6.2 and there are no other versions installed. Plugin directory does not have any Qt core dlls and application directory has all QtCore4 etc dlls.

    Question - how to find out what is wrong in "release" mode?

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Loading plugin and "Incompatible Qt library" issue.

    Is your release application really linking to release libraries? Check it with Dependency Walker.

  3. #3
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Loading plugin and "Incompatible Qt library" issue.

    that is the first thing I did. All my plugins do not have external libs other then Qt and boost libs. Typical linker settings look like:

    additional library directories:
    "$(QTDIR)\lib";"$(BOOST)\stage\lib"

    additional dependencies:
    qtmain.lib QtCore4.lib QtSql4.lib

    Depends.exe , when opening the plugin, does not see Qt-related dlls. It's understandable, because I am keeping them in the application directory. Directory structure is: <applicationdir>\Components, where <application dir> hosts the application itself and "Components" carry all plugins.

  4. #4
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Loading plugin and "Incompatible Qt library" issue.

    Sorry, I missed your point. You were asking about the release app, not release plugin.

    Additional dependencies there are:
    qtmain.lib QtCore4.lib QtGui4.lib QtSql4.lib QtScript4.lib QtScriptTools4.lib qwt5.lib TickDataStorage.lib. The last lib, TickDataStorage.lib, is a release-mode lib with no additional dependencies

    Depends.exe does not show anything in respect to the host application...

  5. #5
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Loading plugin and "Incompatible Qt library" issue.

    Hi TorAn,
    did you solve this issue?

    because i still get this error?

Similar Threads

  1. Replies: 7
    Last Post: 21st January 2010, 12:45
  2. Replies: 2
    Last Post: 7th September 2009, 21:13
  3. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  4. Replies: 2
    Last Post: 25th August 2006, 11:35
  5. Problems with "jpeg" library (I guess)
    By SkripT in forum Qt Programming
    Replies: 8
    Last Post: 24th January 2006, 23:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.