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 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.

    Venkatesh VV 1 Reply Last reply
    -1
    • N nani1169

      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.

      Venkatesh VV Offline
      Venkatesh VV Offline
      Venkatesh V
      wrote on 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 last edited by
        #3

        OK thank you..i will try

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Alain38 0
          wrote on 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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

            • Login

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