Chinaunix首页 | 论坛 | 博客
  • 博客访问: 79748
  • 博文数量: 44
  • 博客积分: 286
  • 博客等级: 二等列兵
  • 技术积分: 335
  • 用 户 组: 普通用户
  • 注册时间: 2012-09-23 11:02
文章分类
文章存档

2013年(2)

2012年(42)

我的朋友

分类: LINUX

2012-12-03 20:34:56

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

阅读(2105) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~