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. [Solved] How can I compile my app statically?
Forum Updated to NodeBB v4.3 + New Features

[Solved] How can I compile my app statically?

Scheduled Pinned Locked Moved General and Desktop
qt4.8.5compilestatic
3 Posts 2 Posters 1.5k Views 2 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.
  • R Offline
    R Offline
    roseicollis
    wrote on last edited by roseicollis
    #1

    Hi,

    I have an App compiled normally (dinamically) in linux and I want to statically compile it once, to see the diference of the MB it needs but all I found is how to compile Qt statically. The question is, do I have to compile Qt statically to be able to compile my app statically or is there another way easier?

    I tried putting this line in the .pro but nothing changed: CONFIG+=static and CONFIG+=staticlib

    Thank you so much

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

      Hi,

      If you want a full static application then your must also compile all it's dependencies statically so yes you also have to built Qt statically. However depending on what part of Qt you are using, you can also just build the needed modules

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

        @SGaist Ok, thank you so much!

        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