ALSA 用户态软件(alsa-lib与alsa-utils)交叉编译

alsa-lib-1.2.10 配置与编译

下载地址

https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.10.tar.bz2
export PATH=$PATH:/opt/ext-toolchain/bin/
export CC=arm-linux-gnueabihf-gcc
export CXX=arm-linux-gnueabihf-g++
export LD=arm-linux-gnueabihf-ld
OUTPUT=/usr/local/alsa-lib
./configure \
        --host=arm-linux-gnueabihf \
        --prefix=${OUTPUT} \
        --enable-shared \
        --disable-python \
        --with-configdir=${OUTPUT}/config \
        --with-plugindir=${OUTPUT}/plugin
make -j 12
sudo make install

alsa-utils-1.2.9 配置与编译

下载地址:

https://www.alsa-project.org/files/pub/utils/alsa-utils-1.2.9.tar.bz2
export PATH=$PATH:/opt/ext-toolchain/bin/
export CC=arm-linux-gnueabihf-gcc
export CXX=arm-linux-gnueabihf-g++
export LD=arm-linux-gnueabihf-ld
LIB_PATH=/usr/local/alsa-lib/
./configure \
        --host=arm-linux-gnueabihf \
        --prefix=/usr/local/alsa-utils \
        CFLAGS="-I$LIB_PATH/include" \
        LDFLAGS="-L$LIB_PATH/lib -lasound" \
        --disable-alsamixer \
        --disable-xmlto \
        --with-alsa-inc-prefix=$LIB_PATH/include \
        --with-alsa-prefix=$LIB_PATH/lib

 

posted @ 2023-10-07 09:25  秦舒云  阅读(303)  评论(0编辑  收藏  举报