ubuntu系统下交叉编译freetype
一、安装交叉编译工具链
参考我的博客: ubuntu系统下交叉编译工具链配置
二、准备文件
1.freetype-2.13.2.tar.xz
网址:
https://sourceforge.net/projects/freetype/files/
点击"Download Latest Version freetype-2.13.2.tar.xz (2.5 MB)"
等待倒计时结束即可,下载得到文件"freetype-2.13.2.tar.xz"
解压移动文件至"/home/heqingchun/Arm"
tar -xvf freetype-2.13.2.tar.xz
cp -fr freetype-2.13.2 /home/heqingchun/Arm
进入目录
cd /home/heqingchun/Arm/freetype-2.13.2
配置
./configure --prefix=/home/heqingchun/Arm/install --host=aarch64-linux-gnu --enable-shared CC=aarch64-linux-gnu-gcc --with-zlib=no --with-bzip2=no --with-png=no --with-harfbuzz=no
make -j12 && \
make install
ubuntu系统下交叉编译freetype----完毕