Qt Forum

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

    Solved Building Qt statically

    Installation and Deployment
    3
    4
    527
    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.
    • M
      Magnus21 last edited by Magnus21

      Hey, I have 2 questions about static deployment of an application.

      1. How long does it approximately take to build Qt statically? I know this varies depending on the hardware, but can someone please tell me approximately how much time I have to plan in, if I compile Qt with an i7? (like will it more likely take 1 hour or 1 day) Also is there any amount of hard drive space that needs to be free during building?
      2. I heard that there are some licensing requirements, when you build an app statically? Something like the app has to have a LGPL license (or similar)? If that is true, is it sufficient to use a GPL license?

      Thanks for your answers :)

      1 Reply Last reply Reply Quote 0
      • S
        smdrz last edited by smdrz

        it takes few hours max(1-3), space of 5GB is sufficient and license should be LGPLv3(or GPLv3) if built statically.

        1 Reply Last reply Reply Quote 1
        • M
          Magnus21 last edited by

          Thanks :)

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Hi,

            LGPL license has specific requirements when dealing with static builds. You have to provide the means to rebuild your application against another version of Qt which gets complicated if you'd like to keep your code private.

            If you are using the GPL license and provide your code, then you're good to go.

            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 1
            • First post
              Last post