Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to create exe file
Forum Updated to NodeBB v4.3 + New Features

How to create exe file

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 405 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.
  • D Offline
    D Offline
    divyaraju
    wrote on last edited by
    #1

    Hi,
    I have developed one project in qt now i need to create the exe file.
    Can you plz tell me how to create exe file.I am geting this error plz 0_1563769893440_error.PNG

    1 Reply Last reply
    0
    • Pradeep P NP Offline
      Pradeep P NP Offline
      Pradeep P N
      wrote on last edited by Pradeep P N
      #2

      Hi @divyaraju

      Please refer Qt for Windows - Deployment.

      Example.

      • Open the folder containing EXE file in command prompt of Qt [Example Qt 5.** for Desktop (MinGW 32 bit)]
      • Type below command
        • windeployqt [options] laser.exe

      The above command will copy all the dependent files to the folder, and then you can run the EXE file.

      All the best.

      Pradeep Nimbalkar.
      Upvote the answer(s) that helped you to solve the issue...
      Keep code clean.

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

        You already have an exe, what you lack is deployment. Follow this guide: https://doc.qt.io/qt-5/windows-deployment.html

        In short - your executable is fine, but it need to find Qt libraries at runtime, they need to be copied to where your .exe is.

        Also, btw. it seems you have built in debug mode. If you want to use/ distribute the application, compile in release mode instead.

        (Z(:^

        1 Reply Last reply
        6
        • Pradeep P NP Offline
          Pradeep P NP Offline
          Pradeep P N
          wrote on last edited by Pradeep P N
          #4

          Hi @divyaraju

          You can also generate the single exe package with all libs using
          Inno Setup - Create Windows Installation Package.

          All the best.

          Pradeep Nimbalkar.
          Upvote the answer(s) that helped you to solve the issue...
          Keep code clean.

          1 Reply Last reply
          1

          • Login

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