[Qt-interest] How to make exes work without dependencies
Malyushytsky, Alex
alex at wai.com
Fri Aug 14 23:34:27 CEST 2009
1. At the best of my knowledge to build QT4 based software without dependencies on Windows at least using MSVC compiler is impossible without QT source modification, because static CRTs are not supported by QT4. Building Qt Statically chapter in QT documentation is misleading because QT will still use dynamic CRT libraries and you will have to deploy them anyway. The only thing which QT static build will do, it will allow you to deploy your application without QT dlls in cost of some restrictions. I highly recommend to avoid such static QT build.
2. Instead you can deploy or make accessible on your computer QT libraries and other dependencies.
QT provides documentation how it can be done: http://doc.trolltech.com/4.1/deployment-windows.html
As an example you can copy all (QT, etc) dlls in your application folder.
3. You should deploy release version, not debug.
Regards,
Alex
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Nitesh
Sent: Friday, August 14, 2009 10:43 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] How to make exes work without dependencies
Well,
I have built my first application with Qt. It is Store Management Software with MySQL backend. I have a problem here. IT works fine, if I build it from qt-creator. The executables are created at debug folder. But when I try to run the .exe from the deubg folder, it calls for different dependent dlls. How to make it independent so that I can port the application anywhere I like. Sorry for the novice question. But I don't have any idea. And I sure did search, but I couldn't find the answer, or I didn't know how to search.
THanks in advance
Nitesh
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list