Thursday, March 4, 2010

Cross compiling ALSA library & utilities

 

Compile alsa-utils-1.0.22

CC=arm_v5t_le-gcc ./configure --host=i686-linux --target=arm-linux --disable-alsamixer --disable-xmlto --disable-largefile --without-librt --prefix=`pwd`/../alsa-lib-1.0.22/_install/ --without-libintl-prefix --without-libiconv-prefix --disable-nls --with-alsa-prefix=../alsa-lib-1.0.22/_install/lib/ --with-alsa-inc-prefix=../alsa-lib-1.0.22/_install/include/ --disable-alsaconf

more details to be added… for time being use this command.

Replace path with your alsa source code directory

1 comment:

Rowan said...

This post is ancient but I was hoping you could help answer a question I have around cross compiling.

I configure alsa-utils using:
CC=arm-linux-gnueabihf-gcc ./configure --prefix=/home/username/20160311_alsa_work/alsa/install --host=arm-linux --with-alsa-inc-prefix=/home/username/20160311_alsa_work/alsa/install/include --with-alsa-prefix=/home/username/20160311_alsa_work/alsa/install/lib --disable-alsamixer --disable-xmlto --disable-nls --disable-bat --with-udev-rules-dir=/home/username/20160311_alsa_work/alsa/install/lib/udev --with-asound-state-dir=/home/username/20160311_alsa_work/alsa/install/var/lib/alsa --disable-alsaconf

But when I run "arecord -l" on my target I get:
**** List of CAPTURE Hardware Devices ****
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /home/username/20160311_alsa_work/alsa/install/share/alsa/alsa.conf
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL hw:0
arecord: device_list:277: control open (0): No such file or directory

Any idea what I am doing wrong?