General tips for generating Qt static dlls (tested using Qt SDK 2010.01 and 2009.05)
1. Use windows XP
2. Use "Qt Command Prompt" (found in start menu > programs) instead of the regular command prompt
3. Don't build phonon (unless the have installed the SDKs mentioned in Qt for Windows Requirements).
In other words, open up the "Qt Command Prompt" after a fresh Qt installation, then type in:
Then:configure -static -release -no-phonon -platform win32-g++
And now, when you build a Qt application, the only dlls required to be shipped are mingwm10.dll and possibly libgcc_s_dw2-1.dll (both found at <mingw-directory>\bin which would typically be C:\Qt\2010.01\mingw\bin). And the size of these two combined together is about 50kb...mingw32-make
Bookmarks