Hmm, you need to set the environments for both VS and Qt then.
Create a shortcut on your Desktop with
Target: %COMSPEC% /k "C:\Qt\4.2.0\bin\qtvars.bat"
Start in: d:\projects
Take the attached qtvars.bat (more...)
I have typed
qconfigure.bat msvc2005 -debug-and-release
from vs command line and at the end it gave the the message below.
You are now ready to build Qt (msvc2005)
If you specified -static or only (more...)
I’m not using VS for development but anyway here are some suggestions:
I guess you are using http://doc.calitko.org/installing_msvs_qt.html as a reference?
First of all you should build the patched Qt v4.2 (more...)