PDA

View Full Version : Deployment of qt exe on windows where qt framework is not there on windows 7



shah_27
3rd May 2013, 09:20
HI,
I am a new member of qt.
I have developed application in qt in windows where qt sdk is there.

I want to deploy exe where qt framework is not installed on windows 7 machine.

What are dlls/libs do we need to put for qt dependency so it can run on windows 7 where qt framework is not installed?

Please help me for this.

Lykurg
3rd May 2013, 09:38
http://qt-project.org/doc/qt-4.8/deployment-windows.html

wirasto
3rd May 2013, 09:59
remove for temporary qt lib path from your system environment. Execute your .exe application. Error message will say what lib is missing. So, just copy it to same dir location with your .exe

I use this trick every time :)

shah_27
3rd May 2013, 10:03
Hi wirasto,
But, in windows 7 machine qt framework is not installed in that i want to deploy exe.
Qt lib i have not included where my exe is there only qtcore.dll, qtgui.dll, qtnetwork.dll, qtwidgets.dll and my exe is there.

But, when I execute exe it crashes.
Do i need to include any qt lib file in same exe path?? Which qt lib path do i need to include?

wirasto
3rd May 2013, 10:13
Only include what lib you use. And if you use mingw, you have to include the lib too.

libgcc_s_dw2-1.dll
mingwm10.dll

Don't forget every plugin if you use it

Copy everything you need in one folder. And then deploy it to your customer,,,


I hope you understand my poor english :o

alainstgt
3rd May 2013, 11:22
the best is to use the dependency walker from Microsoft:

http://www.dependencywalker.com/