errors during building a program
-
Hi all,
I've been struggling with this for a couple of days and have tried a lot but couldn't solve this issue..
I'm using Qt 5.5 with MSVC2013. I have Visual Studio 2013 installed. while building any project i'm getting this error ....C:\Qt5.5.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -EHsc /Fddebug\slider.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\slider -I. -IC:\Qt5.5.0\5.5\msvc2013\include -IC:\Qt5.5.0\5.5\msvc2013\include\QtWidgets -IC:\Qt5.5.0\5.5\msvc2013\include\QtGui -IC:\Qt5.5.0\5.5\msvc2013\include\QtANGLE -IC:\Qt5.5.0\5.5\msvc2013\include\QtCore -Idebug -I. -IC:\Qt5.5.0\5.5\msvc2013\mkspecs\win32-msvc2013 -Fodebug\ @C:\Users\User\AppData\Local\Temp\main.obj.528.15.jom
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: F:\build-slider-QT-Debug\Makefile.Debug [debug\main.obj] Error 1
cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -EHsc /Fddebug\slider.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\slider -I. -IC:\Qt5.5.0\5.5\msvc2013\include -IC:\Qt5.5.0\5.5\msvc2013\include\QtWidgets -IC:\Qt5.5.0\5.5\msvc2013\include\QtGui -IC:\Qt5.5.0\5.5\msvc2013\include\QtANGLE -IC:\Qt5.5.0\5.5\msvc2013\include\QtCore -Idebug -I. -IC:\Qt5.5.0\5.5\msvc2013\mkspecs\win32-msvc2013 -Fodebug\ @C:\Users\User\AppData\Local\Temp\mainwindow.obj.528.31.jom
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: F:\build-slider-QT-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1
jom: F:\build-slider-QT-Debug\Makefile [debug] Error 2
16:49:34: The process "C:\Qt5.5.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project slider (kit: MSVC2013 32bit)
When executing step "Make"
16:49:34: Elapsed time: 00:00. -
For some reason the environment is not set up correctly for the kit you're using. Go to the Options -> Build&Run and check the settings.
Visual C++ Compiler should be listed on the Compilers tab and a path to vsvarsall.bat should be displayed in the details for it. Check if that path is correct.
Next check the Qt Versions tab and see if there is a Qt for MSVC2013 listed there.
On the Kits tab there should be a kit consisting of the above Qt version and compiler. Check if they are the same bitness (32 or 64) and that there are no warnings on that page.
If all is well there, close Qt Creator, go to your project directory, delete the <yourproject>.pro.user file, open the project again in the Creator, choose the kit and try to rebuild your project.