安裝zlib-1.2.7.tar.gz
安裝libpng-1.5.12.tar.gz
安裝jpegsrc.v6b.tar.gz
安裝Freetype-2.1.3.tar.gz
安裝DirectFB-1.6.1.tar.gz
#--------------
Zlib-1.2.7
CC=sh4-linux-gcc
./configure --prefix=/opt/zlib127 --shared –build=i686
–target=sh4-linux –host=sh4-linux
make
make install
#--------------
libpng1512
cp zlib.h zconf.h到資料夾
CC=sh4-linux-gcc
./configure --prefix=/opt/libpng1512 LDFLAGS="-L/opt/zlib127/lib " LIBS="-lz"
--build=i686 –target=sh4-linux –host=sh4-linux
make
make install
#--------------
libjpeg6b
CC=sh4-linux-gcc
./configure --prefix=/opt/libjpeg6b –enable-static --enable-shared
--build=i686 –target=sh4-linux –host=sh4-linux
make
mkdir /opt/libjpeg6b/include
mkdir /opt/libjpeg6b/lib
mkdir /opt/libjpeg6b/bin
mkdir /opt/libjpeg6b/man
mkdir /opt/libjpeg6b/man1
make install
#-----------------------------
freetype
./configure --prefix=/opt/freetype
make
make install
把/opt/freetype/include/freetype2/freetype拷貝到 /opt/freetype/include/freetype
#-----------------------------
DirectFB16
./configure --prefix=/opt/db16 CFLAGS="-I/opt/zlib127/include -I/opt/libjpeg6b/include" LDFLAGS="-L/opt/zlib127/lib -L/opt/libpng1512/lib -L/opt/freetype/lib -L/opt/libjpeg6b/lib" LIBPNG_LIBS="-lpng -lm" LIBPNG_CFLAGS="-I/opt/libpng1512/include" FREETYPE_LIBS="-lfreetype" FREETYPE_CFLAGS="-I/opt/freetype/include" LIBJPEG="-ljpeg"
--build=i686 –target=sh4-linux –host=sh4-linux
#-------------------------------
DirectFB-examples-1.6.0.tar.gz
CC=sh4-linux-gcc
./configure --prefix=$HOME LDFLAGS="-L/opt/db16/lib" DIRECTFB_CFLAGS="-I/opt/db16/include/directfb" DIRECTFB_LIBS="-ldirectfb"
--build=i686 –target=sh4-linux –host=sh4-linux
沒有留言:
張貼留言