config.exe собирает qmake.exe

О чем речь? Как собрать сам qmake.exe из каталога исходников /QtSources/. Надо понимать, что сам qmake.exe используется для генерации MakeFile -ов по данным pro и pri файлов в текущем каталоге.

Еще надо отметить, что сборка qmake.exe происходит релизом статически. То есть надо среду настроить на сборку статически.

Это наверное проще сделать через утилиту конфигурации config.exe. Удобно создать такой cmd файл в каталоге QtSources\4.8.1 и запустить его.

call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86

configure.exe -opensource -confirm-license -release -static -mp -platform win32-msvc2010 -qmake -dont-process -nomake examples -nomake demos -nomake tests

Вывод сборки должен содержать примерно такое содержание, что говорит об успешной сборке qmake.exe в каталоге /qmake/:

Running syncqt...
Creating qmake...
	cl -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT -c -Yc -Fpqmake_pch.pch -TP qmake_pch.h
qmake_pch.h
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\qmake\project.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\main.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\option.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\property.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\meta.cpp 
project.cpp
main.cpp
option.cpp
property.cpp
meta.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\makefile.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\projectgenerator.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\makefiledeps.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\metamakefile.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\xmloutput.cpp 
makefile.cpp
projectgenerator.cpp
makefiledeps.cpp
metamakefile.cpp
xmloutput.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\unix\unixmake.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\unix\unixmake2.cpp 
unixmake.cpp
unixmake2.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\win32\mingw_make.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\win32\winmakefile.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\win32\borland_bmake.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\win32\msvc_nmake.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\win32\msvc_vcproj.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\win32\msvc_vcxproj.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\win32\msvc_objectmodel.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\win32\msbuild_objectmodel.cpp 
mingw_make.cpp
winmakefile.cpp
borland_bmake.cpp
msvc_nmake.cpp
msvc_vcproj.cpp
msvc_vcxproj.cpp
msvc_objectmodel.cpp
msbuild_objectmodel.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\mac\pbuilder_pbx.cpp 
pbuilder_pbx.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\symbian\symmake.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\symbian\initprojectdeploy_symbian.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\symbian\symmake_abld.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\symbian\symmake_sbsv2.cpp D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\symbian\symbiancommon.cpp 
symmake.cpp
initprojectdeploy_symbian.cpp
symmake_abld.cpp
symmake_sbsv2.cpp
symbiancommon.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\tools\shared\windows\registry.cpp 
registry.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\tools\shared\symbian\epocroot.cpp 
epocroot.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\qmake\generators\integrity\gbuild.cpp 
gbuild.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qbitarray.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qcryptographichash.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qbytearray.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qvsnprintf.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qbytearraymatcher.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qdatetime.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qhash.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qlist.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qlinkedlist.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qlocale.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qlocale_tools.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qlocale_win.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qmap.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qregexp.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qstring.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qstringlist.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\tools\qvector.cpp 
qbitarray.cpp
qcryptographichash.cpp
qbytearray.cpp
qvsnprintf.cpp
qbytearraymatcher.cpp
qdatetime.cpp
qhash.cpp
qlist.cpp
qlinkedlist.cpp
qlocale.cpp
qlocale_tools.cpp
qlocale_win.cpp
qmap.cpp
qregexp.cpp
qstring.cpp
qstringlist.cpp
qvector.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qbuffer.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfilesystementry.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfilesystemengine.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfilesystemengine_win.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfilesystemiterator_win.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfsfileengine.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfsfileengine_iterator.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qdir.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qdiriterator.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfile.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qtemporaryfile.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qabstractfileengine.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfsfileengine_win.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qfileinfo.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qiodevice.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qtextstream.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qdatastream.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qsettings.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qurl.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\io\qsettings_win.cpp 
qbuffer.cpp
qfilesystementry.cpp
qfilesystemengine.cpp
qfilesystemengine_win.cpp
qfilesystemiterator_win.cpp
qfsfileengine.cpp
qfsfileengine_iterator.cpp
qdir.cpp
qdiriterator.cpp
qfile.cpp
qtemporaryfile.cpp
qabstractfileengine.cpp
qfsfileengine_win.cpp
qfileinfo.cpp
qiodevice.cpp
qtextstream.cpp
qdatastream.cpp
qsettings.cpp
qurl.cpp
qsettings_win.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\plugin\qsystemlibrary.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\plugin\quuid.cpp 
qsystemlibrary.cpp
quuid.cpp
D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\plugin\qsystemlibrary.cpp(120) : warning C4996: '_wgetenv': This function or variable may be unsafe. Consider using _wdupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(658) : see declaration of '_wgetenv'
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global\qglobal.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global\qmalloc.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global\qlibraryinfo.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global\qnumeric.cpp 
qglobal.cpp
qmalloc.cpp
qlibraryinfo.cpp
qnumeric.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\codecs\qtextcodec.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\codecs\qutfcodec.cpp 
qtextcodec.cpp
qutfcodec.cpp
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\kernel\qsystemerror.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\kernel\qvariant.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\kernel\qmetatype.cpp 
qsystemerror.cpp
qvariant.cpp
qmetatype.cpp
D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\kernel\qsystemerror.cpp(131) : warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(157) : see declaration of 'strerror'
	cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2  /MP  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -Igenerators\integrity  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\include -ID:\QtSDK1.2.1\QtSources\4.8.1\include\QtCore  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\global  -ID:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml  -ID:\QtSDK1.2.1\QtSources\4.8.1\mkspecs\win32-msvc2010   -ID:\QtSDK1.2.1\QtSources\4.8.1\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EPOCROOT  -DQMAKE_OPENSOURCE_EDITION D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml\qxmlstream.cpp D:\QtSDK1.2.1\QtSources\4.8.1\src\corelib\xml\qxmlutils.cpp 
