Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1255535
  • 博文数量: 404
  • 博客积分: 10011
  • 博客等级: 上将
  • 技术积分: 5382
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-03 16:29
文章存档

2010年(40)

2009年(140)

2008年(224)

我的朋友

分类: LINUX

2010-04-06 16:12:25

luther@gliethttp:~$ wget
luther@gliethttp:~$ wget http://ftp.de.debian.org/debian/pool/main/n/ncurses/ncurses_5.7+20090803.orig.tar.gz
首先需要交叉编译libncurses.so库
luther@gliethttp:~/ncurses-5.7+20090803$ ./configure --host=arm-linux --with-shared --without-normal --prefix=/home/luther/gliethttp
luther@gliethttp:~/ncurses-5.7+20090803$ make install
luther@gliethttp:~/ncurses-5.7+20090803$ tree ~/gliethttp/bin
/home/luther/gliethttp/bin
|-- captoinfo -> tic
|-- clear
|-- infocmp
|-- infotocap -> tic
|-- reset -> tset
|-- tabs
|-- tic
|-- toe
|-- tput
`-- tset

0 directories, 10 files
luther@gliethttp:~/ncurses-5.7+20090803$ tree ~/gliethttp/lib
/home/luther/gliethttp/lib
|-- libform.so -> libform.so.5
|-- libform.so.5 -> libform.so.5.7
|-- libform.so.5.7
|-- libform_g.a
|-- libmenu.so -> libmenu.so.5
|-- libmenu.so.5 -> libmenu.so.5.7
|-- libmenu.so.5.7
|-- libmenu_g.a
|-- libncurses.so -> libncurses.so.5
|-- libncurses.so.5 -> libncurses.so.5.7
|-- libncurses.so.5.7
|-- libncurses_g.a
|-- libpanel.so -> libpanel.so.5
|-- libpanel.so.5 -> libpanel.so.5.7
|-- libpanel.so.5.7
`-- libpanel_g.a

0 directories, 16 files
luther@gliethttp:~/gliethttp/lib$ rm *.a
luther@gliethttp:~/gliethttp/lib$ arm-linux-strip -s *
luther@gliethttp:~/gliethttp/lib$ cp -a * /vobs/tools/arm-tools/arm-linux-gcc-4.3.2/arm-none-linux-gnueabi/libc/armv4t/usr/lib/
luther@gliethttp:~/gliethttp$ cp -ar include/ncurses/* /vobs/tools/arm-tools/arm-linux-gcc-4.3.2/arm-none-linux-gnueabi/include/
接下来编译vbindiff工具
luther@gliethttp:~/vbindiff-3.0_beta3$ ./configure --host=arm-linux --prefix=/home/luther/gliethttp
luther@gliethttp:~/vbindiff-3.0_beta3$ make
luther@gliethttp:~/vbindiff-3.0_beta3$ make install
luther@gliethttp:~/vbindiff-3.0_beta3$ ll ~/gliethttp/bin/vbindiff
-rwxr-xr-x 1 luther luther 219K 2009-08-22 16:43 /home/luther/gliethttp/bin/vbindiff

在开发板上提示如下错误,原来vbindiff需要pc的xterm下才可使用,vt102不行,所以交叉编译出来的libncurses.so库也就失去了意义.
# vbindiff /bin/busybox
VBinDiff 3.0_beta3, Copyright 1995-2008 Christopher J. Madsen
VBinDiff comes with ABSOLUTELY NO WARRANTY; for details type `vbindiff -L'.
Error opening terminal: vt102.
阅读(849) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~