1,错误截图
在linux装好了QT,兴高采烈地写了个程序,一按F5调试,出现这三行,然后就没反映了:
Debugging starts
Debugging has failed
Debugging has finished
2,原因
调试器gdb或者其依赖库的版本问题,我装的QT5.5.1版本,QTCreator3.5.1,系统自带的gdb7.2。
先升级gdb到7.6.
卸载旧版本gdb:
rpm -qa | grep gdb
rpm -e --nodeps gdb-7.2-60.el6_4.1.i686
2. 安装Texinfo文档系统
yum install ncurses-devel
3. 下载gdb 7.6.1源码包
http://ftp.gnu.org/gnu/gdb/gdb-7.6.1.tar.gz
4,进入安装包目录、解压
tar -zxvf gdb-7.6.1.tar.gz
5,配置、编译、安装
./configure
make
sudo make install
重新调试又报“The selected build of GDB does not support Python scripting. It cannot be used