解决运行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所在未指定的地址添加到环境变量中:

再次执行:

没问题了。

目录
相关文章
|
1月前
|
人工智能 机器人 测试技术
【CMake报错】Cannot specify compile definitions for target “PRIVATE“ which is not built...
【CMake报错】Cannot specify compile definitions for target “PRIVATE“ which is not built...
|
1月前
|
Shell 开发工具 Android开发
详解sh ndk-build.cmd command not found
【4月更文挑战第2天】
javaioIOException - Cannot run program javac error 2 No such file or direct
javaioIOException - Cannot run program javac error 2 No such file or direct
javaioIOException - Cannot run program javac error 2 No such file or direct
关于 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
IDEA 启动服务报错:Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun 解决方案
IDEA 启动服务报错:Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun 解决方案
1510 1
编译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
131 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
208 0
遇到错误怎么办:ndk-build.cmd‘‘ finished with non-zero exit value 2
遇到错误怎么办:ndk-build.cmd‘‘ finished with non-zero exit value 2
343 0
|
Android开发
ndk-build.cmd‘‘ finished with non-zero exit value 2
ndk-build.cmd‘‘ finished with non-zero exit value 2
161 0
ndk-build.cmd‘‘ finished with non-zero exit value 2
|
开发工具 git
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
101 0