Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator 14 is unable to debug a Qt 5 project
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 14 is unable to debug a Qt 5 project

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
25 Posts 12 Posters 6.0k Views 4 Watching
  • 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.
  • JonBJ JonB

    @monegator said in Qt Creator 14 is unable to debut a Qt 5 project:

    I'm not sure how to gather more useful info

    Maybe state which platform and toolchain you are on?

    M Offline
    M Offline
    monegator
    wrote on last edited by
    #3

    @JonB
    Of Course!
    Windows 10 Pro 22H2, the kit is Desktop Qt 5.15.2 MinGW 8.1.0 32bit

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #4

      MinGW 8.1.0 32bit

      Is the issue. It has a GDB with Python 2.7, and Qt Creator 14 only has support for GDB using Python 3.

      The solution is to install a newer MinGW from Qt SDK, clone the Qt 5.15.2 Kit and update the Compilers and Debugger configuration.

      M 1 Reply Last reply
      2
      • cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote on last edited by
        #5

        But, since you are using 32bit... you can get a toolchain from https://github.com/cristianadam/mingw-builds/releases/tag/v11.2.0-rev3 or https://github.com/niXman/mingw-builds-binaries/releases

        aha_1980A 1 Reply Last reply
        2
        • cristian-adamC cristian-adam

          MinGW 8.1.0 32bit

          Is the issue. It has a GDB with Python 2.7, and Qt Creator 14 only has support for GDB using Python 3.

          The solution is to install a newer MinGW from Qt SDK, clone the Qt 5.15.2 Kit and update the Compilers and Debugger configuration.

          M Offline
          M Offline
          monegator
          wrote on last edited by
          #6

          @cristian-adam
          I see!
          Thank you!

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Vdeilae
            wrote on last edited by Vdeilae
            #7

            I meet the same problem!is your problem solved?

            1 Reply Last reply
            0
            • piervalliP Do not disturb
              piervalliP Do not disturb
              piervalli
              wrote on last edited by
              #8

              I have the same problem with empty Windows 11 and Qt creator 14

              1 Reply Last reply
              0
              • V Offline
                V Offline
                Vdeilae
                wrote on last edited by
                #9

                wtf!I install QTCreater 13 and lunch it,link Qt Path,Guess what?It all works good!Don't use QTCreater 14 with QT5 Project!
                https://download.qt.io/official_releases/qtcreator/13.0/13.0.2/

                M 1 Reply Last reply
                1
                • cristian-adamC Offline
                  cristian-adamC Offline
                  cristian-adam
                  wrote on last edited by
                  #10

                  Guys, Qt Creator 14 requires a gdb.exe that comes with Python3 bindings.

                  If you are using a MinGW Kit that uses a GDB from an older MinGW Toolchain you have two options:

                  1. Use an older Qt Creator (13.0.2) that doesn't require Python3 for GDB
                  2. Upgrade the gdb debugger to a newer version.

                  Good luck.

                  1 Reply Last reply
                  4
                  • cristian-adamC Offline
                    cristian-adamC Offline
                    cristian-adam
                    wrote on last edited by
                    #11

                    The 3rd option would be:

                    1. Build Qt 5.15.14 with a newer MinGW Toolchain.

                    With 3. you get the Python3 bindings for gdb and all the security and updates from Qt 5.15 series.

                    Note that the Qt 5.15.2 was released in 2020.

                    1 Reply Last reply
                    0
                    • piervalliP Do not disturb
                      piervalliP Do not disturb
                      piervalli
                      wrote on last edited by
                      #12

                      @cristian-adam For 5.15 Mingw is always the version 8.1 what is now version?
                      Thanks

                      cristian-adamC 1 Reply Last reply
                      0
                      • piervalliP piervalli

                        @cristian-adam For 5.15 Mingw is always the version 8.1 what is now version?
                        Thanks

                        cristian-adamC Offline
                        cristian-adamC Offline
                        cristian-adam
                        wrote on last edited by
                        #13

                        @piervalli said in Qt Creator 14 is unable to debut a Qt 5 project:

                        @cristian-adam For 5.15 Mingw is always the version 8.1 what is now version?
                        Thanks

                        If you look at https://wiki.qt.io/MinGW you would notice ... 11.2.0. Which you could also install via the Qt SDK.

                        1 Reply Last reply
                        1
                        • cristian-adamC Offline
                          cristian-adamC Offline
                          cristian-adam
                          wrote on last edited by
                          #14

                          I've made a screencast showcasing the issue with Qt 5.15.2 MinGW x64 and Qt Creator 14. And also showing how to use a newer debugger and have no issues:

                          alt text

                          A Y A 3 Replies Last reply
                          4
                          • cristian-adamC cristian-adam

                            I've made a screencast showcasing the issue with Qt 5.15.2 MinGW x64 and Qt Creator 14. And also showing how to use a newer debugger and have no issues:

                            alt text

                            A Offline
                            A Offline
                            aliks-os
                            wrote on last edited by
                            #15

                            @cristian-adam Thanks!

                            1 Reply Last reply
                            2
                            • piervalliP piervalli referenced this topic on
                            • cristian-adamC cristian-adam

                              But, since you are using 32bit... you can get a toolchain from https://github.com/cristianadam/mingw-builds/releases/tag/v11.2.0-rev3 or https://github.com/niXman/mingw-builds-binaries/releases

                              aha_1980A Offline
                              aha_1980A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on last edited by
                              #16

                              @cristian-adam You're a lifesaver!

                              I just installed your toolchain and was able to debug my Qt 5.15 / 32bit programs again.

                              In my opinion, a current 32 bit MinGW toolchain should be delivered with the online installer.

                              We are using 32bit 3rd-party libraries (GPIB-32.dll) so switching to 64bit is currently no option.

                              Thanks again and best regads

                              Qt has to stay free or it will die.

                              1 Reply Last reply
                              1
                              • A Offline
                                A Offline
                                AqUaReGiA
                                wrote on last edited by AqUaReGiA
                                #17

                                I have the same problem but I'm using MSVC most prolly cdb has same problem but is there a way to fix it?

                                Edit: Toolchain Windows 11 Pro 23H2, Kit -> Qt 5.15.17 MSVC 2019 32-bit

                                cristian-adamC 1 Reply Last reply
                                0
                                • A AqUaReGiA

                                  I have the same problem but I'm using MSVC most prolly cdb has same problem but is there a way to fix it?

                                  Edit: Toolchain Windows 11 Pro 23H2, Kit -> Qt 5.15.17 MSVC 2019 32-bit

                                  cristian-adamC Offline
                                  cristian-adamC Offline
                                  cristian-adam
                                  wrote on last edited by
                                  #18

                                  @AqUaReGiA said in Qt Creator 14 is unable to debug a Qt 5 project:

                                  I have the same problem but I'm using MSVC most prolly cdb has same problem but is there a way to fix it?

                                  https://bugreports.qt.io/browse/QTCREATORBUG-31345

                                  For CDB Qt Creator 14 doesn't come with the 32 bit dll that's used by x86 cdb to load the project.

                                  As it turns out the 64bit cdb, which is supposed to handle both x86 and x86_64, doesn't really work with 32 bit program.

                                  1 Reply Last reply
                                  1
                                  • A Offline
                                    A Offline
                                    AqUaReGiA
                                    wrote on last edited by
                                    #19

                                    but it was working fine when I was using Qt Creator 13.0.2.

                                    cristian-adamC 1 Reply Last reply
                                    0
                                    • A AqUaReGiA

                                      but it was working fine when I was using Qt Creator 13.0.2.

                                      cristian-adamC Offline
                                      cristian-adamC Offline
                                      cristian-adam
                                      wrote on last edited by
                                      #20

                                      @AqUaReGiA said in Qt Creator 14 is unable to debug a Qt 5 project:

                                      but it was working fine when I was using Qt Creator 13.0.2.

                                      You can still use Qt Creator 13.0.2 for that.

                                      Qt Creator 14 has removed a component and this causes issues.

                                      1 Reply Last reply
                                      0
                                      • cristian-adamC cristian-adam

                                        I've made a screencast showcasing the issue with Qt 5.15.2 MinGW x64 and Qt Creator 14. And also showing how to use a newer debugger and have no issues:

                                        alt text

                                        Y Offline
                                        Y Offline
                                        Ycycz
                                        wrote on last edited by
                                        #21

                                        @cristian-adam thank

                                        1 Reply Last reply
                                        0
                                        • V Vdeilae

                                          wtf!I install QTCreater 13 and lunch it,link Qt Path,Guess what?It all works good!Don't use QTCreater 14 with QT5 Project!
                                          https://download.qt.io/official_releases/qtcreator/13.0/13.0.2/

                                          M Offline
                                          M Offline
                                          MaxQi
                                          wrote on last edited by
                                          #22

                                          @Vdeilae Is there a way to downgrade to 13 using the online installer? I don't want to install the standalone version.

                                          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