I want to give a friend of mine a release build of a little project. It works perfectly fine when started from inside qtcreator, but doesn\'t open when double-clicked on the
What compiler are you using? You need to bundle the runtime DLL files for the compiler or have the user install the Microsoft Visual C++ Redistributable Package if you're using MSVC++.
Solved it! All I had to do was to download "libEGL.dll" and put it in the directory where my exe file is located. Of course all the other .dll files from qt were needed, too. But these were explicitly mentioned in an error message. But for the "libEGL.dll" there is not even an error message. The .dll files that were listed in "dependency walker" can be ignored. For my problem this tool didn't really help. It didn't list the libEGL.dll but listed other .dll files which are in fact unused.
Since you are talking about Qt5, make sure you have a platforms
directory with at least qminimal.dll
in it location in the directory of your program.exe file. They are part of the new changes made to Qt. (Possibly qwindows.dll
as well).
Additionally, make sure you include the appropriate msvcr*.dll
dlls if you do no compile with it statically linked. Check with dependency walker.
/myProgram.exe
/Qt5Gui.dll
/Qt5Core.dll
/ .... (other DLLs you require)
/platforms/qminimal.dll
/platforms/qwindows.dll (Not always required)
How can I know what dependencies my project has?
You can use program Dependency Walker from official site to see what dll's your program need.
NB Use Qt dlls of the same version (if you use Qt5, find your dlls from Qt5's bin
directory and so on).