[alsa-devel] developing audio with ALSA

Colin Guthrie gmane at colin.guthr.ie
Wed Aug 13 10:19:30 CEST 2008

Henry Ho wrote:
> Hi
> I'm developing audio application using ALSA library. My target platform is ARM 
> platform baseboard. I use GNU toolchain cross compiler as you can see from 
> the following message:
> arm-none-linux-gnueabi-gcc -lasound -g -O2 -I./alsa-lib-1.0.17rc2/include -o pcm pcm.c
> /usr/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lasound
> collect2: ld returned 1 exit status
> make: *** [versatile] Error 1
> I know that is because the linker cannot find the asound library. Should I cross compiling 
> ALSA driver/lib/utils first?

The drivers will possibly already be in your kernel, and the utils will 
help you initialise your sound hardware properly (set volumes, switches 

And the library, well, you defo need that  :)


More information about the Alsa-devel mailing list