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

相关文章
|
6月前
|
C++
解决方案-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可参考)
903 0
|
4月前
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
110 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 解决方案
1425 1
关于 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:” 的解决方法
|
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
205 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.
144 0
Idea运行报错Error running ‘Application‘: Command line is too long的解决方法
Idea运行报错Error running ‘Application‘: Command line is too long的解决方法
127 0
Keil报错:cannot open source input file "core_cmInstr.h" 解决办法
Keil报错:cannot open source input file "core_cmInstr.h" 解决办法
405 0
Keil报错:cannot open source input file "core_cmInstr.h" 解决办法
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.
776 0
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.
|
Android开发
AVD Nexus_5X_API_24 is already running. If that is not the case, delete the files at C:\...\.a...
今天开启模拟机,弹出来这么个毛病: AVD Nexus_5X_API_24 is already running. If that is not the case, delete the files at C:\.
3162 0