使用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即可。