- 下载
Pixman / pixman · GitLab
我下载了0.34
- 编译0.34
BUILD_LIBS=${HOME}/build_libs
CROSS_NAME=aarch64-mix210-linux
LIB_DIR=${BUILD_LIBS}./autogen.sh./configure \--prefix=${BUILD_LIBS} \--host=${CROSS_NAME} \CPPFLAGS=-I${LIB_DIR}/include \LDFLAGS=-L${LIB_DIR}/lib \LIBS=-lz \--enable_gtk=no \--enable_shared=yes \CC=${CROSS_NAME}-gcc \LD=${CROSS_NAME}-ldmake
make install
检查
$ file libpixman-1.so.0.34.1
libpixman-1.so.0.34.1: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, with debug_info, not stripped
- 编译0.44(失败)
新建文件
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'arm'
endian = 'little'[built-in options]
c_args = []
c_link_args = [][binaries]
c = 'aarch64-mix210-linux-gcc'
cpp = 'aarch64-mix210-linux-g++'
ar = 'aarch64-mix210-linux-ar'
ld = 'aarch64-mix210-linux-ld'
objcopy = 'aarch64-mix210-linux-objcopy'
strip = 'aarch64-mix210-linux-strip'
pkgconfig = 'aarch64-mix210-linux-pkg-config'
编译脚本
LIB_DIR=${HOME}/build_libs/lib64
BUILD_DIR=`pwd`/builddir
if [ ! -d ${BUILD_DIR} ]; thenmkdir ${BUILD_DIR}
fiexport LD_LIBRARY_PATH=${LIB_DIR}MESON_PATH=`pwd`/../meson-1.6.0/meson.py${MESON_PATH} \setup --cross-file cross_file.txt \builddir --prefix ${BUILD_DIR}ninjaninja install
检查