Transplantation of lynx character Browser

Source: Internet
Author: User

Author: Cao zhongming,Hua Qing vision embedded college lecturer.

I. Environment

HOST: Ubuntu 8.10
Target machine: initi6410
Host Compiler: gcc
Target machine compiler: Arm-None-Linux-gnueabi-gcc

2. Preparations

To enable the target board to access the Internet normally, we make the following settings:

1. Add the following content to profile:

Ifconfig eth0 192.168.1.102
Route add default GW 192.168.1.1

2. Modify/etc/resolv. conf to add the following content:

Nameserver 192.168.1.1

At this time, we can ping www.sina.com to find that there is no problem and then we can start our work.

Iii. ncurses migration

Because ncurses library support is required during Lynx compilation, we will first transplant ncurses:

1, download source code: http://download.chinaunix.net/download/0008000/7242.shtml

Here we download ncurses-5.5.tar.gz

2. decompress the source code

Tar zxvf ncurses-5.5.tar.gz

3. Configure ncurses

CD ncurse-5.5
./Configure -- prefix =/home/Linux/project/Lynx-Browser/ncurses/
-- Host = arm-None-Linux-gnueabi

4. Compile and install

Make
Make install

Iv. Transplantation of lynx

Now that the preparations are complete, we can port our browser:

1. Download the source code http://lynx.browser.org;

Now we have downloaded the maid

2. Configure lynx

./Configure -- prefix =/home/Linux/project/Lynx-Browser/Lynx/
-- Host = arm-None-Linux-gnueabi

3. Compile and install lynx

CD Lynx-2.8.5
Modify makefile
Modify cc = GCC to CC = arm-None-Linux-gnueabi-gcc
Change cflags = 02
Cflags =-O2
-I/home/Linux/project/Lynx-Browser/ncurses/include/ncurses
-I/home/Linux/project/Lynx-Browser/ncurses/include/
Modify libs =-lncuses-L/lib:
Libs =-lncurses
-L/home/Linux/project/Lynx-Browser/ncurses/lib
Go to SRC to compile:
Make (do not modify makefile here because some tools running on the host need to be generated here)
CD ..
Make
Make install
Now we have basically finished our work.

4. Copy Lynx to the Development Board.

Copy the generated Lynx to the Development Board.

Because we -- prefix =/home/Linux/project/Lynx-Browser/Lynx during configure, we also need to copy our Lynx to this directory.

5. Run lynx

# Lynx www.kernel.org
Error: Error opening termina: vt102

Solution:
During ncurses compilation, there was a share directory under the ncurses installation directory. We copied this directory to the USR directory of the Development Board.
CP ncurses/share/sources/rootfs-6410/usr-
Modify the profile to add the following content:
Export term = vt102
Export terminfo =/usr/share/terminfo
Restart the Development Board
# Lynx www.kernel.org
OK:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.