使用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

相关文章
|
3月前
|
C++ Windows
vs2019 This application failed to start because it could not find or load the QT platform plugin
这篇文章介绍了在VS2019中解决QT程序运行时出现的“无法找到或加载QT平台插件”错误的步骤,通过将必要的DLL文件和插件目录复制到项目解决方案中解决了问题。
|
5月前
|
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“
解决方案-CMake error: error in configuration process, project files may be invalid(Windows&VS可参考)
解决方案-CMake error: error in configuration process, project files may be invalid(Windows&VS可参考)
2479 0
|
6月前
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
679 0
|
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 解决方案
2087 1
|
Java Maven 微服务
To see the full stack trace of the errors, re-run Maven with the -e switch.
问题描述 微服务项目中其它模块不能依赖common模块中的依赖 而common中是有依赖的
911 1
To see the full stack trace of the errors, re-run Maven with the -e switch.
Keil报错:cannot open source input file "core_cmInstr.h" 解决办法
Keil报错:cannot open source input file "core_cmInstr.h" 解决办法
718 0
Keil报错:cannot open source input file "core_cmInstr.h" 解决办法
|
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
272 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.
198 0
Idea运行报错Error running ‘Application‘: Command line is too long的解决方法
Idea运行报错Error running ‘Application‘: Command line is too long的解决方法
200 0