交叉编译GDB7.6

来源:互联网 发布:淘宝diy u盘好 编辑:程序博客网 时间:2024/05/16 00:36
交叉编译GDB7.6
./configure --host=arm-linux --enable-targets=arm-linux --prefix=/home/jieen/workspace/third/debug_Tools/build_gdb_arm
make
出现了:
configure: WARNING: no enhanced curses library found; disabling TUI
checking for library containing tgetent... no
configure: error: no termcap library found
make[1]: *** [configure-gdb] 错误 1
交叉编译ncurses
./configure --host=arm-linux --prefix=/home/jieen/workspace/third/debug_Tools/build_ncurses
make
出现了如下错误
/lib/libAdaCurses.a(c_varargs_to_ada.o): Relocations in generic ELF (EM: 40)
../lib/libAdaCurses.a: could not read symbols: File in wrong format
可以暂时忽略此错误
make install
在build_ncurses下的lib目录下找到libncurses.a
链接libtermcap.a到libncurses.a
重新make 出现
/tui/tui-data.h:37: error: expected specifier-qualifier-list before 'WINDOW'
In file included from ./tui/tui-command.c:26:
./tui/tui-win.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tui_border_ulcorner'
./tui/tui-win.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tui_border_urcorner'
./tui/tui-win.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tui_border_lrcorner'
./tui/tui-win.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tui_border_llcorner'
./tui/tui-win.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tui_border_vline'
./tui/tui-win.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tui_border_hline'
禁用掉tui,文本用户界面(这个很少用)
./configure --host=arm-linux --target=arm-linux --disable-tui --prefix=/home/jieen/workspace/third/debug_Tools/build_gdb_arm
make
make install

原创粉丝点击