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

windeployqt copies incorrect dlls for VS 2019 project configured with CMake

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.9.8, 5.12.5, 5.13.2
    • Fix Version/s: 5.14.0 RC1
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      18422dbec0f4522e3c2bfaf05ebe5b4fca35be88

      Description

      The windeployqt tool does not seem to correctly identify the required DLLs for projects built using Visual Studio 2019 (specifically using the v142 toolset). For debug builds, it copies some release DLLs (qwindows.dll instead of qwindowsd.dll), and it fails to copy some debug DLLs because it is looking for a file with 2 post-fixed d's.

      I am not using qmake. The project is configured with CMake. I have tried using both the Visual Studio 16 - 2019 and Ninja CMake generators. It doesn't seem to matter if I target x64 or Win32.

      My current workaround is to go back to the v141 toolset. This can be installed separately from within Visual Studio 2019.

      I can post a simple example project to Github that exposes the problem if there isn't enough info here to replicate it.

        Attachments

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

          Activity

            People

            Assignee:
            owolff Oliver Wolff
            Reporter:
            thomasgt Thomas Gwynne-Timothy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes