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. QTCreator under MSYS/Mingw - "Unable to create a debugging engine."
Forum Updated to NodeBB v4.3 + New Features

QTCreator under MSYS/Mingw - "Unable to create a debugging engine."

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
12 Posts 3 Posters 1.7k Views 2 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.
  • T Offline
    T Offline
    Tyler Shellberg
    wrote on last edited by Tyler Shellberg
    #1

    I cannot debug my C++ project in QTCreator.

    I am running MSYS2/Mingw version:

    MINGW64_NT-10.0-19044 version 3.3.4-341.x86_64 (runneradmin@fv-az448-481) (gcc version 11.2.0 (GCC) )

    I am running QTCreator version:

    Qt Creator 7.0.0 based on Qt 6.2.4

    I am using the kit "Desktop Qt MinGW -w64 64bit (MSYS2)".

    When I try to use "Start debugging of the startup project" I get the error:

    Unable to create a debugging engine.

    Here is a picture of my kits dialogue. enter image description here

    I do have GDB installed, --version reports GNU gdb (GDB) 11.1.

    As you can see, all the kits warn that no debugger is set up for them. However, the kit I've selected says that it is using the debugger "MinGW -w64 GDB (64bit)". I cannot change it, as the Manage option is greyed out.

    How do I fix the debugging in QTCreator?

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

      Make sure that your kit has the path to your MSYS2 directory. You can changed it in the "Environment" section.

      I can see that you have system CMake, which starting with version 3.21 should support the MSYS2 environment https://cmake.org/cmake/help/latest/release/3.21.html

      MSYS2 is not a configuration that is officially supported, you should use the MinGW installation from Qt SDK.

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

        Make sure that your kit has the path to your MSYS2 directory. You can changed it in the "Environment" section.

        I can see that you have system CMake, which starting with version 3.21 should support the MSYS2 environment https://cmake.org/cmake/help/latest/release/3.21.html

        MSYS2 is not a configuration that is officially supported, you should use the MinGW installation from Qt SDK.

        T Offline
        T Offline
        Tyler Shellberg
        wrote on last edited by
        #3

        @cristian-adam What do I check for in Environment to ensure the kit has a path to my MSYS2 directory?

        Why did you mention Cmake?

        I'm confused about the MinGW comment. I launched QTCreator through an MSYS2 MingGW shell, and the kit says MinGW. Are you saying MSYS2's MinGW is only one implementation of MinGW, and there are others?

        Where is this "MinGW installation from Qt SDK" and what does installing it entail?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          You can install it using the Maintenance Tool. You'll have then the exact version of MinGW that was used to build Qt.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          T 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            You can install it using the Maintenance Tool. You'll have then the exact version of MinGW that was used to build Qt.

            T Offline
            T Offline
            Tyler Shellberg
            wrote on last edited by
            #5

            @SGaist Where is this maintenance tool, and what would is the executable called? qtcreator's seems to be in /c/msys64/mingw64/bin, but I didn't see anything that looked like it matched the description.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You installed everything through msys ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              T 1 Reply Last reply
              0
              • SGaistS SGaist

                You installed everything through msys ?

                T Offline
                T Offline
                Tyler Shellberg
                wrote on last edited by
                #7

                @SGaist Yes, QtCreator, gcc, etc is all Mingw.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Then I would check with the msys folks.

                  That said, as @cristian-adam wrote, the only officially supported version of MinGW is provided through the Qt online installer. You should check with that one.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  T 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Then I would check with the msys folks.

                    That said, as @cristian-adam wrote, the only officially supported version of MinGW is provided through the Qt online installer. You should check with that one.

                    T Offline
                    T Offline
                    Tyler Shellberg
                    wrote on last edited by Tyler Shellberg
                    #9

                    @SGaist I don't understand how to even get that installer/the "MinGW installation from Qt SDK". I don't know where to find this maintenance tool either.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      The Qt online installer is provided by the Qt Company here.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      1
                      • T Offline
                        T Offline
                        Tyler Shellberg
                        wrote on last edited by
                        #11

                        @SGaist And that installer offers a mingw installation version? It will auto-detect that I already have mingw installed I am assuming? Will it over-write my existing qtcreator install in mingw, or will it be under a separate name? Or do I just need to uninstall the relevant packages from mingw using pacman first?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Yes it will, just select it.
                          Your msys installation will be left untouched.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          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