目标平台: 全志A40i
配置交叉环境
export PATH=/home/fangxin/Documents/buildroot-A40i-QT-sdk-20220623/sysroot/usr/local/Qt-5.12.6/bin:$PATH
export LIB_PATH=/home/fangxin/Documents/buildroot-A40i-QT-sdk-20220623/sysroot/usr/local/Qt-5.12.6/lib:$LIB_PATH
export PLUGIN_PATH=/home/fangxin/Documents/buildroot-A40i-QT-sdk-20220623/sysroot/usr/local/Qt-5.12.6/plugins:$PLUGIN_PATH
export QML2_PATH=/home/fangxin/Documents/buildroot-A40i-QT-sdk-20220623/sysroot/usr/local/Qt-5.12.6/qml:$QML2_PATH
source /home/fangxin/Documents/buildroot-A40i-QT-sdk-20220623/env-setup
下载pulseaudio-10.0
解压后,在解压路径创建文件夹
mkdir output
创建编译脚本
#!/bin/bash
export PATH=$PATH:/home/fangxin/Documents/buildroot-A40i-QT-sdk-20220623/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabihf/bin
./configure CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ --host=arm --prefix=/home/fangxin/Desktop/mylib/pulseaudio-10.0/output
编译得到的文件都在output目录内