解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:

简介: 解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:

解决qmake运行时找不到cl.exe程序的问题。

报错如下:

E:\project\QTProject\HelloWord>qmake
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
E:\project\QTProject\HelloWord>

找了好久的cl.exe文件都没找到,最后通过一个文件查找神奇,找到了cl.exe文件的所在位置:

我电脑上的位置:

把整个cl.exe所在未指定的地址添加到环境变量中:

再次执行:

没问题了。

目录
相关文章
CMake Error: The source “xxx“ does not match the source “yyy“ used to generate cache. Re-run cmake
CMake Error: The source “xxx“ does not match the source “yyy“ used to generate cache. Re-run cmake
1008 0
|
5月前
【petalinux 2024.01】petalinux-build时module ‘plnx_vars‘ has no attribute ‘CopyDir‘错误
【petalinux 2024.01】petalinux-build时module ‘plnx_vars‘ has no attribute ‘CopyDir‘错误
115 0
|
7月前
|
编译器
“Could not determine which ”make“ command to run. Check the ”make“ step in the build configuration.”
“Could not determine which ”make“ command to run. Check the ”make“ step in the build configuration.”
|
8月前
|
Shell 开发工具 Android开发
详解sh ndk-build.cmd command not found
【4月更文挑战第2天】
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
|
Java Scala
sbt.internal.inc.CompileFailed: Error compiling the sbt component ‘compiler-interface-2.11.8-61.0‘
IDEA 的 JDK 和 Scala 版本对应不上。 使用 Scala12.1.8配上 JDK8
545 0
|
Android开发
ndk-build.cmd‘‘ finished with non-zero exit value 2
ndk-build.cmd‘‘ finished with non-zero exit value 2
219 0
ndk-build.cmd‘‘ finished with non-zero exit value 2
编译OpenJDK11:configure: error: Target CPU mismatch. We are building for x86_64 but CL is for “版“; exp
编译OpenJDK11:configure: error: Target CPU mismatch. We are building for x86_64 but CL is for “版“; exp
176 0
|
C++
编译JDK11:ERROR: Build failed for target ‘default (exploded-image)‘ in configuration ‘windows-x86_64
编译JDK11:ERROR: Build failed for target ‘default (exploded-image)‘ in configuration ‘windows-x86_64
286 0
遇到错误怎么办:ndk-build.cmd‘‘ finished with non-zero exit value 2
遇到错误怎么办:ndk-build.cmd‘‘ finished with non-zero exit value 2
437 0

热门文章

最新文章