Deployment of Qt5 Application
-
I wrote application using Qt5 in Visual Studio 2012. It works perfectly fine on my computer but when i try to send it to someone, it doesn't start. It doesn't show any errors. Just doesn't start. Of course with exe i send all needed libs. I did some research and i found that when i run my program on my computer, it uses these libraries:
@Process ID: 5608
D:\Visual Studio 11\Projects\test\Win32\Release\test.exe (0x01110000)
C:\Windows\SysWOW64\ntdll.dll (0x77330000)
C:\Windows\syswow64\kernel32.dll (0x76300000)
C:\Windows\syswow64\KERNELBASE.dll (0x76D40000)
D:\Visual Studio 11\Projects\test\Win32\Release\Qt5Core.dll (0x6A890000)C:\Windows\syswow64\USER32.dll (0x75070000) C:\Windows\syswow64\GDI32.dll (0x76BC0000) C:\Windows\syswow64\LPK.dll (0x75F60000) C:\Windows\syswow64\USP10.dll (0x76A40000) C:\Windows\syswow64\msvcrt.dll (0x74F20000) C:\Windows\syswow64\ADVAPI32.dll (0x766C0000) C:\Windows\SysWOW64\sechost.dll (0x76F10000) C:\Windows\syswow64\RPCRT4.dll (0x76C50000) C:\Windows\syswow64\SspiCli.dll (0x74E90000) C:\Windows\syswow64\CRYPTBASE.dll (0x74E80000) C:\Windows\syswow64\ole32.dll (0x76850000) C:\Windows\syswow64\WS2_32.dll (0x75030000) C:\Windows\syswow64\NSI.dll (0x762B0000) C:\Windows\system32\MSVCP110.dll (0x73DF0000) C:\Windows\system32\MSVCR110.dll (0x73C40000) D:\Visual Studio 11\Projects\test\Win32\Release\Qt5Gui.dll (0x6A5B0000) C:\Windows\system32\OPENGL32.dll (0x74A60000) C:\Windows\system32\GLU32.dll (0x73DC0000) C:\Windows\system32\DDRAW.dll (0x6F360000) C:\Windows\system32\DCIMAN32.dll (0x6F350000) C:\Windows\syswow64\SETUPAPI.dll (0x75DC0000) C:\Windows\syswow64\CFGMGR32.dll (0x74EF0000) C:\Windows\syswow64\OLEAUT32.dll (0x76AE0000) C:\Windows\syswow64\DEVOBJ.dll (0x76760000) C:\Windows\system32\dwmapi.dll (0x74A20000) D:\Visual Studio 11\Projects\test\Win32\Release\Qt5Widgets.dll (0x6A190000) C:\Windows\syswow64\SHELL32.dll (0x75170000) C:\Windows\syswow64\SHLWAPI.dll (0x76660000) D:\Visual Studio 11\Projects\test\Win32\Release\Qt5Sql.dll (0x74B60000) D:\Visual Studio 11\Projects\test\Win32\Release\Qt5Network.dll (0x6D1F0000) C:\Windows\system32\DNSAPI.dll (0x73460000) C:\Windows\system32\IMM32.DLL (0x74FD0000) C:\Windows\syswow64\MSCTF.dll (0x76410000) D:\Qt5.0.1\qtbase\plugins\platforms\qwindows.dll (0x6A0B0000) <------ C:\Windows\system32\WINMM.dll (0x733A0000) C:\Windows\system32\uxtheme.dll (0x74410000) D:\Qt5.0.1\qtbase\plugins\sqldrivers\qsqlmysql.dll (0x73DA0000) <------ D:\Visual Studio 11\Projects\test\Win32\Release\libmysql.dll (0x69C80000) C:\Windows\system32\Secur32.dll (0x727A0000) C:\Windows\system32\NLAapi.dll (0x70BB0000) C:\Windows\system32\napinsp.dll (0x70BA0000) C:\Windows\system32\pnrpnsp.dll (0x70B80000) C:\Windows\System32\mswsock.dll (0x72AF0000) C:\Windows\System32\winrnr.dll (0x70B70000) C:\Program Files (x86)\Bonjour\mdnsNSP.dll (0x73430000) C:\Windows\system32\Iphlpapi.DLL (0x733E0000) C:\Windows\system32\WINNSI.DLL (0x73390000) C:\Windows\system32\rasadhlp.dll (0x73420000) C:\Windows\System32\wshtcpip.dll (0x72AE0000) C:\Windows\System32\wship6.dll (0x734B0000) C:\Windows\System32\fwpuclnt.dll (0x72B90000) C:\Windows\system32\CRYPTSP.dll (0x715F0000) C:\Windows\system32\rsaenh.dll (0x71550000) C:\Windows\system32\RpcRtRemote.dll (0x724F0000) D:\Qt5.0.1\qtbase\plugins\accessible\qtaccessiblewidgets.dll (0x73D80000) <------@
I'm worried about pointed libraries. Even if i copied these libs to my app folder, application still gets them from my QTDIR and it may cause my deployment problem. I wrote this app using Qt5.0.1 in Visual Studio 2012. Any ideas?
I have compiled Qt using
@configure -platform win32-msvc2012 -qt-sql-mysql -plugin-sql-mysql -no-icu -no-angle -opengl desktop -nomake demos -nomake examples@
-
Look at "http://qt-project.org/forums/viewthread/23658":http://qt-project.org/forums/viewthread/23658
Most issues already discussed on this forum, always try search at first.