ARM中gtk的移植

2019-07-13 03:14发布

#主机安装gettext libglib2.0-dev sudo apt-get install gettext libglib2.0-dev   export PREFIX=/gtkdfb& #install glib2.16 echo ac_cv_type_long_long=yes>arm-none-linux-gnueabi.cache& echo glib_cv_stack_grows=no>>arm-none-linux-gnueabi.cache& echo glib_cv_uscore=no>>arm-none-linux-gnueabi.cache& echo ac_cv_func_posix_getpwuid_r=yes>>arm-none-linux-gnueabi.cache&   CC=arm-none-linux-gnueabi-gcc ./configure --host=arm-none-linux-gnueabi --build=i686-pc-linux --cache-file=arm-none-linux-gnueabi.cache --prefix=$PREFIX --enable-static --enable-shared ac_cv_func_posix_getgrgid_r=yes make& -------------不一定需要----------------------- gtester.c   #ifndef ARG_MAX  #define ARG_MAX 0xffff  #endif giounix.c  #ifndef SSIZE_MAX  #define SSIZE_MAX 0x7fffffff  #endif make install& -------------不一定需要----------------------- export LDFLAGS=-L$PREFIX/lib export CFLAGS="-g -I$PREFIX/include" export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig #---------atk1.20.0----------------------- ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --enable-static --enable-shared make make install #install zlib1.2.3 CC=arm-none-linux-gnueabi-gcc ./configure --prefix=$PREFIX --shared make make install   #install jpeg8 ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --enable-static --enable-shared make  make install   #---------------libpng1.2.44------------------------- ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --enable-static --enable-shared make make install   #7、expat-2.0.1 CC=arm-none-linux-gnueabi-gcc ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX -enable-static --enable-shared make make install   #----------freetype2.4.4------------ CC=arm-none-linux-gnueabi-gcc ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --enable-static --enable-shared make make install   #9、libxml2-2.7.8 CC=arm-none-linux-gnueabi-gcc ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --enable-static --enable-shared make make install   #--------------fontconfig2.5.0--------------------- export LIBXML2_CFLAGS=-I/gtkdfb/include/libxml2 export LIBXML2_LIBS="-L/gtkdfb/lib -lxml2" ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --with-freetype-config=$PREFIX/bin/freetype-config --with-arch=arm -enable-static --enable-shared make make install   #----------------------DirectFB1.3.0------------------------------------ ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --with-gfxdrivers=none --with-inputdrivers=all --enable-png --enable-jpeg --disable-tiff --enable-zlib --enable-sdl=no --enable-gif=no --disable-x11 --enable-static --enable-shared make make install #----------pixman-0.16.0------------ ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --enable-static --enable-shared make make install   #----------------------cairo-1.8.6------------------------------------ ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --without-x --disable-xlib --disable-xlib-xrender --enable-directfb --enable-freetype --disable-win32 --enable-pdf --enable-ps --disable-svg --enable-png --enable-static --enable-shared make make install   #-------------------------Pango1.20.5--------------------------------------- #修改 configure 文件,将下面一些参数改成 true have_cairo=true have_cairo_png=true have_cairo_ps=true have_cairo_pdf=true have_cairo_freetype=true ./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --enable-cairo --without-x --enable-static --enable-shared make make install   #---------------------gtk+-2.16.0----------------------------------------- #安装 libgdk-pixbuf2.0-dev(apt-get-install)       export LDFLAGS="-L$PREFIX/lib -Wl,-rpath,$PREFIX/lib" export CPPFLAGS="-I$PREFIX/include" ./configure --host=arm-none-linux-gnueabi  --prefix=$PREFIX --with-gdktarget=directfb --without-libtiff --enable-static --enable-shared 在tests/makefile里面注释掉autotestkeywords相关内容 make make install     #--------dirctfb配置------------- 1.在/rootfs/dev里面 ln -s ttyS0 tty0 2..在etc和gtkdfb/etc里面建立directfbrc写入如下内容 system=fbdev fbdev=/dev/fb0 wm=default mode=320x240 depth=32 pixelformat=RGB16 no-vt  配置内核支持usb鼠标、键盘和hub。输入将触摸屏改成鼠标和键盘  环境: 主机:ubuntu10.10 编译器:arm-gcc-4.21 glibc-2.6.1   此文转载于:http://hi.baidu.com/rdray/item/5190aa76e4b331580d0a0717