Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 'cl' is not recognized
QtWS25 Last Chance

'cl' is not recognized

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 9.6k 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.
  • A Offline
    A Offline
    ArbolOne
    wrote on last edited by
    #1

    any one knows why I get this error message
    'cl' is not recognized as an internal or external command,
    operable program or batch file.

    TIA

    This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      You are getting that error because the Microsoft compiler (cl.exe) is not in the PATH

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ArbolOne
        wrote on last edited by
        #3

        Thank you for your prompt reply, which the following folders should be the one that Qt needs to know about?
        If Qt provides an installer with MinGW, why not provide one with "Windows SDK":http://www.microsoft.com/en-us/download/details.aspx?id=23719. It would certainly rebuild the trust of VC++ developers.

        D:\Qt\Qt5.3.1\5.3\Src\qtwebkit\Tools\vcbin\cl.exe
        C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe
        C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\cl.exe

        TIA

        This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          MSVC++ is not free. It is licensed. Qt can't distribute. Put your VC++ environment in to path. Try with C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe. It may fail for other libraries as well. Also you can hit google/qt wiki on how to setup Qt for Visual Studio. It should be straight forward.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ArbolOne
            wrote on last edited by
            #5

            The SDK *is free and MSVC++ is part of the SDK. I am sure Qt can cut a deal with MS to let them use their *free SDK to be incorporated with the Qt installer. It would even give MS more exposure on their GUI toolkit, while at the same time keeping Qt on its toes. But I guess WPF is way too much of a threat to Qt Quick for Qt to even consider this step. Humm, I suspect that we will not be seeing the coupling of Qt and Windows SDK any time soon.
            For MS is not a good deal either, since most programmers choose Qt when running away from C# and the madness of C++/CLI, which BTW should either be discontinued or be used as a replacement of C#, and then truly say... a better C++.

            Thanks dues, I have solve the problem with cl.exe, but now I have a problem with "jom":http://qt-project.org/forums/viewthread/46106/. Brr

            This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

            1 Reply Last reply
            0

            • Login

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