Create 32 and 64bit Kits on windows



    • Windows 10 (Pro) (64bit) with latest updates
    • Visual Studio 2017 Community (do i even need that? does Qt rely on it?)
    • Qt Creator 4.3.1, Based on Qt 5.9.1 (MSVC 2015, 32 bit) (how'd that happen? i assumed it would install 64bit?)

    I need to create a .pro that can target both a 32bit and a 64bit build, using "win32" APIs, not UWP.

    in the installer, do i specify Qt install "msvc2015" both 32 and 64?
    i picked 2015 cuz there's no 2017 32bit ( i want parity), and i understand they are ABI compatible with 2017?
    and why is there no 2017 32bit?

    in Kits
    for 32bit i have picked MSVC++15 x86, though the debugger is set to 64bit (Does that matter?)
    for 64bit i have picked MSVC++15 amd64 (not: amd64_x86, not x86_amd64) (is that right??)
    but the warnings say "the msvc2015 might not produce code compatible with the msvc2017", is that safe to ignore?

    i need this BECAUSE i'm porting this project from another platform from 32 to 64, i need 32 running to create unit tests for 64. and because legacy.

    am i doing this right? or any advice?



  • @davecotter said in Create 32 and 64bit Kits on windows:

    (MSVC 2015, 32 bit) (how'd that happen? i assumed it would install 64bit?)

    No, what was used to build Qt Creator is irrelevant

    @davecotter said in Create 32 and 64bit Kits on windows:

    Visual Studio 2017 Community (do i even need that? does Qt rely on it?)

    Yes unless you use a different compiler but probably Qt is not MSVC2017 ready yet so you should use Visual Studio 2015 or the VS Bulid Tools

    @davecotter said in Create 32 and 64bit Kits on windows:

    I need to create a .pro that can target both a 32bit and a 64bit build

    Generally any .pro file can do both with no special changes

    The only difference between a 32 bit and 64 bit build with qmake/nmake is the argument you pass vcvarsall.bat (from visual studio)



  • yes, specify 32 and 64 for msvc2015
    i was able to ignore the warnings
    the kits i picked worked


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.