Deploying QT network application
-
Hi friends,
I am developing one QT application inside which I am providing Network communication support to a server. (using QNetworkRequest, QNetworkAccessManager, QNetworkReply for communication).When I am trying to run the compiled exe on a fresh machine that does not have QT installed. There I need to put certain dlls(like Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll) so that my exe executes by just double clicking.
The exe runs without providing network support. As I compile application by just writing network supported code the exe does not start.
Do I need to have any Dll that provides network support inside my deployment folder (in same way I am keeping other dlls those are necessary for gui etc)?
thanks.
MChauhan -
@mdnchauhan You need Qt5Network.dll
See http://doc.qt.io/qt-5/windows-deployment.html -
@jsulm thanks for ur reply. It is still not running. Is there need to provide dll for supporting XML operation. As I am using QDomDocument im my app.
in my .pro file :
QT += core gui network xmlSo is there need to provide dll that will support xml operation.
-
@mdnchauhan Yes you need Qt5Xml.dll. You should really take a look at the Windows Deployment Tool (link I provided before) - it can help you to create a distribution of your app with all needed DLLs.
-
Thanks for your valuable suggestions. Thanks jsulm.