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 Creator 3.6.1 Debugger doesn't work in CentOS 6.5

Qt Creator 3.6.1 Debugger doesn't work in CentOS 6.5

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 4.2k 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.
  • John_QtJ Offline
    John_QtJ Offline
    John_Qt
    wrote on last edited by John_Qt
    #1

    In Debug mode, it showed in application output
    Debugging has started
    Debugging has failed
    Debugging has finished

    In Release mode , it showed warning as below:
    " This does seem to be a "Debug" build.
    Setting breakpoints by file name and line number may fail.

    Section .debug_info: Not_found
    Section .debug_abbrev: Not found.
    Section .debug_line: Not found.
    Section .debug_str: Not found.
    Section .debug_loc: Not found.
    Section .debug_range: Not found.
    Section .gdb_index: Not found.
    Section .note.gnu.build-id: Found.
    Section .gnu.hash: Found.
    Section .gnu_debuglink: Not found."
    My gcc 4.4.7
    gdb 7.2-60.el6_4.1.
    I spent time to look up the instructions on Google but it doesn't help at all.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      You should provide Qt version , where u download it, your platform
      etc.

      1 Reply Last reply
      0
      • John_QtJ Offline
        John_QtJ Offline
        John_Qt
        wrote on last edited by
        #3

        Qt Version is Qt 5.6.0 (GCC 4.9.1.20140922(Red Hat 4.9.1-10), 64 bit)
        I download it on Qt website with online and offline installer option.
        My platform is CentOS 6.5.

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

          Hi and welcome to devnet,

          Is it a qmake project ? Or a cmake one ?

          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
          • John_QtJ Offline
            John_QtJ Offline
            John_Qt
            wrote on last edited by
            #5

            Its just Hello World project. I don't know much about cmake or qmake. On my Qt Creator doesn't show option Run Cmake or Run Qmake as some website on google mention. If problem come from cmake or qmake, how do I configure them on Qt Creator.

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

              Sorry, my bad, I misunderstood your original post and thought you were having a wrong build type with cmake.

              In any case, I wonder if you are not hitting what is described 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
              0
              • John_QtJ Offline
                John_QtJ Offline
                John_Qt
                wrote on last edited by
                #7

                My compile output doesn't show anything like gdb missing python support as the thread said. It said nothing but debugger doesn't work.

                1 Reply Last reply
                0
                • John_QtJ Offline
                  John_QtJ Offline
                  John_Qt
                  wrote on last edited by
                  #8

                  I found the answer at this link:
                  http://blog.hostilefork.com/qtcreator-debugger-no-locals-ubuntu/.
                  Problem is solved.

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

                    Great ! Thanks for sharing :)

                    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
                    • andrA Offline
                      andrA Offline
                      andr
                      wrote on last edited by
                      #10

                      The posted link points to a fairly bad summary (even at the time of when the blog was written) of "The problem". "The problem" is that Qt Creator uses Python scripting inside GDB (and LLDB for that matter) extensively, and GDB 7.2's level of support for this is not sufficient.

                      This requirement is explicit in the official documentation. http://doc.qt.io/qtcreator/creator-debugger-engines.html says: "Starting with version 3.1, Qt Creator requires the Python scripting extension. GDB builds without Python scripting are not supported anymore and will not work. The minimum supported version is GDB 7.5 using Python version 2.7, or 3.3, or newer."
                      http://doc.qt.io/qtcreator/creator-debugger-engines.html.

                      So CentOS 6.5's GDB 7.2 won't work with Qt Creator 3.6.

                      However, it is straightforward to compile any less ancient version of GDB (current is 7.11) with adequate Python support from source, starting with https://www.gnu.org/software/gdb/download/ and the usual configure, make. This also works for normal users without root privileges.

                      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