Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19688

Building for UWP fails because of wrong compiler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 4.5.0, Qt Creator 4.7.1
    • None
    • Windows 10 1709 64 bit

      1. I have MSVC2015 installed, but no native 64-bit compiler, only the cross compiler in "x86_amd64".
      2. I have installed Qt 5.10.1 snapshot for UWP on MSVC2015, 64 bit installed.
      3. I opened the camera example in Creator.
      4. Building the example fails with:
        link /NOLOGO /DYNAMICBASE /NXCOMPAT /NODEFAULTLIB:ole32.lib /APPCONTAINER /MACHINE:X64 /NODEFAULTLIB:kernel32.lib /INCREMENTAL:NO /SUBSYSTEM:WINDOWS /MANIFEST:NO /OUT:release\declarative-camera.exe @C:\Users\rob\AppData\Local\Temp\declarative-camera.exe.8520.171.jom
        release\qrc_declarative_camera_qtquickcompiler.obj : fatal error LNK1112: Modul-Computertyp "X86" steht in Konflikt mit dem Zielcomputertyp "x64".
        

      It should be possible to build the example from Creator. Building from the command line succeeds.

      This seems to happen because Creator puts
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64;
      into PATH which does not contain a compiler. qmake called from the command line uses
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64
      instead.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            owolff Oliver Wolff
            rlohning Robert Löhning
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes