Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building errors

Building errors

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Czar05
    wrote on 11 Nov 2014, 04:21 last edited by
    #1

    I keep getting the following error, and I do not know what to do. I have looked all over the internet and can't seem to find a coherent solid solution. My initial error was cl' is not recognized as an internal or external command. Then I got the following.

    23:16:13: Running steps for project gotocell...
    23:16:13: Configuration unchanged, skipping qmake step.
    23:16:13: Starting: "C:\Qt\Qt5.3.2\Tools\QtCreator\bin\jom.exe"
    C:\Qt\Qt5.3.2\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\gotocell.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I"C:\Qt\Qt5.3.2\5.3\msvc2012_opengl\include" -I"C:\Qt\Qt5.3.2\5.3\msvc2012_opengl\include\QtWidgets" -I"C:\Qt\Qt5.3.2\5.3\msvc2012_opengl\include\QtGui" -I"C:\Qt\Qt5.3.2\5.3\msvc2012_opengl\include\QtCore" -I"debug" -I"." -I"C:\Qt\Qt5.3.2\5.3\msvc2012_opengl\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\Czar05\AppData\Local\Temp\main.obj.4572.15.jom

    'cl' is not recognized as an internal or external command,
    operable program or batch file.

    jom: C:\Users\Czar05\Documents\Qt\Project\build-gotocell-Desktop_Qt_5_3_0_MSVC2012_OpenGL_32bit-Debug\Makefile.Debug [debug\main.obj] Error 2
    jom: C:\Users\Czar05\Documents\Qt\Project\build-gotocell-Desktop_Qt_5_3_0_MSVC2012_OpenGL_32bit-Debug\Makefile [debug] Error 2
    23:16:28: The process "C:\Qt\Qt5.3.2\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project gotocell (kit: Desktop Qt 5.3.0 MSVC2012 OpenGL 32bit)
    When executing step "Make"
    23:16:28: Elapsed time: 00:15.

    My current Build Environment is:
    C:\Qt\Qt5.3.2\5.3\msvc2012_opengl\bin;C:\ProgramData\Oracle\Java\javapath;C:\Users\Czar05\Documents;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin

    Additional Information:
    Operating System: Windows 8.1
    Visual Studio Express 2012
    Qt 5.3.2

    Does anybody know what the problem might be. Any help would be appreciated.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      adlag
      wrote on 17 Nov 2014, 13:47 last edited by
      #2

      You are building with Visual Studio . The command line compiler of that compiler is called "cl". Apparantly cl is not in your PATH.
      It is not clear from your post whether you are building from the command line or by using QtCreator.
      If you build from the command line you should not open a general MS-DOS terminal but you should open the one supplied by Visual Studio. Only in that case will the PATH be set properly.

      Anyway your PATH must be such that just executing cl should invoke the Visual Studio compiler from the command line

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Czar05
        wrote on 17 Nov 2014, 19:39 last edited by
        #3

        I am building from Qt Creator.

        From Build Environment

        PATH:
        C:\Qt\Qt5.3.2\5.3\msvc2012_opengl\bin;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE;C:\Program Files (x86)\Mozilla Firefox;C:\ProgramData\Oracle\Java\javapath;C:\Users\Czar05\Documents;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcpackages;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn;C:\Program Files\Microsoft SQL Server\80\Tools\Binn;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include; C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt

        But now I am getting a new error message, that reads
        C:\Qt\Qt5.3.2\5.3\msvc2012_opengl\include\QtCore\qglobal.h:46: error: C1083: Cannot open include file: 'stddef.h': No such file or directory

        1 Reply Last reply
        0
        • A Offline
          A Offline
          adlag
          wrote on 17 Nov 2014, 20:41 last edited by
          #4

          Have you installed the Windows SDK?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Czar05
            wrote on 17 Nov 2014, 21:08 last edited by
            #5

            Yes I installed it.

            1 Reply Last reply
            0

            1/5

            11 Nov 2014, 04:21

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved