compile alsa-lib
./configure --target=arm-linux --host=arm-XXXX-linux-gnueabi --prefix=/home/zhaoy/out
--host means compiler will be setted
then make, the libasound.so will at src/.lib/libasound.so.2.0.0.0
you can ln it to libasound.so
a total config is:
./configure --host=arm-linux --prefix=$PWD/../../output/arm-linux --enable-static --enable-shared --disable-python --with-conf
igdir=/usr/local/share --with-plugindir=/usr/local/lib/alsa_lib
--with-configdir default is --prefix.
it will affect the includ/config.h 's ALSA_CONFIG_DIR
make install
this will create the lib in /home/zhaoy/out folder
compile alsa-utils
sudo -i
add arm-XXXX-linux-gnueabi PATH to the /etc/profile
open a new console
execute below:
./configure --target=arm-linux --host=arm-XXXX-linux-gnueabi --prefix=/home/zhaoy/out --with-libiconv-prefix=/home/zhaoy/out
CFLAGS="-I/home/zhaoy/out/include" LDFLAGS="-L/home/zhaoy/out/lib -lasound" --disable-alsamixer --disable-xmlto
make
it will failed
but we can compile the aplay :
cd aplay
make
阅读(2141) | 评论(0) | 转发(0) |