[alsa-devel] How to cross compile the alsa ?

Dámaso López dlopezsk at gmail.com
Tue Mar 27 16:35:17 CEST 2012

Hi Clemens,

I added 2 parameters and return:

# arm-gp2x-linux-gcc -o microphone microphone.c -lasound -static -ldl -lpthread

In function `snd_dlopen':

/home/dam/alsa-lib-1.0.17/src/dlmisc.c:64: warning: Using 'dlopen' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking

2012/3/27 Clemens Ladisch <clemens at ladisch.de>:
> Dámaso López wrote:
>> # arm-gp2x-linux-gcc -o micro micro.c -lasound -static
> You still do not have -ldl and -lpthread.
> Regards,
> Clemens

More information about the Alsa-devel mailing list