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

Detect and report the "missing DLL for host tools" situation when building Qt

XMLWordPrintable

    • Windows
    • a33dd60e2 (dev), 484835c20 (6.5), 41b32cd2c (dev), d4bffcbdb (6.5), b61d67ff6 (6.6)

      When building Qt on Windows with non-bundled 3rdparty libraries, it's a common mistake to not have the 3rdparty lib's DLLs in PATH. QTBUG-113139 is an example.

      This is an user error that seems to be a bit tough to find. Qt's build system could detect this situation and provide a hint.

      For all host tools like rcc and friends we could provide a wrapper batch file (like in Qt5 times) that does the following check after calling the tool:

      if "%ERRORLEVEL%" == "-1073741515" echo DLL not found.
      

      Instead of "DLL not found." we would of course give an explanation about the likely cause of this error.

      As an alternative to the wrapper batch file, we could try to run each host tool after it has been built.

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

            mrmsdbdl Amir Masoud Abdol
            jbornema Joerg Bornemann
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes