使用vs2015打开.pro文件报错:Project ERROR: Cannot run compiler 'cl' -- 完美解决

简介: 使用vs2015打开.pro文件报错:Project ERROR: Cannot run compiler 'cl' -- 完美解决

使用vs2015打开Qtcreator建的工程.pro文件报错,提示如下:


--- (Import): Generating new project of liteidex.pro file


--- (qmake) : Using: C:\QT\QT5.9.1\5.9.1\MSVC2015\bin\qmake

--- (qmake) : Working Directory: C:\Users\firecat\Downloads\liteIDE\liteide-master\liteidex

--- (qmake) : Arguments: -tp vc "liteidex.pro" -recursive QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe



[1] - Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?



--- (Import): Error(s): 1

--- (qmake) : Exit Code: 3




解决方案如下:


1、使用第三方工具rapidee,修改一下Windows的环境变量。


2、把path路径添加C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin即可。


image.png

相关文章
|
5月前
|
C++ Windows
vs2019 This application failed to start because it could not find or load the QT platform plugin
这篇文章介绍了在VS2019中解决QT程序运行时出现的“无法找到或加载QT平台插件”错误的步骤,通过将必要的DLL文件和插件目录复制到项目解决方案中解决了问题。
|
7月前
|
Windows
Qtdesigner报错:This application failed to stat could not find or load the Qt platform plugin “windows“
Qtdesigner报错:This application failed to stat could not find or load the Qt platform plugin “windows“
|
8月前
报错:Keil5执行文件之后显示Target not created
报错:Keil5执行文件之后显示Target not created
1499 0
|
8月前
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
749 0
关于 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 解决方案
2545 1
|
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
288 0
|
开发工具 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
132 0
cl.exe is unable to create an executable file. C compiler test failed.
cl.exe is unable to create an executable file. C compiler test failed.
210 0
|
Java Android开发
【错误记录】Android Studio 配置 AspectJ 报错 ( Failed to create Jar file C:\xxx\aspectjtools-1.8.10.jar. )
【错误记录】Android Studio 配置 AspectJ 报错 ( Failed to create Jar file C:\xxx\aspectjtools-1.8.10.jar. )
864 0
【错误记录】Android Studio 配置 AspectJ 报错 ( Failed to create Jar file C:\xxx\aspectjtools-1.8.10.jar. )