1. download http://links.twibright.com/download/links-2.1pre31.tar.gz。

2. build libjpeg, zlib, libpng(記得做 libpng.pc), directFB.

3. export PATH=$PATH:/sigma/DirectFB-0.9.25.1,為了讓 configure 抓到 directfb-config,雖然照我的做法抓出來的值都是錯的,但還是要做一次。

4. configure 很長一段,沒法子,誰叫我用的是 arm7。
CC=arm-elf-gcc CXX=arm-elf-g++ AR=arm-elf-ar RANLIB=arm-elf-ranlib LD=arm-elf-ld STRIP=arm-elf-strip \
CPPFLAGS="-I/sigma/jpeg-6b -I/sigma/libpng-1.2.23 -I/sigma/zlib-1.2.3 \
          -I/sigma/DirectFB-0.9.25.1/include -I/sigma/DirectFB-0.9.25.1/lib/ -D_REENTRANT" \
LDFLAGS="-L/sigma/jpeg-6b/.libs -L/sigma/libpng-1.2.23/.libs -L/sigma/zlib-1.2.3 -Wl,-elf2flt=-s32768 \
           -static \
           /sigma/DirectFB-0.9.25.1/wm/default/libdirectfbwm_default.o \
           /sigma/DirectFB-0.9.25.1/systems/fbdev/libdirectfb_fbdev.o \
           /sigma/DirectFB-0.9.25.1/interfaces/IDirectFBFont/libidirectfbfont_ft2.o \
           /sigma/DirectFB-0.9.25.1/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.o \
           /sigma/DirectFB-0.9.25.1/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.o \
           /sigma/DirectFB-0.9.25.1/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.o \
           /sigma/DirectFB-0.9.25.1/inputdrivers/ps2mouse/libdirectfb_ps2mouse.o \
           -ldirectfb -L/sigma/DirectFB-0.9.25.1/src/.libs \
           -ldirect -L/sigma/DirectFB-0.9.25.1/lib/direct/.libs \
           -lfusion -L/sigma/DirectFB-0.9.25.1/lib/fusion/.libs \
           -lfreetype -L/sigma/freetype-2.3.5/objs/.libs \
           -ljpeg -L/sigma/jpeg-6b/.libs \
           -lpng -lz -lm -L/sigma/libpng-1.2.23/.libs \
           -lz -L/sigma/zlib-1.2.3 \
           -lpthread" \
./configure --host=arm-elf --enable-static=yes --enable-shared=no --enable-graphics --with-directfb \
--without-svgalib --without-bzip2 --without-x --without-fb --without-pmshell --without-atheos \
--without-libtiff

5. make。

6. 使用方法 ./links -g http://www.yahoo.com &。

7. 後評
一個字"爛",很多東西都不支援,中文,CSS等,先加減用吧,再找其它的。

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()