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. Does anyone know how to generate .exe file for Qt-creator based application.

Does anyone know how to generate .exe file for Qt-creator based application.

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 27.3k 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.
  • N Offline
    N Offline
    nani1169
    wrote on 25 Apr 2018, 09:18 last edited by
    #1

    Does anyone know how to generate .exe file for Qt-creator based application?
    we have created one qt application and we want to generate .exe file for that. So please
    let me know how to resolve this issue.

    V 1 Reply Last reply 25 Apr 2018, 09:35
    -1
    • N nani1169
      25 Apr 2018, 09:18

      Does anyone know how to generate .exe file for Qt-creator based application?
      we have created one qt application and we want to generate .exe file for that. So please
      let me know how to resolve this issue.

      V Offline
      V Offline
      Venkatesh V
      wrote on 25 Apr 2018, 09:35 last edited by
      #2

      @nani1169

      Hello,
      Once you build your project, in your build folder your exe will get generate. take that exe and keep it in separate folder and copy the required Qt libraries to launch the executable. to know which are all the libraries are required just double click on the exe it will popup a message with needed library name copy that library from Qt installed bin folder and keep those libraries along with the executable .

      1 Reply Last reply
      1
      • N Offline
        N Offline
        nani1169
        wrote on 25 Apr 2018, 09:37 last edited by
        #3

        OK thank you..i will try

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Alain38 0
          wrote on 25 Apr 2018, 09:39 last edited by
          #4

          On the left pan select "Release" by clicking on the "project" (computer) icon. Then use the "compile" menu to compile it. This will generate what you want. The only tricky thing is the destination. If you did no change, the result directory is at the same levelt than the project directory. I.e. supposes that you have created a directory Toto containing your project files. After the compilation you will also a directory called build-Toto-Desktop_Qt_<version>_... at the same level than Toto, containing the exe file.

          1 Reply Last reply
          2
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 25 Apr 2018, 09:49 last edited by
            #5

            Hi,

            For the dependency gathering, it's way simpler to use windeployqt.

            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

            3/5

            25 Apr 2018, 09:37

            • Login

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