[Qt-creator] Toolchain detection Windows SDK amd64
Wolfgang Baron
Wolfgang.Baron at gmx.net
Sun Nov 18 01:44:49 CET 2012
Hi,
I just worked around a bug in Qt Creator 2.6.0 concerning jom or nmake
not finding the compiler for the Windows SDK 7.1 amd64. This happens,
when you want to generate code for amd64 using the autodetected toolchains.
The underlying problem is, that the autodetections uses /amd64 for
initializing the MSVC compiler environment. This should be /x64 instead.
I have not found a way to change this in Qt Creator, so I use a text
editor to edit the file
.../AppData/Roaming/QtProject/qtcreator/toolchains.xml. Changing the
autodetected entry did not help me, as it was overwritten the next time
I started Qt Creator. So you have to clone the entry for amd64 Windows
SDK 7, quit Qt Creator, edit the new entry and start Qt Creator again.
Then you can use your new entry for setting up kits.
I have not found a bug report for this, but maybe I missed it. Has
anybody seen a bugreport or should I post one?
My working toolchain entry is:
<data>
<variable>ToolChain.11</variable>
<valuemap type="QVariantMap">
<value type="QString"
key="ProjectExplorer.MsvcToolChain.SupportedAbi">x86-windows-msvc2010-pe-64bit</value>
<value type="QString"
key="ProjectExplorer.MsvcToolChain.VarsBat">C:/Program Files/Microsoft
SDKs/Windows/v7.1/bin/SetEnv.cmd</value>
<value type="QString"
key="ProjectExplorer.MsvcToolChain.VarsBatArg">/x64</value>
<value type="bool"
key="ProjectExplorer.ToolChain.Autodetect">false</value>
<value type="QString"
key="ProjectExplorer.ToolChain.DisplayName">Windows SDK 7.1 x64</value>
<value type="QString"
key="ProjectExplorer.ToolChain.Id">ProjectExplorer.ToolChain.Msvc:{7afba206-0e0e-4e07-a623-2932c01e21f4}</value>
</valuemap>
</data>
Cheers,
Wolfgang
More information about the Qt-creator
mailing list