Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76845

RHI/D3D backend needs to dynamically resolve D3DCompile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.14.0 Alpha
    • Fix Version/s: 5.14.0 Alpha
    • Component/s: GUI: Painting
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      3d87ea91af766d99dffc17f233b35e941eeefaf1 (qt/qtbase/dev)

      Description

      Currently, MinGW built widget applications fail to launch on Windows:

      The code execution cannot proceed because D3DCOMPILER_43.dll was not found. 

      The reason is that src/gui/rhi/rhi.pri:43 LIBS += ... -ld3dcompiler apparently picks a D3DCOMPILER_43.lib from an unknown location.

      Generally speaking, on Windows 10; there is a D3DCOMPILER_47.dll in the system, but Windows 7 only has D3DCOMPILER_43.dll . That is, apps built on Win10/MSVC with the dependency to D3DCOMPILER_47.dll won't run on Win7, which is a must.

      So, the library should be dynamically loaded.

      Note: D3D11.dll is present on both, this is not a problem.

        Attachments

        For Gerrit Dashboard: QTBUG-76845
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              kleint Friedemann Kleint
              Reporter:
              kleint Friedemann Kleint
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes