I’m trying to deploy my simple Qt project like a hello world.
I build it successfully and can also execute it on Qt-Creator. However, I can’t execute the binary directly in the release folder due to some shared library errors.
So I just copy some essential librarys to the release folder such as qtcore.dll and qtgui.dll, but I can’t still execute it.
How can I deploy my simple Qt project? Is there an another step to deploy it?
You also need to deploy the MINGW runtime dll (
mingwm10.dll). This file is located in yourQt\2009.5\mingw\bindirectory.Also pay attention to whether your application is compiled in debug mode or release mode. I just made the test with an hello world type application and Qt Creator. In the
debugfolders, I copiedlibgcc_s_dw2-1.dll,mingwm10.dll,QtCored4.dllandQtGuid4.dlland it works.Pay attention to the
din dll names, which stands for debug:QtCored4.dll.See Qt 4.6: Deploying an Application in Windows.
For Qt 5, check this page.