新聞中心

ARM環(huán)境下編譯ALSA

作者: 時(shí)間:2016-11-11 來(lái)源:網(wǎng)絡(luò) 收藏
1:下載源文件
(1): alsa-lib-1.0.26.tar.bz2
(2):alsa-utils-1.0.26.tar.bz2
2: 把上述兩個(gè)文件解壓到同一個(gè)文件夾下面.
3: 編寫(xiě)配置腳本如下(注意交叉編譯器的路徑根據(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



關(guān)鍵詞: ARM環(huán)境編譯ALS

評(píng)論


技術(shù)專區(qū)

關(guān)閉