Results 1 to 4 of 4

Thread: Qt Creator: Unable to build any project

  1. #1
    Join Date
    May 2016
    Posts
    6
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Qt Creator: Unable to build any project

    Hello everyone,

    Everytime I try to build a project on my home Windows machine I get the following error:

    23:06:36: Running steps for project calqlatr...
    23:06:37: Starting: "C:\Qt\5.7\msvc2015_64\bin\qmake.exe" C:\Qt\Examples\Qt-5.7\quick\demos\calqlatr\calqlatr.pro -r -spec win32-msvc2015 "CONFIG+=debug" "CONFIG+=qml_debug"
    23:06:37: The process "C:\Qt\5.7\msvc2015_64\bin\qmake.exe" exited normally.
    23:06:37: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc /Fddebug\calqlatr.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\calqlatr -I. -IC:\Qt\5.7\msvc2015_64\include -IC:\Qt\5.7\msvc2015_64\include\QtQuick -IC:\Qt\5.7\msvc2015_64\include\QtGui -IC:\Qt\5.7\msvc2015_64\include\QtANGLE -IC:\Qt\5.7\msvc2015_64\include\QtQml -IC:\Qt\5.7\msvc2015_64\include\QtNetwork -IC:\Qt\5.7\msvc2015_64\include\QtCore -Idebug -IC:\Qt\5.7\msvc2015_64\mkspecs\win32-msvc2015 -Fodebug\ @C:\Users\Martijn\AppData\Local\Temp\main.obj.9168 .16.jom
    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\Qt\Examples\Qt-5.7\quick\demos\build-calqlatr-Desktop_Qt_5_7_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\main.obj] Error 1
    C:\Qt\5.7\msvc2015_64\bin\rcc.exe -name calqlatr ..\calqlatr\calqlatr.qrc -o debug\qrc_calqlatr.cpp
    C:\Qt\5.7\msvc2015_64\bin\rcc.exe -name shared ..\..\shared\shared.qrc -o debug\qrc_shared.cpp
    jom: C:\Qt\Examples\Qt-5.7\quick\demos\build-calqlatr-Desktop_Qt_5_7_0_MSVC2015_64bit-Debug\Makefile [debug] Error 2
    23:06:37: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project calqlatr (kit: Desktop Qt 5.7.0 MSVC2015_64bit)
    When executing step "Make".

    Now the weird thing is that whenever I run Qt Creator on my virtual machine on the same system everything works jst fine. Reinstalling did not work for me either. I have google my ass of but with no luck so far. Can anyone please help?

    --
    Martijn

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator: Unable to build any project

    Have you checked the PATH environment (projects -> build environment) if it contains the directory where cl.exe is located in?

    Cheers,
    _

  3. #3
    Join Date
    May 2016
    Posts
    6
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator: Unable to build any project

    Thank you for your reply!

    It does not contain the folder that contains cl.exe Unfortunately I can't seem to find that file anywhere. Not in my Qt directory (which IS in path) or at any of my msvc folders.

    --
    Martijn

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator: Unable to build any project

    Since this is the commandline compiler from Microsoft, it wouldn't be in any Qt directory, but if it also isn't in the visual studio directory then maybe the installation is incomplete?

    Cheers,
    _

Similar Threads

  1. Unable to compile project
    By vlad230 in forum Newbie
    Replies: 2
    Last Post: 16th June 2012, 14:08
  2. Unable to build executable
    By sudhir.linux in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd December 2010, 11:18
  3. Build two programs in one project in creator
    By Gunnar in forum Qt Tools
    Replies: 1
    Last Post: 13th October 2010, 08:52
  4. Unable to Build Qt Scenegraph
    By jfk in forum Installation and Deployment
    Replies: 0
    Last Post: 1st July 2010, 22:39
  5. Replies: 1
    Last Post: 13th January 2010, 23:35

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.