12、交叉编译pixman

12、交叉编译pixman

目标平台:LOONGSON-1B开发板

内核:Linux 3.0

编译平台:ubuntu10.04

交叉工具链:gcc-3.4.6-2f

、简介

    pixman嵌入式图形库,很多开源软件都用到的,特别是如开发gtk这样的图形图像程序.

 

二、下载pixman源码包

    进入http://cgit.freedesktop.org/pixman/下载一个的pixman稳定版本源码包,这里选择pixman-0.24.0.tar.gz。

 

三、交叉编译pixman步骤

#tar zxf pixman-0.24.0.tar.gz

#cd pixman-0.24.0

#./autogen.sh

#./configure --prefix=/home/tool/gtk/pixman_install --host=mipsel-linux LIBS='-L/home/tool/gtk/zlib_instal/lib/ -lz' CPPFLAGS='-I/home/tool/gtk/zlib_install/include' PNG_CFLAGS='-I/home/tool/gtk/libpng_install/include' PNG_LIBS='-L/home/tool/gtk/libpng_install/lib/ -lpng12'

其中:

路径:/home/tool/gtk/zlib_install/是交叉编译安装zlib生成的目录文件

路径:/home/tool/gtk/libpng_install/是交叉编译安装libpng生成的目录文件。

#make && make install

编译安装成功后在--prefix指定的目录下生成include和lib目录。

你可能感兴趣的:(linux,ubuntu,移植,交叉编译,pixman)