[Qt-creator] Toolchain detection Windows SDK amd64

Peter Kümmel syntheticpp at gmx.net
Mon Nov 19 19:18:23 CET 2012


On 18.11.2012 01:44, Wolfgang Baron wrote:
> 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.

/amd64 and /x86 are the same, have a look at vcvarsall.bat:

if /i %1 == amd64     goto amd64
if /i %1 == x64       goto amd64

I assume your real problem is different.

>
> 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
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>



More information about the Qt-creator mailing list