lynx字符浏览器的移植

昨天看过http://www.eefocus.com/ayayayaya/blog/2012-07/191909_97153.html的一篇文章,在移植lynx时出错,在src中make说要以来LYHelp.h文件,然后回到主目录make依然出错了,于是乎下载了一个新版本的lynx与ncurses

ncures地址:http://download.chinaunix.net/download/0008000/7242.shtml

lynx地址:http://lynx.isc.org/lynx2.8.7/index.html

主机环境:UBUNTU10.10

开发板环境:OK6410

1、移植ncurses

编译ncurses是比较简单的

./configure CC=arm-none-linux-gnueabi-gcc --host=arm-linux --prefix=/home/linux/project/lynx-browser/ncurses

之后make&&make install

因为是参考了前面的文章,所以目录也就没改变

2.编译lynx

之前编译lynx出现ncurses headers files not found,很恼火

应该是ncurses头文件指定问题,后来发现时格式不对,姑且这么认为吧

后修改如下

./configure CC=arm-none-linux-gnueabi-gcc --prefix=/home/linux/project/lynx-browser/lynx --host=arm-linux CPPFLAGS="-I /home/linux/project/lynx-browser/ncurses/include/ncurses" CPPFLAGS="-I /home/linux/project/lynx-browser/ncurses/include/" LDFLAGS="-L /home/linux/project/lynx-browser/ncurses/lib"

生成makefile文件

修改makefile文件

CFLAGS  = -O2 -I/home/linux/project/lynx-browser/ncurses/include/ncurses -I/home/linux/project/lynx-browser/ncurses/include/ncurses

 LIBS = -lncurses -L/home/linux/project/lynx-browser/ncurses/lib

不进去src目录

make

make install

啊,搞定了,

3.文件copy

将编译好的文件目录即/home目录拷贝到板子的主目录下,运行我们lynx目录下的bin/lynx www.kernel.org

结果如下:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值