Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Building errors

    Installation and Deployment
    2
    5
    1666
    Loading More Posts
    • 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
      Czar05 last edited by

      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 Reply Quote 0
      • A
        adlag last edited by

        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 Reply Quote 0
        • C
          Czar05 last edited by

          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 Reply Quote 0
          • A
            adlag last edited by

            Have you installed the Windows SDK?

            1 Reply Last reply Reply Quote 0
            • C
              Czar05 last edited by

              Yes I installed it.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post