使用Qt Creator编译项目,出现
Error while building/deploying project untitled (kit: Desktop Qt 5.7.1 MSVC2013 64bit)
The kit Desktop Qt 5.7.1 MSVC2013 64bit has configuration issues which might be the root cause for this problem.
When executing step "Make"
错误。
使用VS2013编译项目,出现
错误 1 error MSB6003: 指定的任务可执行文件“cmd.exe”未能运行。请求的操作需要提升。 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 QtGuiApplication1
错误。
上面两种错误出现的原因都是因为在注册表将cmd设置为管理员权限
把这条记录删除之后VS2013就能正常编译了。Qt Creator仍然出现上面的错误,原因在于不知道什么时候出现了这条记录
比正常的qtcreator记录多了一个路径分隔符,改为正常的路径,重新打开Qt Creator,删除旧的编译文件夹,就能正常编译了。