Click here to Skip to main content
14,882,317 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
'm trying to run my application(.exe) directly from debug folder by copying it on another system,but it is showing the following errors:

The program can't start because Qt5 Widgets.dll is missing from your computer. Try reinstalling the program to fix this problem.

I searches for the given .dll but couldn't find it anywhere.On every .dll download sites no such file exists is showing. Any Idea or suggestions.

Create an Setup and Deployment project on your development machine - that should automatically include and register any necessary DLL files (which are probably on your dev machine anyway, but may need configuration on the target.

Just copying the debug folder is a poor idea anyway, as debug EXEs contain information you may not want to distribute!
Try the following:

  1. Download and install Qt on your development machine. Qt can be downloaded from[^]
  2. Copy the required DLLs from <QtDir>/bin on your development machine to the installation folder on the client machine (the folder where the executable is stored)
  3. If the executable is build using a Microsoft compiler you might also need to install the redistributable files for that compiler on the client machine (run vcredist_x86.exe for 32-bit Windows or vcredist_x64.exe for 64-bit Windows)
  4. If the executable is build using the MinGW compiler you must install MinGW on your development machine (can be done using the Qt online installers), then you copy the required DLLs from <MinGWDir>/bin to the installation folder on the client machine.

Note: When distributing executables, it is recommended to distribute the release version and not the debug version.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900