Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to make static EXE with commercial license?
Forum Updated to NodeBB v4.3 + New Features

How to make static EXE with commercial license?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 751 Views 1 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.
  • P Offline
    P Offline
    pmh4514
    wrote on last edited by
    #1

    I purchased the commercial license, and installed Qt 5.3.1 on Win7 with Visual Studio 2012 as the compiler.

    I created a very simple test application that is just one Qt form with a text input box. It doesn't even do anything. This of course runs just fine.

    I added CONFIG += static to my .PRO file, set it to release build, ran "clean", then qmake and then rebuild all.

    I then located the resulting EXE in the build folder in Windows (outside Qt) and ran it, but was shown an error indicating missing DLLs (QtWidgets.dll) and of course the EXE was very small (30kb)

    How, with my new commercial license, can I build a release EXE that does not have any DLL dependencies (all statically linked), so that it can be deployed as a standalone EXE?

    Thanks!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      As a commercial customer, you can ask the Qt Company / Digia and get professional support.

      Here is what I think:

      You need a static build of Qt itself

      Configure your build chain (Kit) so that this static build is used

      Then use both CONFIG += static and CONFIG += staticlib

      Compile

      It may work, although I'm not sure about the platform plugin

      (Z(:^

      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