Qt Creator 4.0.1 (Qt 5.6.2 MSVC2015 32bit) 停止接受工具链/编译器 [英] Qt Creator 4.0.1 (Qt 5.6.2 MSVC2015 32bit) stopped accepting toolchains/compilers

查看:92
本文介绍了Qt Creator 4.0.1 (Qt 5.6.2 MSVC2015 32bit) 停止接受工具链/编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够使用 Qt Creator 4.0.1(Qt 5.6.2 MSVC2015 32 位)构建我的 Qt 项目,没有任何问题,直到它(突然)停止编译.在最后一张图片中,当我将 Qt5.6.2 分配给 msvc14 时,它说不兼容的 ABI(2005 与 2015)这很奇怪,因为 Visual Studio 2015 是编译器 14.

I was able to build my Qt projects with Qt Creator 4.0.1 (Qt 5.6.2 MSVC2015 32bit) without any problem until it (suddenly) stopped compiling. In the last picture when I assign Qt5.6.2 to msvc14 it says incompatible ABI (2005 vs 2015) which is strange as Visual Studio 2015 is compiler 14.

不确定我应该提供哪些其他信息.谢谢.

Not sure what other info I should provide. Thank you.

推荐答案

我删除了c:\Users\user\AppData\Roaming\QtProject"文件夹的内容,现在 Qt Creator 似乎又开心了.某些文件必须已损坏.令人印象深刻.

I deleted content of the "c:\Users\user\AppData\Roaming\QtProject" folder and now Qt Creator seems to be happy again. Some file(s) must have been corrupted. Impressive.

编辑 1

我发现我不小心"吃了旧版本的 Qt Creator 2.7.0,它更改了c:\Users\user\AppData\Roaming\QtProject"文件夹中的文件.文件 toolchains.xml 特别重要,因为这是(再次使用 Qt Creator 4.0.1 时)ABI 混乱的来源.

I found out that I "accidentally" lunched older version of the Qt Creator 2.7.0 which changed files in "c:\Users\user\AppData\Roaming\QtProject" folder. File toolchains.xml was particularly important as that is where (when using Qt Creator 4.0.1 again) ABI confusion came from.

QtCreator 4.0.1 在 toolchains.xml 文件中将 ABI 2015 分配给 MSVC 14.0

QtCreator 4.0.1 assigns ABI 2015 to MSVC 14.0 in toolchains.xml file

   <value type="QString" key="ProjectExplorer.MsvcToolChain.SupportedAbi">x86-windows-msvc2015-pe-32bit</value>
   <value type="QString" key="ProjectExplorer.MsvcToolChain.VarsBat">C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat</value>

而 QtCreator 2.7.0 在 toolchains.xml 文件中将 ABI 2005 分配给 MSVC 14.0(这是错误的)

whereas QtCreator 2.7.0 assigns ABI 2005 to MSVC 14.0 in toolchains.xml file (which is wrong)

   <value type="QString" key="ProjectExplorer.MsvcToolChain.SupportedAbi">x86-windows-msvc2005-pe-32bit</value>
   <value type="QString" key="ProjectExplorer.MsvcToolChain.VarsBat">C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat</value>

Qt Creator 4.0.1 过去/现在无法解决这个问题,因此删除文件夹的内容让 Qt Creator 4.0.1 有机会从零变成英雄,可以这么说.

Qt Creator 4.0.1 was/is not able to fix this and therefore deleting content of the folder gives Qt Creator 4.0.1 chance to go from zero to hero, so to speak.

这篇关于Qt Creator 4.0.1 (Qt 5.6.2 MSVC2015 32bit) 停止接受工具链/编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