Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt 5.15 - how to deploy the qt debug dlls
Forum Updated to NodeBB v4.3 + New Features

qt 5.15 - how to deploy the qt debug dlls

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kcris
    wrote on 1 Jul 2020, 16:24 last edited by
    #1

    Hi,

    long time qt user here.
    I am using qt online installer, on windows, 64 bit, mingw build.

    Until recently, we used qt 5.12, which comes with two sets of dlls, one for debug, one for release
    e.g. Qt5Core.dll (release build) and Qt5Cored.dll (debug build - note the d at the end).

    Having upgraded to 5.15 (and I tried 5.14 as well) I get the following problem
    my debug build links against Qt5Core.dll (no d at the end).

    which is weird, I was expecting Qt5Cored.dll (with a d at the end).
    Well

    • either qt company has changed the way they name the dlls (no longer use the d at the end for their debug dlls)
    • or, this is a bug, somewhere in the (qmake generated) build scripts (they should still use Qt5Cored but for some reason they don't)

    I try to deploy the qt dlls next to my module and debug my module

    I already tried windeployqt.exe

    1. I noticed that it detecs my binary as a "release" build

    and it is NOT a release, I checked with objdump, debug sections are there

    so...

    1. I tried to override by adding --debug in the command line
    windeployqt --debug mymodule.exe
    

    and I get nothing but the release qt dlls next to my module.exe (Qt5Core.dll, Qt5Gui.dll, plugins...)

    which, of course is not debuggable (I launch the debugger, and it just stops)

    where are the symbol files? how do I get the debug qt binaries in order to debug everything?

    Thanks a lot

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on 1 Jul 2020, 16:57 last edited by Bonnie 7 Jan 2020, 17:09
      #2

      There are no debug dlls for MinGW anymore.
      The binaries from the installer are created with -release -force-debug-info -separate-debug-info.
      So the symbol files are generated separately.
      You should be able to find them (*.dll.debug) in the lib folder if you've chosen to install with the debug information files.

      A 1 Reply Last reply 4 Mar 2024, 09:39
      1
      • B Bonnie
        1 Jul 2020, 16:57

        There are no debug dlls for MinGW anymore.
        The binaries from the installer are created with -release -force-debug-info -separate-debug-info.
        So the symbol files are generated separately.
        You should be able to find them (*.dll.debug) in the lib folder if you've chosen to install with the debug information files.

        A Offline
        A Offline
        Ambrus Toth
        wrote on 4 Mar 2024, 09:39 last edited by
        #3

        @kcris Hello, I'm having the same issue with Qt 5.15.2 with the MSVC toolchain. I'm not that well-versed with these topics yet, so could you give me some hints/directions on how to get the QT debug symbols working for my development builds? Do I need to build Qt from source, or just reinstall Qt with some settings enabled in the installer?
        Any help would be much appreciated :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved