Static linking on Windows Vista
Hello Dear People,
I`m trying to configure Qt 4.7.0 to compile static on Windows Vista, using this commands:
C:\Qt\2010.05\qt>configure -static -platform win32-g++ -qt-libjpeg -qt-zlib -qt-libpng -release -nomake examples -nomake demos -no-exceptions -no-stl -no-rtti -no-qt3support -no-scripttools -no-openssl -no-opengl -no-webkit -no-phonon -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-sql-sqlite
Enviroment Variables are:
PATH = C:\MinGW\bin;C:\Qt\2010.05;C:\Qt\2010.05\mingw\bin;C:\Qt\2010.05;C:\Qt\2010.05\mingw\bin
QMAKESPEC = win32-g++
QTDIR = C:\Qt\2010.05
A small test application compiled fine, but I still need to include all DLLs [mingwm10.dll,QtCore4.dll,QtGui4.dll,libgcc_s_dw2-1.dll] in the same directory as the .exe file for it to run.
In others words, it is still compiling dynamically!
I made a screenshot of the command-line window that might give you more information, please take a look:
What am I missing to make Qt to compile statically? I want to deploy a single .exe file
Thank you very much!