Unsolved How to create exe file
-
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 -
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.
- Open the folder containing
-
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.
-
Hi @divyaraju
You can also generate the single
exe
package with all libs using
Inno Setup - Create Windows Installation Package.All the best.