Qt Application Install/Running on Windows
I created a small utility in Qt that runs good on linux.
But, it is not running on windows without either QT SDK or the dll files.
The application is compiled with static option, but still needs those dll.
The dlls are around 200MB and my app is around 1MB. So, the user has to download a 200MB file [50+MB compressed].
Just wanted to know if there is any other way of making things work on windows in a better way.
Thanks in advance.
are you sure, you have libraries for static linking? Did you create Qt by hand for those libs? otherwise you only have dynamic libs. If you link statically, you have to regard the license issues. If you search for static linking on the forum, you will find threads about this topic.
Also check if you need all dll's. Probably you'll need only QtCore4.dll and QtGui4.dll, which should take about 15 MB instead of 200.
Thank you, Gerolf for the reply.
The dlls are Qt dlls [mingw32*, QtGui*.dll ..]
The only reason for going for static is to make the installing/running of utility easy [1 step].
I will search in this forum also for the various linking methods/procedures.
Can you post your .pro file ?
QTCore4.dll is larger than 2 Mb so it's strange that your statically linked application was about 1MB
I assume it's not statically linked, if he had not rebuild Qt completely.
The SDK does not contain libs for static binding.
Thank you, Maciek for the reply.
I'll try with only those dlls and will do some trail and error method to identify only the required dlls. QtGuid4.dll alone is 147MB.
The .pro file of the utility is below:
QT += core gui
TARGET = concute
TEMPLATE = app
SOURCES += main.cpp
HEADERS += concute.h
FORMS += concute.ui
CONFIG += static release no-exceptions
[quote author="amanhardikar" date="1305731457"]Thank you, Maciek for the reply.
I'll try with only those dlls and will do some trail and error method to identify only the required dlls. QtGuid4.dll alone is 147MB.[/quote]
This is the debug dll!
You should only distribute release dlls, which means QtGui4.dll, which has (in 4.7.2, mingw) 9,7 MB
All dlls with the pattern XXXd4.dll are debug libraries. Take those with XXX4.dll, they are release and much smaller.
Thank you, Gerolf for the explanation. I thought I have to include these dlls also.
I removed them and tested and found the app to the running without any issues. :)