GTK编译 日志

export PREFIX=/usr/gtkdfb
export LDFLAGS=-L$PREFIX/lib
export CFLAGS="-g -I$PREFIX/include"
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
export PATH=/opt/montavista/cee/devkit/arm/iwmmxt_le/bin/:/opt/montavista/cee/host/bin/:$BUILD_ROOT/usr/bin:$PATH
1,tslib-1.0
. autoget.sh
export PREFIX=/usr/gtkdfb
#echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
#./configure --host=arm-linux --prefix=$PREFIX --cache-file=arm-linux.cache --enable-inputapi=no
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
CC=iwmmxt_le-gcc  ./configure --host=arm-linux --prefix=$PREFIX --cache-file=arm-linux.cache
make
make install
2,pkg-config-0.22 (PC ??)
./configure
make
make install
2.glib-2.16.3
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
echo "ac_cv_func_posix_getgrgid_r=yes" >>arm-linux.cache
CC=iwmmxt_le-gcc ./configure --host=arm-linux --build=i686-pc-linux --prefix=$PREFIX --cache-file=arm-linux.cache
make
make install
3.atk-1.13.2
CC=iwmmxt_le-gcc ./configure --host=arm-linux --prefix=$PREFIX
make
make install
4.jpeg-6b
CC=iwmmxt_le-gcc ./configure  --prefix=$PREFIX --enable-shared --enable-static
修改生成的Makefile文件:
       # library (.a) file creation command
       AR= ar rc 该成  AR= iwmmxt_le-ar rc  (同上)
       # second step in .a creation (use "touch" if not needed)
       AR2= ranlib 该成  AR2=iwmmxt_le--ranlib (同上)
mkdir $PREFIX/man
mkdir $PREFIX/man/man1
make
make install
5.zlib-1.2.3
CC=iwmmxt_le-gcc ./configure --prefix=$PREFIX -shared
make
make install
6.libpng-1.2.29
CC=iwmmxt_le-gcc ./configure -host=arm-linux --prefix=$PREFIX
make
make install
7.expat
CC=iwmmxt_le-gcc ./configure -host=arm-linux  --prefix=$PREFIX
make
make install
8.freetype-2.3.7
export $TOP_DIR=/home/gtkbf/freetype-2.3.7
CC=iwmmxt_le-gcc ./configure -host=arm-linux  --prefix=$PREFIX
make
make install
9.libxml2-2.6.24
CC=iwmmxt_le-gcc ./configure -host=arm-linux  --prefix=$PREFIX
make
make install
10.fontconfig-2.4.91
export LIBXML2_CFLAGS=-I$PREFIX/include/libxml2
export LIBXML2_LIBS="-L$PREFIX/lib -lxml2"
CC=iwmmxt_le-gcc ./configure --host=arm-linux --prefix=$PREFIX --with-freetype-config=$PREFIX/bin/freetype-config --with-arch=arm
make
make install
11.tiff-3.7.4
CC=iwmmxt_le-gcc CXX=iwmmxt_le-g++ ./configure --host=arm-linux --prefix=$PREFIX --enable-shared --with-jpeg-lib-dir=/usr/gtkdfb/lib
make
make install
12.DirectFB-1.2.3
CC=iwmmxt_le-gcc ./configure -host=arm-linux --prefix=$PREFIX --with-gfxdrivers=none --with-inputdrivers=all --enable-png --enable-jpeg --disable-tiff --enable-zlib --enable-sdl=no --enable-gif=no --disable-x11
make
make install
13.pixman-0.10.0
CC=iwmmxt_le-gcc  ./configure --prefix=$PREFIX
make
make install
14.cairo-1.4.14(cairo-1.6.4 有BUG 提示安装freetype fontconfig)
#CC=iwmmxt_le-gcc ./configure --host=arm-linux --prefix=$PREFIX --without-x --disable-xlib --disable-xlib-xrender --enable-directfb --enable-freetype --disable-win32 --enable-pdf --enable-ps --disable-svg --enable-png
CC=iwmmxt_le-gcc ./configure --host=arm-linux --prefix=$PREFIX --without-x --disable-xlib --disable-xlib-xrender --enable-directfb --disable-win32 --enable-pdf --enable-ps --disable-svg --enable-png

make
make install
15.pango-1.20.5
 修改configure文件,将下面一些参数改成true
have_cairo=true
have_cairo_png=true        
have_cairo_ps=true
have_cairo_pdf=true
have_cairo_freetype=true
CC=iwmmxt_le-gcc ./configure --host=arm-linux --prefix=$PREFIX --enable-cairo --without-x
make
make install
16) gtk
export LDFLAGS="-L$PREFIX/lib -Wl,-rpath,$PREFIX/lib"
export CPPFLAGS="-I$PREFIX/include"
CC=iwmmxt_le-gcc ./configure --host=arm-linux --prefix=$PREFIX --with-gdktarget=directfb --without-x --without-libtiff
make
make install

你可能感兴趣的:(command,Build,Path,library,makefile,gtk)