嵌入式交叉编译:harfbuzz
- 下载
Index of /software/harfbuzz/release
- 编译脚本1(关闭freetype)
这样编译肯定通过。
BUILD_LIBS=${HOME}/build_libs
CROSS_NAME=aarch64-mix210-linux
LIB_DIR=${BUILD_LIBS}make clean./autogen.shautomake --add-missing./configure \--prefix=${BUILD_LIBS} \--host=${CROSS_NAME} \CPPFLAGS=-I${LIB_DIR}/include \LDFLAGS="-L${LIB_DIR}/lib" \CC=${CROSS_NAME}-gcc \--with-glib=no \--with-cairo=no \--with-icu=no \--with-freetype=no \--enable-sharedmake
make install
- 编译脚本2(打开freetype,编译经常出错)
有的时候,就是需要打开freetype开关。怎么办?编译中的问题是:编译时找到了freetype库,却找不到freetype的依赖库,比如z/png/brotli等。
参考:
部分解决warning: libz.so.1, needed by libfreetype.so, not found (try using -rpath or -rpath-link-CSDN博客
BUILD_LIBS=${HOME}/build_libs
CROSS_NAME=aarch64-mix210-linux
LIB_DIR=${BUILD_LIBS}make clean./autogen.shautomake --add-missing# LIB=-lpng16 -lz -lbrotlidec./configure \--prefix=${BUILD_LIBS} \--host=${CROSS_NAME} \CPPFLAGS=-I${LIB_DIR}/include \LDFLAGS=-L${LIB_DIR}/lib \CC=${CROSS_NAME}-gcc \--with-glib=no \--with-cairo=no \--with-icu=no \--with-freetype=yes \--enable-sharedmake
make install
- 检查
$ file libharfbuzz.so.0.20600.7
libharfbuzz.so.0.20600.7: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, with debug_info, not stripped