Qt5.3.2_CentOS6.4_单步调试环境__20160306【勿删,繁琐】

摘要:
现在它还没有被删除。让我们稍后测试…4.编译并安装gdb-7.6.1.tar bz2的参考网站:http://my.oschina.net/zenglingfan/blog/169564 、 http://forum.qt.io/topic/41667/debugger-does-not-start-gdb-not-support-python-scripting“./configure--with Python make make install”ZC:gdb-7.6.1已安装。您可以删除提取的文件夹“gdb-7.6.1”吗?现在它还没有被删除。让我们稍后测试它…4.1.如果您制作“gdb-7.6.1”,报告错误:“configure:loadingcache./config.cacheconfigure:error:`YACC'自上一次运行以来发生了更改:configure:formervalue:`/mnt/lfs/sources/binutils-2.22/missingbison-'configure:currentvalue:`bison-y'configure:error:在`/mnt/lfs/sources/cbinutils-build/binutils'中:configure:error:environment中的更改会影响buildconfigure:error:run`makedistclean'和/或`rm./config.cache”d和startovermake[1]:***[configure binutils]Error1make[1]:引导目录`/mnt/lfs/sources/binutils-build'make:***[all]Error2lfs@UBUNTU-32bit:/mnt/lfs/resources/binutils build$“您似乎需要安装野牛,然后执行命令“yu_installbison”。控制台显示消息,野牛是最新版本……后来我们知道,它似乎与野牛有关。事实上,有必要删除目录并重新./configure--使用Python,make,make install。

20160306 全程没有f/q

ZC:使用的虚拟机环境是:博客园VMwareSkill 的 “CentOS6.4_x86_120g__20160306.rar

需要调试器 gdb ,从“http://ftp.gnu.org/gnu/gdb/”下载了 “gdb-7.6.1.tar.bz2”

1、

在 对 gdb-7.6.1 执行make 的时候,会说缺少 termcap库,于是先安装它:

yum install ncurses-devel

2、

./configure

make

make install

使用这样的3条命令 编译出来的 gdb,不能被 Qt5.3.2 使用,Qt5.3.2调试的时候会说“The selected build of GDB does not support Python scripting. It cannot be used in Qt Creator.”

于是需要编译带 Python的 GDB 。

3、安装 Python

参考网址:http://www.cnblogs.com/dudu/p/4294238.html

  3.1、安装 Python前,需要装的一些东西:

      yum groupinstall "Development tools"

      yum install zlib-devel
      yum install bzip2-devel
      yum install openssl-devel
      yum install ncurses-devel
      yum install sqlite-devel

  3.2、下载、解压(ZC: 下面的这条解压命令 和 在窗口中右击文件解压有何区别?)、编译、安装 python

     “

      cd /home
      wget --no-check-certificate https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz
      tar xf Python-2.7.9.tar.xz
      cd Python-2.7.9

      ./configure --prefix=/usr/local
      make
      make altinstall

     ”

  3.2.1、将 python命令 指向 "/home/Python-2.7.9"

      ln -s /usr/local/bin/python2.7 /usr/local/bin/python

      ZC: 貌似这一步不需要做了,∵ 查看了一下 "/usr/local/bin/python/python"已经指向了"/usr/local/bin/python/python2",而"/usr/local/bin/python/python2"页已经指向了"/usr/local/bin/python/python2.7"

  3.2.2、检查Python版本

      使用的命令为:

       “

        sh
        python -V

       ”

      执行的效果如下:

       “

        [root@centos Python-2.7.9]# sh
        sh-4.1# python -V
        Python 2.7.9
        sh-4.1# exit
        exit
        [root@centos Python-2.7.9]#

       ”

    ZC:现在 Python-2.7.9 安装完毕了,上面解压数来的 文件夹"/home/Python-2.7.9"能删掉吗?现在是没有删掉它,待以后测试吧...

 4、编译安装 gdb-7.6.1.tar.bz2(带 python)

参考网址:

  (1)、http://my.oschina.net/zenglingfan/blog/169564

  (2)、http://forum.qt.io/topic/41667/debugger-does-not-start-gdb-not-support-python-scripting

./configure --with-python
make
make install

ZC:gdb-7.6.1 安装好了,解压出来的 文件夹"gdb-7.6.1" 能删掉吗?现在是没有删掉它,待以后测试吧...

4.1、

如果在 对"gdb-7.6.1"执行make的时候,报错:

configure: loading cache ./config.cache
configure: error: `YACC' has changed since the previous run:
configure: former value: `/mnt/lfs/sources/binutils-2.22/missing bison -y'
configure: current value: `bison -y'
configure: error: in `/mnt/lfs/sources/binutils-build/binutils':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make[1]: *** [configure-binutils] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [all] Error 2
lfs@UBUNTU-32bit:/mnt/lfs/sources/binutils-build$

看上去像是说需要安装 bison,然后执行命令"yum install bison" 控制台又显示信息说bison已经是最新版了...
后来知道了:看上去是 关于bison,实际是 要把目录删掉,重新 ./configure --with-python, make, make install 。

5、

现在 基本的 断点单步是OK了。

但是还没有 关联Qt的源码。

100、

免责声明:文章转载自《Qt5.3.2_CentOS6.4_单步调试环境__20160306【勿删,繁琐】》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇jQuery Validate 插件[表单验证 属性介绍]RabbitMQ技术详解(转)下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

使用Python读写Kafka

本篇会给出如何使用python来读写kafka, 包含生产者和消费者. 以下使用kafka-python客户端 生产者 爬虫大多时候作为消息的发送端, 在消息发出去后最好能记录消息被发送到了哪个分区, offset是多少, 这些记录在很多情况下可以帮助快速定位问题, 所以需要在send方法后加入callback函数, 包括成功和失败的处理 # -*- co...

Ubuntu 10.10 64bit 安装完成秀下PP

Ubuntu 10.10 64bit 安装完成秀下PP 这段时间一直在用自己的电脑,发现和公司到本还是差距很大的,硬件性能的差距直接影响到用户体验了,遂就将电脑换过来了! 由于WIN7不给力,就下了一个很艰难的决定把WIN7也毙了,现在就只有一个ubuntu了,还是喜欢唯一.... 安装过程比较顺利,下了ISO后使用的ubuntu自带的disk creato...

第15.34节 PyQt(Python+Qt)入门学习:containers容器类部件QStackedWidget堆叠窗口部件详解

老猿Python博文目录 专栏:使用PyQt开发图形界面Python应用 老猿Python博客地址 一、概述 StackedWidget堆叠窗口部件为一系列窗口部件的堆叠,对应类为QStackedWidget。QStackedWidget类对应部件为放在堆栈中的多个窗口部件,这些放在堆栈中的窗口部件在界面上只能看到一个窗口。 二、属性 2.1、概...

使用boost.python进行混合开发

使用boost.python进行混合开发 原文请参照官网和各方参考,本文有改动! 参考链接:http://blog.csdn.net/lanbing510/article/details/12197901 引言: 1简介: Boost.Python 是Boost的一个组件。而Boost是目前很红火的准C++标准库,它提供了很多组件使得人们可以用C++语言更...

python【第五篇】常用模块学习

1.模块 a.定义:本质就是.py结尾的python文件,逻辑上组织python代码,实现某种功能。例:文件名test.py-->模块名test。 b.导入方法:imort moduname                 from mdname import *                 from mdname import name as...

如何在 CentOS 7 上安装 Python 3

当前最新的 CentOS 7.5 默认安装的是 Python 2.7.5,并且默认的官方 yum 源中不提供 Python 3 的安装包。这里主要介绍两种在 CentOS 7 中安装 Python 3 的方法。 使用 SCL 安装 1. 启用 SCL SCL 是一个社区项目,它可以在同一系统上构建,安装和使用多个版本的软件,而不会影响系统默认软件包。 yu...