I've downloaded the following Qt sources: http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.3.zip and tried to setup a distribution with static libraries using MS VC 2010.
Beforehand I did read the following articles:
http://www.qtcentre.org/wiki/index.php?title=Building_static_Qt_on_Windows
http://www.formortals.com/build-qt-static-small-microsoft-intel-gcc-compiler
I modified the mkspecs\win32-msvc2010\qmake.conf - update the QMAKE_CFLAGS_RELEASE key to use the MT option instead of MD. After that I executed the following command line from the VC 2010 command prompt:
configure -platform win32-msvc2010 -static -release
When that has finished I was asked to simply run nmake, which I did. After that I tried to add the qmake from the the static libs distribution folder to Qt Creator (Tools/Options - Qt section). It was unsuccessful - got "Failed to detect ABI(s) used by the Qt version" message by Qt Creator.
I also tried (on a clean distribution) modifying the qmake/Makefile.win32 file before running the configure command - added /MT option to the CFLAGS_BARE definition, but got the same error message in Qt Creator.
I'm using Qt Creator 2.3. - installed separately.
How can I solve this problem?