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. QT 5.1.0 has supported static compile , How to ?
QtWS25 Last Chance

QT 5.1.0 has supported static compile , How to ?

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

    From wiki we know
    "Support for static Qt builds making it possible to address those use cases that cannot use dynamic linking"

    I have tired adding CONFIG += static , but not gonna work .

    How to compile code staticaly without compile the whole qt project ?


    before Qt5.1.0 we all can compile the code statically after build the qt project
    but this time ,qt 5.1.0 wiki said new features include “Support for static Qt”

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

      Hi and welcome to devnet,

      If you want your Qt application to be compiled statically against the Qt libs, you have to first rebuild Qt.

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

        hi

        before Qt5.1.0 we all can compile the code statically after build the qt project

        but this time ,qt 5.1.0 wiki said new features include "Support for static Qt"

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

          I found that line is a bit mysterious.

          You might try to get some more information about that on the mailing list or the Qt IRC channel (that's were the Qt maintainer/developer can be found, the forum is more user oriented)

          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
          • V Offline
            V Offline
            vvilp
            wrote on last edited by
            #5

            [quote author="SGaist" date="1372545056"]I found that line is a bit mysterious.

            You might try to get some more information about that on the mailing list or the Qt IRC channel (that's were the Qt maintainer/developer can be found, the forum is more user oriented)[/quote]

            Thanks for your help.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sahumada
              wrote on last edited by
              #6

              to me that line means that you can build Qt statically yourself by adding "-static" as a configure option

              Sergio Ahumada

              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