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. Link with custom qt static plugins

Link with custom qt static plugins

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

    Hi,

    I have an application with Qt plugins I have created ... It works fine but now I wants to have static Qt plugins instead to package the plugins with the exe ...
    I have compiled my plugins with CONFIG+=STATIC in the pro files,
    add the plugins lib in the application pro files but when I add Q_IMPORT_PLUGIN(myplug) in the cpp, I have the following link error :
    error LNK2019 : unresolved symbol : "class QObject * __cdecl qt_plugin_instance_myplug(void)

    I use a lgpl Qt shared version on Windows Seven msvc with QT.4.8.3
    all my plugins use have dependency on externals dll (not related to qt) .. I don't wants to add theses dll in the main application .. I suppose using a static plugin will allow that ?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qtnext
      wrote on last edited by
      #2

      sorry ... case sensitive matching name error ... forgot this post !

      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