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. Qt Creator Project Error: cannot run compiler 'cl'
Forum Update on Monday, May 27th 2025

Qt Creator Project Error: cannot run compiler 'cl'

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 4 Posters 6.3k 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.
  • O Offline
    O Offline
    Opptur
    wrote on 7 Mar 2018, 23:54 last edited by
    #1

    Hello! Today I encountered a very weird situation with my Qt install: I cannot open/compile any existing Qt project because of the following error:

    Running Windows Runtime device detection.
    No winrtrunner.exe found.
    Project ERROR: Cannot run compiler 'cl'. Output:
    ===================
    ===================
    Maybe you forgot to setup the environment?
    Error while parsing file D:\Works\Repos\bitbucket\unitbv-ia-2-2\gpdi\teme\tema2\grafica-poligon\grafica-poligon.pro. Giving up.
    

    The thing is: I haven't touched Qt for a night. When I started my laptop in the morning it wasn't working. I don't know if VS updated in the meantime, but it sure did break something. I tried reinstalling VS/Qt with no success.

    I am on Qt 5.10.1 with Visual Studio 2017 x64.

    This is my Kits tab:
    0_1520466765892_c87e1865-e7eb-4b51-a618-2377af3a9970-image.png

    In the Issues tab it complains about vcvarsall.bat, but I can run that file without any issues.
    0_1520466834006_bd3ec514-c844-40b6-9191-b2985249bb4b-image.png

    What is wrong with my installation of Qt?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Mar 2018, 07:26 last edited by
      #2

      Hi and welcome to devnet,

      I'd search for the chcp application and then check whether the PATH environment variable contains the folder where it is located.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • O Offline
        O Offline
        Opptur
        wrote on 8 Mar 2018, 10:58 last edited by
        #3

        chcp is an application that resides in C:\Windows\system32. I have added that directory to the PATH environment variable and everything is working again. Thank you!

        My question is: why? Do you have this folder in PATH (because it feels a little suspicious to have it there)? If no, why did I have to add it? If yes, what the hell happened there?

        J S 2 Replies Last reply 8 Mar 2018, 12:27
        1
        • O Opptur
          8 Mar 2018, 10:58

          chcp is an application that resides in C:\Windows\system32. I have added that directory to the PATH environment variable and everything is working again. Thank you!

          My question is: why? Do you have this folder in PATH (because it feels a little suspicious to have it there)? If no, why did I have to add it? If yes, what the hell happened there?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 8 Mar 2018, 12:27 last edited by
          #4

          @Opptur On my Windows 7 machine C:\Windows\system32 is in PATH. Which Windows version do you have?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • O Offline
            O Offline
            Opptur
            wrote on 8 Mar 2018, 14:22 last edited by
            #5

            Windows 10 Education x64 updated to date.

            1 Reply Last reply
            0
            • O Opptur
              8 Mar 2018, 10:58

              chcp is an application that resides in C:\Windows\system32. I have added that directory to the PATH environment variable and everything is working again. Thank you!

              My question is: why? Do you have this folder in PATH (because it feels a little suspicious to have it there)? If no, why did I have to add it? If yes, what the hell happened there?

              S Offline
              S Offline
              SrinivasaRaoK
              wrote on 27 Aug 2018, 14:45 last edited by
              #6

              @Opptur
              Just now worked for me too the below suggestion :)
              I Ran my first QML application "Hello World" :)
              chcp is an application that resides in C:\Windows\system32. I have added that directory to the PATH environment variable and everything is working again. Thank you!

              1 Reply Last reply
              1

              • Login

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