编译:
export PKG_CONFIG_PATH=/usr/local/dfbgtk/lib/pkgconfig/
export PREFIX=/usr/local/dfbgtk
glib:
echo ac_cv_type_long_long=yes>arm-linux.cache
echo glib_cv_stack_grows=no>>arm-linux.cache
echo glib_cv_uscore=no>>arm-linux.cache
echo ac_cv_func_posix_getpwuid_r=yes>>arm-linux.cache
./configure --prefix=$PREFIX --host=arm-linux --cache-file=arm-linux.cache --enable-static --enable-shared
make
make install
atk:
export LDFLAGS=-L/usr/local/dfbgtk/lib
export CFLAGS=-I/usr/local/dfbgtk/include
export DEP_CFLAGS="-I$PREFIX/include/glib-2.0 -I$PREFIX/lib/glib-2.0/include"
export DEP_LIBS="-L$PREFIX/lib -lglib-2.0 -lgobject-2.0"
./configure --prefix=$PREFIX --host=arm-linux --enable-static --enable-shared
make
make install
zlib:
export CC=arm-linux-gcc
export AR="arm-linux-ar rc"
export RANLIB="arm-linux-ranlib"
export CPP="arm-linux-gcc -E"
./configure --prefix=$PREFIX --shared
make
make install
jpeg-6b:
export CC=arm-linux-gcc
./configure --prefix=$PREFIX --host=arm-linux --enable-shared --enable-static
mkdir /usr/local/dfbgtk/man
mkdir /usr/local/dfbgtk/man/man1
make
make install
libpng:
./configure --prefix=$PREFIX --host=arm-linux --enable-shared --enable-static
make
make install
expat:
./configure --prefix=$PREFIX --host=arm-linux --enable-shared --enable-static
make
make install
freetype:
./configure --prefix=$PREFIX --host=arm-linux --enable-shared --enable-static
make
make install
libxml:
./configure --prefix=$PREFIX --host=arm-linux --enable-shared --enable-static
make
make install
fontconfig:
export CFLAGS="$CFLAGS -I$PREFIX/include/libxml2"
export FREETYPE_LIBS=/usr/local/dfbgtk/lib/libfreetype.so
export AR=arm-linux-ar
export LD=arm-linux-ld
export RANLIB=arm-linux-ranlib
export CXX=arm-linux-g++
export FREE_TYPE_PATH=$PREFIX/bin/freetype-config
export LIBXML2_CFLAGS=-I$PREFIX/include/lib
export LIBXML2_LIBS=$PREFIX/lib/libxml2.so
export FREETYPE_CFLAGS=-I$PREFIX/include/freetype2
export FREETYPE_LIBS=$PREFIX/lib/libfreetype.so
./configure --prefix=$PREFIX --host=arm-linux --enable-static
--enable-shared --with-freetype-config=$PREFIX/bin/freetype-config
--with-confdir=$PREFIX/etc/font --enable-libxml2 --with-arch=arm
tiff:
./configure --prefix=$PREFIX --host=arm-linux --enable-shared --enable-static
make
make install
DirectFB:
./configure --prefix=$PREFIX --host=arm-linux --with-gfxdrivers=none
--host=arm-linux --target=arm --disable-osx --disable-debug-support
--disable-mmx --disable-sse --enable-fbdev --disable-sdl --disable-vnc
--disable-sysfs --enable-zlib --disable-video4linux
--with-gfxdrivers=none --enable-static --disable-xlib --without-x
--disable-xlib-xrender --enable-directfb --disable-x11 --with-pic
make
make install
cario:
export png_REQUIRES="$PREFIX/lib/pkgconfig"
export png_CFLAGS="-I$PREFXI/include/libpng12"
export png_LIBS=$PREFIX/lib/libpng.so
export directfb_CFLAGS="-D_REENTRANT -I$PREFIX/include/directfb"
export directfb_LIBS="-ldirectfb -lz -lfusion -ldirect -lpthread -ldl"
export FONTCONFIG_CFLAGS="-I$PREFIX/include/fontconfig"
export FONTCONFIG_LIBS=$PREFIX/lib/libfontconfig.so
export FREETYPE_CFLAGS="-I$PREFIX/include/freetype2"
export FREETYPE_LIBS=$PREFIX/lib/libfreetype.so
./configure --prefix=$PREFIX --host=arm-linux --disable-xlib
--disable-xlib-xrender --enable-directfb --without-x --enable-pdf
--enable-ps --enable-svg --enable-static
make
make install
pango:
export C_INCLUDE_PATH=$PREFIX/include
export CAIRO_CFLAGS="-D_REENTRANT -I$PREFIX/include/cairo
-IPREFIX/include/directfb -I$PREFIX/include/freetype2
-I$PREFIX/include/libpng12"
export GLIB_CFLAGS="-I$PREFIX/include/glib-2.0 -I$PREFIX/lib/glib-2.0/include"
export GLIB_LIBS="$PREFIX/lib/libglib-2.0.so \
$PREFIX/lib/libgmodule-2.0.so \
$PREFIX/lib/libgobject-2.0.so \
$PREFIX/lib/libfontconfig.so \
$PREFIX/lib/libxml2.so \
$PREFIX/lib/libfreetype.so"
export CAIRO_LIBS=$PREFIX/lib/libcairo.so
export FONTCONFIG_CFLAGS="-I$PREFIX/include/fontconfig"
export FONTCONFIG_LIBS=$PREFIX/lib/libfontconfig.so
export FREETYPE_CFLAGS="-I$PREFIX/include/freetype2"
export FREETYPE_LIBS=$PREFIX/lib/libfreetype.so
export FREETYPE_CONFIG=$PREFIX/bin/freetype-config
export LDFLAGS="-L/usr/local/dfbgtk/lib -lz -lxml2 -lfusion -ldirect -ldirectfb -lpng"
./configure --host=arm-linux --prefix=$PREFIX --without-x
make
make install
gtk:
export BASE_DEPENDENCIES_CFLAGS="-I$PREFIX/include -I$PREFIX/lib/glib-2.0/include -I$PREFIX/include/glib-2.0 \
-I$PREFIX/include/pango-1.0 -I$PREFIX/include/cairo -I$PREFIX/include/atk-1.0" \
BASE_DEPENDENCIES_LIBS="-L$PREFIX/lib $PREFIX/lib/libglib-2.0.so $PREFIX/lib/libgobject-2.0.so \
$PREFIX/lib/libgmodule-2.0.so $PREFIX/lib/libfontconfig.so $PREFIX/lib/libxml2.so" \
GLIB_CFLAGS="-I$PREFIX/include -I$PREFIX/lib/glib-2.0/include -I$PREFIX/include/glib-2.0" \
GLIB_LIBS="-L$PREFIX/lib $PREFIX/lib/libglib-2.0.so $PREFIX/lib/libgobject-2.0.so \
$PREFIX/lib/libgmodule-2.0.so $PREFIX/lib/libfontconfig.so $PREFIX/lib/libxml2.so" \
PANGO_CFLAGS="-I$PREFIX/include/pango-1.0" \
PANGO_LIBS="-L$PREFIX/lib $PREFIX/lib/libpango-1.0.so $PREFIX/lib/libpangoft2-1.0.so \
$PREFIX/lib/libpangocairo-1.0.so" \
GDK_DEP_CFLAGS="-pthread -I$PREFIX/include/glib-2.0 -I$PREFIX/lib/glib-2.0/include \
-I$PREFIX/include/pango-1.0 -I$PREFIX/include/cairo -I$PREFIX/include -D_REENTRANT -D_GNU_SOURCE \
-I$PREFIX/../include -I$PREFIX/../include/directfb" \
GDK_DEP_LIBS="-L$PREFIX/lib -ldirectfb -lfusion -ldirect -lpthread -ldl -lpangocairo-1.0 \
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lpng12 -ljpeg -lm" \
GDK_PIXBUF_DEP_CFLAGS="-pthread -I$PREFIX/include/glib-2.0 -I$PREFIX/lib/glib-2.0/include \
-I$PREFIX/include -I$PREFIX/../include" \
GDK_PIXBUF_DEP_LIBS="-L$PREFIX/lib -lgmodule-2.0 -ldl -lgobject-2.0 -lglib-2.0 -lpng12 -ljpeg -lm" \
GTK_DEP_CFLAGS="-pthread -I$PREFIX/include/glib-2.0 -I$PREFIX/lib/glib-2.0/include \
-I$PREFIX/include/pango-1.0 -I$PREFIX/include/cairo -I$PREFIX/include -D_REENTRANT -D_GNU_SOURCE \
-I$PREFIX/../include/directfb -I$PREFIX/include/atk-1.0 -I$PREFIX/../include" \
GTK_DEP_LIBS="-L$PREFIX/lib -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lgobject-2.0 -lgmodule-2.0 \
-ldl -lglib-2.0 -lcairo -lpng12 -ljpeg -lm" \
GDK_EXTRA_CFLAGS="-I$PREFIX/../include" \
GDK_EXTRA_LIBS="-L$PREFIX/../lib -ldirectfb -lz -lfusion -ldirect -lpthread -ldl"
./configure \
--host=arm-linux \
--prefix=$PREFIX \
--with-gdktarget=directfb \
--without-libtiff \
--disable-glibtest \
--disable-largefile \
--disable-modules \
--with-included-loaders=jpeg,gif,png,xpm
阅读(1273) | 评论(0) | 转发(0) |