qxmlstream.cpp
qxmlutils.cpp
	link  -OUT:qmake.exe project.obj main.obj makefile.obj unixmake.obj unixmake2.obj mingw_make.obj  option.obj winmakefile.obj projectgenerator.obj property.obj meta.obj  makefiledeps.obj metamakefile.obj xmloutput.obj pbuilder_pbx.obj  borland_bmake.obj msvc_nmake.obj msvc_vcproj.obj msvc_vcxproj.obj  msvc_objectmodel.obj msbuild_objectmodel.obj symmake.obj initprojectdeploy_symbian.obj  symmake_abld.obj symmake_sbsv2.obj symbiancommon.obj registry.obj epocroot.obj  gbuild.obj qbitarray.obj  qbuffer.obj  qcryptographichash.obj  qfilesystementry.obj  qfilesystemengine.obj  qfilesystemengine_win.obj  qfilesystemiterator_win.obj  qfsfileengine.obj  qfsfileengine_iterator.obj  qbytearray.obj  qvsnprintf.obj  qbytearraymatcher.obj  qdatetime.obj  qdir.obj  qdiriterator.obj  qfile.obj  qtemporaryfile.obj  qabstractfileengine.obj  qfsfileengine_win.obj  qsystemlibrary.obj  qfileinfo.obj  qglobal.obj  qhash.obj  qiodevice.obj  qlist.obj  qlinkedlist.obj  qlocale.obj  qlocale_tools.obj  qlocale_win.obj  qmalloc.obj  qmap.obj  qregexp.obj  qtextcodec.obj  qutfcodec.obj  qstring.obj  qstringlist.obj  qsystemerror.obj  qtextstream.obj  qdatastream.obj  quuid.obj  qvector.obj  qsettings.obj  qlibraryinfo.obj  qvariant.obj  qurl.obj  qsettings_win.obj  qmetatype.obj  qxmlstream.obj  qxmlutils.obj  qnumeric.obj ole32.lib advapi32.lib qmake_pch.obj
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

	copy qmake.exe D:\QtSDK1.2.1\QtSources\4.8.1\bin\qmake.exe
        1 file(s) copied.

Примечание: вы можете не увидеть вывод сборки , если qmake.exe был уже собран. Поэтому удалите Makefile в каталоге /qmake/, объектные файлы и запустите config.exe заново.

Мы запускаем конфигурация в ключами -release -static, но похоже это не влияет на результат сборки (ключи компилятора cl и линковщика не меняются).

Надо отметить, что в результате сборки qmake.exe в каталоге src не появляется никаких новых файлов и каталогов типа tmp, Makefile и т.д.

Если пытаться собирать qmake.exe под Qt Creator, то лично у нас не получилось без ошибок (далее лень разбираться).