The process “C:\Qt\Qt5.4.0\Tools\QtCreator\bin\jom.exe” exited with code 2
-
Hi,
Im currently encountering this error when building my project in QT:
jom: C:\Users\Ryklon Zen\Documents\Qt Projects\build-avaya_code_generator-Desktop_Qt_5_4_0_MSVC2013_64bit-Release\Makefile.Release [release\main.obj] Error 2 Can't start command: C:\Windows\system32\cmd.exe;C:\Qt\Qt5.4.0\5.4\msvc2013_64\bin /C "cl -c -nologo -Zm200 -Zc:wchar_t -FS -O2 -MD -Zc:strictStrings -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DNDEBUG -I"C:\Qt\Qt5.4.0\5.4\msvc2013_64\include" -I"C:\Qt\Qt5.4.0\5.4\msvc2013_64\include\QtWidgets" -I"C:\Qt\Qt5.4.0\5.4\msvc2013_64\include\QtGui" -I"C:\Qt\Qt5.4.0\5.4\msvc2013_64\include\QtANGLE" -I"C:\Qt\Qt5.4.0\5.4\msvc2013_64\include\QtCore" -I"release" -I"." -I"." -I"C:\Qt\Qt5.4.0\5.4\msvc2013_64\mkspecs\win32-msvc2013" -Forelease\ @C:\Users\RYKLON~1\AppData\Local\Temp\main.obj.10780.47.jom" jom: C:\Users\Ryklon Zen\Documents\Qt Projects\build-avaya_code_generator-Desktop_Qt_5_4_0_MSVC2013_64bit-Release\Makefile [release] Error 1 21:18:32: The process "C:\Qt\Qt5.4.0\Tools\QtCreator\bin\jom.exe" exited with code 2. Error while building/deploying project avaya_code_generator (kit: Desktop Qt 5.4.0 MSVC2013 64bit) When executing step "Make"
It seems that it cannot execute the following commands:
Can't start command: C:\Windows\system32\cmd.exe;C:\Qt\Qt5.4.0\5.4\msvc2013_64\bin /C "cl -c -nologo -Zm200...
I have a gut feeling that this has something to do with environment variables. I executed vcvarsall.bat when I was building a library for this project. As far as I can remember, the project was working fine before I built the library. I tried to execute vcvarsall.bat again using cmd and it gives me this error:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>vcvarsall.bat ERROR: Cannot determine the location of the VS Common Tools folder.
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>
I checked my environment variables and I have variables for:
USER VARIABLES
PATH=C:\Program Files (x86)\CMake\binSYSTEM VARIABLES
Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
ComSpec=%SystemRoot%\system32\cmd.exe;C:\Qt\Qt5.4.0\5.4\msvc2013_64\bin
In QT I have the following settings:
KITS
Desktop Qt 5.4.0 MSVC2013 64bit (Auto Detected)QT VERSIONS
Qt 5.4.0 MSVC2013 64bit C:\Qt\Qt5.4.0\5.4\msvc2013_64\bin\qmake.exeCOMPILERS
Microsoft Visual C++ 11.0 (x86)
Microsoft Visual C++ 11.0 (x86_amd64)
Microsoft Visual C++ 11.0 (x86_arm)
Microsoft Visual C++ 12.0 (x86)
Microsoft Visual C++ 12.0 (amd64)
Microsoft Visual C++ 12.0 (x86_amd64)
Microsoft Visual C++ 12.0 (amd64_arm)
Microsoft Visual C++ 12.0 (x86_arm)My project's .pro file contains:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = avaya_code_generator
TEMPLATE = app
SOURCES += main.cpp\
frmmainwindow.cpp
HEADERS += frmmainwindow.h
FORMS += frmmainwindow.ui