Reputation: 190
I compiled a quick Qt5 project successfully, and managed to open it with Run option in the Qt Creator.
But when I tried to run the executable file, located in the debug folder in my project,
it showed me this error:
The program can't start because Qt5Qmld.dll is missing from your computer.
Try reinstalling the program to fix the problem...
I have searched and searched, but found nothing on google.
I found similar problems, but with different dlls, but not this one.
How do I fix this problem?
Upvotes: 4
Views: 2141
Reputation: 7173
First of all, JKSH gave you good advice -- if you want distribute your program (pr even just use it on another computer) you need to prepare Release build instead Debug build.
As for me, the simplest method to solve your problem is to use program Dependency Walker.
exe
-file by Dependency Walker and you can see what libs you missed. bin
folder of your Qt installation and find all dll
s Dependency Walker pointed you.dll
s got on (2) into directory with exe
file of your application.P.S. If you use MinGW you also need to copy next dll
s: libstdc++*.dll
, libgcc_*.dll
. Copy all dll
s as described above. Just see what Dependency Walker will say you.
Upvotes: 1