pipewire是一个服务器和用户空间API,用于 处理多媒体管道。是webrtc必要的依赖之一,下面是该库的交叉编译过程:
一.源码下载
由于我需要0.3版本的pipewire,所以进入网站Releases · PipeWire / pipewire · GitLab下载了pipewire-0.3.76版本的代码。
二.写meson配置文件
[binaries]
c = '/home/fanqw/***/host/bin/aarch64-buildroot-linux-gnu-gcc'
cpp = '/home/fanqw/***/host/bin/aarch64-buildroot-linux-gnu-g++'
ar = '/home/fanqw/***/host/bin/aarch64-buildroot-linux-gnu-ar'
strip = '/home/fanqw/***/host/bin/aarch64-buildroot-linux-gnu-strip'
pkgconfig = '/home/fanqw/***/host/bin/pkg-config'
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'a35'
endian = 'little'
[pkg_config]
path = '/home/fanqw/***/host/bin/pkg-config'
libdir = '/home/fanqw/***/host/lib/pkgconfig'
[properties]
pkg_config_libdir = '/home/fanqw/***/host/lib/pkgconfig'
三 使用meson生成Makefile
/usr/bin/meson builddir --cross-file=cross_file.txt --prefix=`pwd`/output
make
make install