移植fontconfig软件包
关于fontconfig的移植,在Ubuntu Server 10.04平台上交叉编译,移植到嵌入式Linux,经过实践,以下是交叉编译的正确步骤,不保证在其他环境中能正确运行,以下是编译环境:
build: Ubuntu Server 10.04
host: Linux version 2.6.32.15-15-sigma
cross compiler:mips-linux-gnu-gcc version:4.3.2
cpu: mips
交叉编译fontconfig,依赖(libxml2,freetype);
Download Open Sources:
fontconfig-2.8.0.tar.gz
libxml2-git-snapshot.tar.gz
freetype-2.4.8.tar.bz2
Building libxml2-git-snapshot.tar.gz:
tar zxvf libxml2-git-snapshot.tar.gz
cd libxml2-2.7.8/
./configure --host=mips-linux-gnu CC="mips-linux-gnu-gcc -EL" --with-zlib=/home/gzshun/zlib/ --prefix=/home/gzshun/libxml2 (request cross compile zlib-1.2.3)
./configure --host=mips-linux-gnu CC="mips-linux-gnu-gcc -EL" --without-zlib --prefix=/home/gzshun/libxml2
make
make install
Building freetype-2.4.8.tar.bz2:
tar jxvf freetype-2.4.8.tar.bz2
cd freetype-2.4.8/
./configure --host=mips-linux-gnu CC="mips-linux-gnu-gcc -EL" --prefix=/home/gzshun/freetype2
make
make install
Building tar zxvf fontconfig-2.8.0.tar.gz:
tar zxvf fontconfig-2.8.0.tar.gz
cd fontconfig-2.8.0/
export PKG_CONFIG_PATH=/home/gzshun/others/libxml2-2.7.8/:$PKG_CONFIG_PATH
./configure --with-arch=mips --host=mips-linux-gnu CC="mips-linux-gnu-gcc -EL" --enable-libxml2 --with-freetype-config=/home/gzshun/freetype2/bin/freetype-config --includedir="/home/gzshun/libxml2/" --prefix=/home/gzshun/fontconfig
make
make install
由于交叉编译开源软件包,不涉及到具体难题,没有逐一解释,只提供编译步骤。
分享到:
相关推荐
fontconfig离线安装rpm包
Fontconfig 是字体相关的计算机程序库,用于配置、定制全系统的字体,或将字体提供给应用程序使用。此库是由Keith Packard开发维护的。 Fontconfig 是自由软件,采用宽松开放版权许可证。[1] 应用程序可以通过两种...
Fontconfig 是自由软件,是gtk+移植安装的依赖包,此包是fontconfig的开源代码
jdk的默认中文字体是丑陋的宋体,网上有一些如何修改fontconfig.property来使中文字体成为微软雅黑的文章,但不知道为什么,在最新的Windows7 + JDK 6/JDK 7中,对于粗体的中文会显示乱码。 经过我多次的摸索尝试,...
fontconfig VS2013 Solution,fontconfig lib,fontconfig sourcecode fontconfig-master
centos7 离线安装字体fontconfig ,在无网情况下,我们要解决linux字体问题,可以参考此方法。举一反三
qt关于编译fontconfig缺少的头文件,跟我的博客关于如何编译qt-pc,qt-x86,qt-arm,缺少中文字体的支持,和编译fontconfig.h的头文件。
fontconfig-2.3.2.tar
Qt不能编译程序时,说找不到什么类 类名忘记了 反正安装这个就行了
fontconfig-2.11.1.tar.bz2
fontconfig-2.13.1-4.el8.aarch64.rpm
fontconfig-2.13.1.tar.bz2
fontconfig-2.7.2.tar.gz
1、包含安装命令和rpm包 2、解压打开txt执行即可改成sh也可以
参考项目包含fontconfig静态库项目,fc-cache,fc-list子程序项目, 以及如何移植到windows的详细过程
linux下的fontconfig-2.9.0
fontconfig-2.4.2.tar.gz,包含它所依赖的库expat-2.0.0.tar.gz。