Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QT 5.1.0 has supported static compile , How to ?

    Installation and Deployment
    3
    6
    2620
    Loading More Posts
    • 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
      vvilp last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • V
          vvilp last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • V
              vvilp last edited by

              [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 Reply Quote 0
              • S
                sahumada last edited by

                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 Reply Quote 0
                • First post
                  Last post