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. Qt Quick static compilation?
Forum Updated to NodeBB v4.3 + New Features

Qt Quick static compilation?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 259 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.
  • N Offline
    N Offline
    Nan Feng
    wrote on last edited by
    #1

    Does Qt Quick program support statically compiled single file .exe program? In addition, does the statically compiled program of QtWidget program and Qt Quick program do not rely on any external libraries under the window platform (there is no prerequisite for calling external libraries inside the program)?

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

      Hi
      Qt can be statically compiled including Qt Quick.
      However, this requires a commercial license if you plan on distributing the
      exe and you want your app to be closed source.

      Yes a compiled Qt has all its Qt DLLs compiled into the exe so nothing else
      is required.

      https://decovar.dev/blog/2018/02/17/build-qt-statically/

      Do note is not always easy to get it all working statically. It requires a good understanding of the toolchain. also, make a huge cup of tea/coffee as unless you have a powerful cpu it can take hours to compile. :) Remember to use the -j option to use all cores.

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

        Hi,

        @mrjj said in Qt Quick static compilation?:

        However, this requires a commercial license if you plan on distributing the
        exe and you want your app to be closed source.

        It's a bit more complex than that with regards to the LGPL. The program user shall be able to relink to a different version of Qt they want. This implies providing the exact build artifacts of the executable which is way more complicated than using an installer framework to pack everything needed.

        Hence the usual way is to use the dynamic build if not having a commercial licence.

        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
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved