Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Can't install Qt 5.1.1 VS 2012



  • Hello, I'm pretty new to Qt. I have Windows 8.1 64-bit and Visual Studio 2012 Ultimate. I downloaded Qt 5.1.1 for Windows 32-bit (VS 2012) and installed the file. Next, I tried to create a new Qt Gui Application but when I built the project, the compile output showed:

    @08:45:42: Running steps for project application...
    08:45:42: Configuration unchanged, skipping qmake step.
    08:45:42: Starting: "C:\Qt\Qt5.1.1\Tools\QtCreator\bin\jom.exe"
    C:\Qt\Qt5.1.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"........\include" -I"........\include\QtWidgets" -I"........\include\QtGui" -I"........\include\QtANGLE" -I"........\include\QtCore" -I"debug" -I"." -I"........\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\ANDRSE~1\AppData\Local\Temp\main.obj.7968.31.jom
    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\Qt\Qt5.1.1\5.1.1\msvc2012\examples\widgets\mainwindows\build-application-Desktop_Qt_5_1_1_MSVC2012_32bit-Debug\Makefile.Debug [debug\main.obj] Error 1
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"........\include" -I"........\include\QtWidgets" -I"........\include\QtGui" -I"........\include\QtANGLE" -I"........\include\QtCore" -I"debug" -I"." -I"........\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\ANDRSE~1\AppData\Local\Temp\mainwindow.obj.7968.31.jom
    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"........\include" -I"........\include\QtWidgets" -I"........\include\QtGui" -I"........\include\QtANGLE" -I"........\include\QtCore" -I"debug" -I"." -I"........\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\ANDRSE~1\AppData\Local\Temp\qrc_application.obj.7968.46.jom
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"........\include" -I"........\include\QtWidgets" -I"........\include\QtGui" -I"........\include\QtANGLE" -I"........\include\QtCore" -I"debug" -I"." -I"........\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\ANDRSE~1\AppData\Local\Temp\moc_mainwindow.obj.7968.62.jom
    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\Qt\Qt5.1.1\5.1.1\msvc2012\examples\widgets\mainwindows\build-application-Desktop_Qt_5_1_1_MSVC2012_32bit-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1@

    What should I do?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Silly question but are you sure that visual studio is installed correctly ?



  • Yes. I have been watching videos about how to install Qt 5.1.1 VS. All videos are like this:

    1. Install Visual Studio.
    2. Install Qt.
    3. Create a new Qt Gui Application.
    4. Run.
    5. It works.

    Even the examples don't build. Apparently, it's a problem with jom. Thanks for answer.


  • Lifetime Qt Champion

    There's something that seems misconfigured since cl is not found… Maybe some path not setup correctly.


Log in to reply