ARM环境下编译ALSA
(1): alsa-lib-1.0.26.tar.bz2
(2):alsa-utils-1.0.26.tar.bz2
2: 把上述两个文件解压到同一个文件夹下面.
3: 编写配置脚本如下(注意交叉编译器的路径根据自己具体的情况修改)
#!/bin/sh
ALSA_LIB_INC=$PWD/alsa-lib-1.0.26/include
INSTALL_DIR=$PWD/alsa-lib-1.0.26/INSTALL
rm -rf $INSTALL_DIR
mkdir $INSTALL_DIR
cd ./alsa-lib-1.0.26/
./configure --host=arm-linux --target=arm-linux --enable-shared --disable-python CC=/home/hsx/crossgcc/arm-2011.03/bin/arm-none-linux-gnueabi-gcc --with-configdir=$INSTALL_DIR --prefix=$INSTALL_DIR
make
make install
cd ..
cd ./alsa-utils-1.0.26/
./configure --host=arm-linux --target=arm-linux CPPFLAGS=-I$INSTALL_DIR/include CC=/home/hsx/crossgcc/arm-2011.03/bin/arm-none-linux-gnueabi-gcc LDFLAGS=-L$INSTALL_DIR/lib --disable-option-checking --disable-FEATURE--disable-nls --disable-dependency-tracking --enable-dependency-tracking --disable-alsatest --disable-alsamixer --disable-alsaconf --disable-alsaloop --disable-xmlto --disable-largefile
make
ARM环境编译ALS 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)