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

windeployqt copying debug DLLs for release build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.3.0
    • 5.2.0
    • None
    • Windows 7 64-bit
    • ef05d0c9f34560647a76615d1fb40a01ba8ad991 (dev, 22.1.2014, 5.3)

    Description

      I am using windeployqt on CMake project with CMAKE_BUILD_TYPE set to RelWithDebInfo and windeployqt thinks it's a debug exe so it copies the debug DLLs (*d.dll).

      I tested with CMAKE_BUILD_TYPE = Release and windeployqt works as expected.

      However, I need PDBs to be generated, so even if I use /Zi and /DEBUG manually with a Release build type, it still copies over the debug DLLs. So I assume RelWithDebInfo is also setting /DEBUG and that is the fundamental problem.

      I peaked at the source code and it's getting the "debug" value from the exe directly. Maybe instead it should be checking what is the name of the DLLs that are referenced in the exe and if those are suffixed with 'd.dll' then it should be debug.

      As of right now I can't use windeployqt if I want PDBs also.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            kainjow Kevin Wojniak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes