Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio Qt Creator 4.0.1(Qt 5.6.2 MSVC2015 32位)停止接受工具链/编译器_Visual Studio_Qt_Qt Creator - Fatal编程技术网

Visual studio Qt Creator 4.0.1(Qt 5.6.2 MSVC2015 32位)停止接受工具链/编译器

Visual studio Qt Creator 4.0.1(Qt 5.6.2 MSVC2015 32位)停止接受工具链/编译器,visual-studio,qt,qt-creator,Visual Studio,Qt,Qt Creator,我能够使用Qt Creator 4.0.1(Qt 5.6.2 MSVC2015 32位)毫无问题地构建我的Qt项目,直到它(突然)停止编译。在最后一张图片中,当我将Qt5.6.2分配给msvc14时,它显示了不兼容的ABI(2005 vs 2015),这很奇怪,因为Visual Studio 2015是编译器14 不知道我应该提供什么其他信息。多谢各位 我删除了“c:\Users\user\AppData\Roaming\QtProject”文件夹的内容,现在Qt创建者似乎又高兴了。某些文

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

不知道我应该提供什么其他信息。多谢各位

我删除了“c:\Users\user\AppData\Roaming\QtProject”文件夹的内容,现在Qt创建者似乎又高兴了。某些文件一定已损坏。令人印象深刻


编辑1

我发现我“意外”使用了Qt Creator 2.7.0的旧版本,该版本更改了“c:\Users\user\AppData\Roaming\QtProject”文件夹中的文件。文件toolschains.xml特别重要,因为这正是(再次使用QtCreator 4.0.1时)ABI混乱的根源

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

   <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>
x86-windows-msvc2015-pe-32位
C:/ProgramFiles(x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat
而QtCreator 2.7.0在toolschains.xml文件中将ABI 2005分配给MSVC 14.0(这是错误的)

x86-windows-msvc2005-pe-32位
C:/ProgramFiles(x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat

Qt Creator 4.0.1无法修复此问题,因此删除文件夹内容会使Qt Creator 4.0.1有机会从零变为英雄。

Qt Creator检测到编译器的ABI错误。在“编译器”选项卡下,点击“微软Visual C++编译器14(x86)”,然后查看底部窗格。“初始化”字段是什么意思?自动检测版本和手动版本是否相同?两个版本的初始化字段均显示“C:\Program Files(x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat x86”
   <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>