Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    4
    5
    20341
    Loading More Posts
    • 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
      nani1169 last edited by

      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 V 1 Reply Last reply Reply Quote -1
      • Venkatesh V
        Venkatesh V @nani1169 last edited by

        @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 Reply Quote 1
        • N
          nani1169 last edited by

          OK thank you..i will try

          1 Reply Last reply Reply Quote 0
          • A
            Alain38 0 last edited by

            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 Reply Quote 2
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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 Reply Quote 2
              • First post
                Last post