Can't start a Program because Qt5Cored.dll is missing

Amani picture Amani · Aug 10, 2013 · Viewed 72.1k times · Source

I compiled a simple Qt 5 project successful in Qt Creator. When run from within Qt Creator it works. But when i transferred the executable into another location is produces the following error message on the cmd console;

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

I tried to find Qt5Cored.dll in the Qt5 directory could not find. But strange thing is the program runs from Qt Creator. Any help please. I'm on windows 7 64 bit using Qt5 with MinGW

Answer

huysentruitw picture huysentruitw · Aug 10, 2013

The file Qt5Cored.dll will exist on your system, otherwise it would not work from Qt Creator either. I think it's just Windows search that lets you down. Open a cmd prompt and do a dir c:\Qt5Cored.dll /s

Another note is that those *d.dll are debug DLL's, which means you are distributing a debug version of your application. You might want to build a release version for distribution instead. (In which case you'll need Qt5Core.dll)