ARM環(huán)境下編譯ALSA
(1): alsa-lib-1.0.26.tar.bz2
(2):alsa-utils-1.0.26.tar.bz2
2: 把上述兩個(gè)文件解壓到同一個(gè)文件夾下面.
3: 編寫配置腳本如下(注意交叉編譯器的路徑根據(jù)自己具體的情況修改)
#!/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
評(píng)論