官网:https://www.alsa-project.org/wiki/Main_Page
下载:https://www.alsa-project.org/files/pub/lib/
源码:alsa-lib-1.2.9.tar.bz2
Step 1:解压
tar -jxvf alsa-lib-1.2.9.tar.bz2
cd alsa-lib-1.2.9/
Step 2:创建安装目录
mkdir arm_alsa
Step 3:配置
./configure --host=aarch64-linux-gnu --prefix=/home/xxx/share/3rdparty/alsa-lib-1.2.9/arm_alsa --enable-static=no --enable-shared=yes
注意:不能同时编译生成动态库和静态库,只能二选一。
Step 4:编译安装
make
make install