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. Hi how to get standalone exe in qt?
Forum Update on Monday, May 27th 2025

Hi how to get standalone exe in qt?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 10.9k Views
  • 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.
  • S Offline
    S Offline
    shakthi
    wrote on last edited by
    #1

    hi, i need standalone exe of my qt application, so that i can transfer to other PCs how to get it??

    i read the procedure. so i tried it : when i ve done first steps:

    1. configure -static -opensource .. i got this error...

    Couldn't update default mkspec! Are files in C:/Qt/2010.05/qt/mkspecs/default readonly..

    am using opensource only.. how to rectify this.. and then i moved to fwd... and tried

    1.mingw32-make clean
    2.qmake -config release
    3.mingw32 make

    i got exe in release folder. but its not standalone exe.. its expecting some dll.. how to perform it??

    pls help me...

    thanks in advance ,
    shakthi

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      You tried follow this guide: http://developer.qt.nokia.com/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc ?

      --
      Vasiliy

      1 Reply Last reply
      0
      • S Offline
        S Offline
        shakthi
        wrote on last edited by
        #3

        thanks vass. but i dint understood last 4 lines. can you explain me??

        Now you have to build the makefiles (but only for the libraries, not for the tools):
        bin\qmake.exe projects.pro QT_BUILD_PARTS=“libs” JAVASCRIPTCORE_JIT=“yes”
        Now you can build Qt:
        mingw32-make.exe

        in where we ve to give ur project location and their files...... and where it will create standalone exe.....

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          Building a static version of the Qt libraries and building a static version of your application (I guess this is what you mean with "standalone exe") are two different things.

          You will have to compile a static version of Qt first (which is described in the link you've got). Your application then has to link against this set of static Qt libraries afterwards. There are tons of threads here at the QDN and the internet on how to do this.

          Be aware that linking against a static version of the Qt libraries usually qualifies for a commercial Qt license unless you do not release your application under the terms of the LGPL or compatible as well.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            And please, do yourself a favor and grab the plain sources from the "download pages":http://qt.nokia.com/downloads/downloads#qt-lib (the source code is linked in the 2nd paragraph). Do not try to recompile the libs from the SDK or any prebuilt binary package!

            http://www.catb.org/~esr/faqs/smart-questions.html

            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