Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ DLL QT
'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.
Posted 11-Jul-13 1:38am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Try the following:
  1. Download and install Qt on your development machine. Qt can be downloaded from http://qt-project.org/downloads[^]
  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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 245
1 Kamal Rocks 184
2 Sergey Alexandrovich Kryukov 175
3 BillWoodruff 173
4 PIEBALDconsult 160
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 3 Sep 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100