Because vs2008 + QT with a little slow speed, especially when compiling and running to wait for half a day, so then installed a QT creator, using QT SDK-2010.05.
However, an error occurs during QT creator compilation and running, as shown below:
Running Build Steps for project calculatorform...
Configuration unchanged, skipping qmake step.
Starting: "E:/Qt. SDK/2010.05/bin/jom.exe"
E: \ QT. SDK \ 2010.05 \ bin \ jom.exe-nologo-J 2-F makefile. Debug
CL-C-nologo-zm200-ZC: wchar_t--Zi-MDD-Gr-ESCs-W3-w34100-w34189-dunicode-dwin32-encoding-dqt_dll-encoding-dqt_core_lib-encoding-dqt_have_3dnow-dqt_have_sse
-Dqt_thread_support-I ".. \.. \.. \ include \ qtcore "-I ".. \.. \.. \ include \ qtgui "-I ".. \.. \.. \ include "-I ".. \.. \.. \ include \ activeqt "-I" debug "-I ". "-I ".. \ calculatorform "-I ". "-I ".. \.. \.. \ mkspecs \ win32-msvc2008 "-fodebug \ @ D: \ qqpcmgr \ temp \ calculatorform. obj.48213188.jom
'Cl' is not an internal or external command or a program that can be run.
Or batch files.
CL-C-nologo-zm200-ZC: wchar_t--Zi-MDD-Gr-ESCs-W3-w34100-w34189-dunicode-dwin32-encoding-dqt_dll-encoding-dqt_core_lib-encoding-dqt_have_3dnow-dqt_have_sse
-Dqt_thread_support-I ".. \.. \.. \ include \ qtcore "-I ".. \.. \.. \ include \ qtgui "-I ".. \.. \.. \ include "-I ".. \.. \.. \ include \ activeqt "-I" debug "-I ". "-I ".. \ calculatorform "-I ". "-I ".. \.. \.. \ mkspecs \ win32-msvc2008 "-fodebug \ @ D: \ qqpcmgr \ temp \ main. obj.481_282.jom
Command failed with exit code 9009
'Cl' is not an internal or external command or a program that can be run.
Or batch files.
Command failed with exit code 9009
JOM 0.9.4-Empower your cores
Command failed with exit code 2
The process "E:/Qt. SDK/2010.05/bin/jom.exe" exited with code % 2.
Error while building project calculatorform (target: desktop)
When executing build step 'make'
After analysis, find the cause from the error information above.
From the above we can see that, when compiling and running the program, QT creator uses the win32-msvc2008, but this is vs2008 used to compile the QT program, then how can QT creator use it?
This is because the environment variable D: \ QT \ 4.7.3 \ bin is set when the vs2008 + QT environment is created, in QT creator, the environment variable is automatically detected and used by default, as shown in:
Find the cause. Now the question is how to make QT creator use its own column Manual instead of the QT environment variable vs2008.
Solution:
Select the project to compile and run in QT creator;
In the IDE environment of QT creator, click the icon of the computer on the left, as shown in the red box:
In the build under desktop, select the compiler that comes with QT creator, that is, 4.7.0.
Finally, re-compile the project to pass.
In fact, when we use QT creator to create a QT project, QT creator has a QT version, as shown in:
At this time, if you do not select Qt in path, the above problem will not occur during compilation and running.