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. Linking my app dynamically against statically built QT?

Linking my app dynamically against statically built QT?

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 4.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.
  • B Offline
    B Offline
    butters
    wrote on last edited by
    #1

    Hi,
    I built my QT statically by configuring as follows (platform is Win32 bit VS2008)
    configure -static -no-sql-sqlite -no-qt3support -no-opengl -platform win32-msvc2008
    and the did nmake.

    Now I want my app to link dynamically against the statically built QT.
    I would really appreciate your help in knowing how to do it?

    Note: My app will also load some QT static plugins by using Q_IMPORT_PLUGIN, Is it possible with dynamically linked app against statically linked QT.

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      What do you mean by dynamically link against static library?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        butters
        wrote on last edited by
        #3

        I mean I want to link my app dynamically against QT. (QT was statically linked)
        Is it even possible here?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          I afraid no. You should have two different qt instances (one dynamically linked and one statically linked).

          1 Reply Last reply
          0
          • B Offline
            B Offline
            butters
            wrote on last edited by
            #5

            Thanks Denis.
            I have one more question:
            Lets say I build my QT dynamic linked and then link my app against it.
            Can my app still use some static linked plugins from QT by doing Q_IMPORT_PLUGIN or thats also not possible.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              CuteiOS
              wrote on last edited by
              #6

              [quote author="butters" date="1289581791"]
              Lets say I build my QT dynamic linked and then link my app against it.
              Can my app still use some static linked plugins from QT by doing Q_IMPORT_PLUGIN or thats also not possible.
              [/quote]

              It's possible. Just make sure you put a CONFIG += static into the .pro file for the plugin...

              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