Qt Creator Project Error: cannot run compiler 'cl'
-
wrote on 7 Mar 2018, 23:54 last edited by
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.
In the Issues tab it complains about vcvarsall.bat, but I can run that file without any issues.
What is wrong with my installation of Qt?
-
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
-
wrote on 8 Mar 2018, 10:58 last edited by
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?
-
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?
@Opptur On my Windows 7 machine C:\Windows\system32 is in PATH. Which Windows version do you have?
-
wrote on 8 Mar 2018, 14:22 last edited by
Windows 10 Education x64 updated to date.
-
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?
wrote on 27 Aug 2018, 14:45 last edited by@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!