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

Building for UWP fails because of wrong compiler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.5.0, Qt Creator 4.7.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10 1709 64 bit

      Description

      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.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                owolff Oliver Wolff
                Reporter:
                rlohning Robert Löhning
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes