实验环境:Ubuntu14.04LTS+Qt5.8+arm-none-linux-gnueabi-gcc 4.4.3+exynos4412+linux最小系统
第一步:下载gdb源码。gdb源码链接
第二步:解压并配置gdb。一般浏览器下载的文件在下载目录下,进入gdb源码所在目录,解压并进入gdb源码目录下:
cd ~/下载
tar -xf gdb*.gz && cd gdb*
./configure --target=/arm-none-linux-gnueabi -prefix=/usr/local/arm/gdb
配置过程中会在终端打印信息,配置完可以翻看下配置的是什么,最重要的是配置信息里面有没有找到你系统的交叉编译器。我系统安装了arm-none-linux-gnueabi-gcc的,所以target下是这个。后面的参数就是gdb将要安装的目录,自己填写想要安装的地方就是了。
第三步:编译:终端输入make命令;如下编译成功。
第四步:开始安装了。终端输入:sudo make install。就会安装到之前配置的目录。事情当然不会是想象的那么顺利,这不就有第一个错误了。
WARNING: 'makeinfo' is missing on your system.
You should only need it if you modified a '.texi' file, or
any other file indirectly affecting the aspect of the manual.
You might want to install the Texinfo package:
<http://www.gnu.org/software/texinfo/>
The spurious makeinfo call might also be the consequence of
using a buggy 'make' (AIX, DU, IRIX), in which case you might
want to install GNU make:
<http://w