Q:

Configure enviroment variables for qt and visual studio 2010

I've installed: Visual Studio 2010.
qt-windows-opensource-5.1.0-msvc2010-x86-offline
and
qt-vs-addin-1.2.2-opensource
All worked fine, i was able to use qt creator, to create applications and compile and run it.
But i've modified original path from enviroment variables:
http://img850.imageshack.us/img850/382/nh4e.png
And now when try to run application with qt creator i'm getting this error:
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\C++\Qt\build-tesst-Desktop_Qt_5_1_0_MSVC2010_32bit-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1
jom: C:\C++\Qt\build-tesst-Desktop_Qt_5_1_0_MSVC2010_32bit-Debug\Makefile [debug] Error 2
20:54:01: The process "C:\Qt\Qt5.1.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project tesst (kit: Desktop Qt 5.1.0 MSVC2010 32bit)
When executing step 'Make'

I've already read dozens of thread on internet but nothing, i've already reinstalled qt-windows-opensource-5.1.0-msvc2010-x86-offline
and
qt-vs-addin-1.2.2-opensource
but still the same error.
Later edit: Programs won't run only from qt creator. If i'm importing qt project on visual studio 2010 it work to compile and run the application.

A:

When you modified original path variable from environment, Auto-detect of QtCreator toolchange doesnt may not detecte the compiler( your case VS compiler). So to fix this issue, you need either update path variable correctly or add vs compiler manualy to the toolchane and Build. you can try with MinGw compiler too.

