Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Installation and GDB setup
Forum Updated to NodeBB v4.3 + New Features

Installation and GDB setup

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 6.0k Views 1 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.
  • M Offline
    M Offline
    Martin from K
    wrote on last edited by
    #1

    Hi,

    I just started with Qt and had some trouble with installation and now can't get GDB to work.
    Here is what I did:
    Many forum threads talk about an SDK that will install everything from one package. I couldn't find such on the current download page. So I chose the latest Qt library file (4.8.4 for win and mingw). Unfortunatetly this doesn't work with the latest package from mingw (GCC 4.7.2) so I had to look for a MinGW with GCC 4.4.0 version. Also Qt installer does not include Qt creator, so I installed Qt creator 2.6. With that I built the Qt creator widget based application (Textfinder). This compiles and runs but there is no button signal or the signal is not reaching the slot. When trying to debug I found that GDB does not work. The error message says gdb process is not responding. Searching for gdb setup information I found that Qt creator 2.6 needs at least GDB 7.4 but the MinGW GCC 4.4.0 has only 6.8. Also GDB 7.4 is said to use Python. Does that mean I have to install Python? If yes, which version? How can I get a gdb > 7.4 in my MinGW GCC4.4.0 without mixing up dlls? I don't even know which package uses what. Or can I make Qt creator use a gdb installed somewher else? I couldn't find any settings for that. What other steps are needed to get GDB running?

    Thank you for any help

    Martin

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      There is a gdb for windows we build ourselves "here":http://builds.qt-project.org/ actually there is even a mingw build there.

      Creator will happily use a gdb that is unrelated to your mingw setup. Go to Tools>Options>Build & Run>Kits and point Creator to the gdb you want to run. The setup is explained in the manual by the way... it is really good, go read it:-)

      I hope we will get a new SDK again now that Qt 5 is out. Qt 5 already contains Qt and Qt Creator, so it is "only" a matter of making a mingw-based version and bundling the compiler and debugger into it. And to fix it up to be an online installer, too, to reenable upgrades.

      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