在WINDOWS上编译,先要在LINUX上编译。

  • 下载

​https://www.alsa-project.org/wiki/Main_Page​

​ftp://ftp.alsa-project.org/pub/​

alsa-lib-xxxx.tar.bz2

alsa-utils-xxxx.tar.bz2

  • 编译alsa-lib
if [ "$1" == "" ]; then
BUILD_LIBS=${HOME}/lib-ffmpeg
fi

export PATH=${BUILD_LIBS}/bin:${PATH}
export PKG_CONFIG_PATH=${BUILD_LIBS}/lib/pkgconfig

make clean

./configure \
--prefix=${BUILD_LIBS} \
--enable-shared

make
make install
  • 编译alsa-utils
if [ "$1" == "" ]; then
BUILD_LIBS=${HOME}/lib-ffmpeg
fi

export PATH=${BUILD_LIBS}/bin:${PATH}
export PKG_CONFIG_PATH=${BUILD_LIBS}/lib/pkgconfig

make clean

./configure \
--prefix=${BUILD_LIBS} \
--enable-shared

make
make install

看到参数如下,吾没有理会,也许别人有用?

./configure \
--prefix=${BUILD_LIBS} \
--with-alsa-inc-prefix=${BUILD_LIBS}/include \
--with-alsa-prefix=${BUILD_LIBS}/lib \
--disable-alsamixer --disable-xmlto --disable-nls