QT 5.1.0 has supported static compile , How to ?



  • 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”


  • Lifetime Qt Champion

    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.



  • 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"


  • Lifetime Qt Champion

    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 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.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.