[MPlayer-users] Compile mplayer with alsa support

Frederico Rodrigues Abraham fabraham at tecgraf.puc-rio.br
Thu Mar 4 16:45:41 CET 2004


============ Checking for ALSA audio ============

#include <sys/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==5)); }

cc     /tmp/mplayer-conf-19345-11628.c -o /tmp/mplayer-conf-460-11628.o 
-lasound -ldl -lpthread
/tmp/mplayer-conf-19345-11628.c:1:27: sys/asoundlib.h: No such file or 
directory
/tmp/mplayer-conf-19345-11628.c: In function `main':
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MAJOR' undeclared 
(first use in this function)
/tmp/mplayer-conf-19345-11628.c:2: error: (Each undeclared identifier is 
reported only once
/tmp/mplayer-conf-19345-11628.c:2: error: for each function it appears 
in.)
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MINOR' undeclared 
(first use in this function)

ldd /tmp/mplayer-conf-460-11628.o
ldd: /tmp/mplayer-conf-460-11628.o: No such file or directory


#include <sys/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); }

cc     /tmp/mplayer-conf-19345-11628.c -o /tmp/mplayer-conf-460-11628.o 
-lasound -ldl -lpthread
/tmp/mplayer-conf-19345-11628.c:1:27: sys/asoundlib.h: No such file or 
directory
/tmp/mplayer-conf-19345-11628.c: In function `main':
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MAJOR' undeclared 
(first use in this function)
/tmp/mplayer-conf-19345-11628.c:2: error: (Each undeclared identifier is 
reported only once
/tmp/mplayer-conf-19345-11628.c:2: error: for each function it appears 
in.)
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MINOR' undeclared 
(first use in this function)

ldd /tmp/mplayer-conf-460-11628.o
ldd: /tmp/mplayer-conf-460-11628.o: No such file or directory


#include <alsa/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); }

cc     /tmp/mplayer-conf-19345-11628.c -o /tmp/mplayer-conf-460-11628.o 
-lasound -ldl -lpthread
/tmp/mplayer-conf-19345-11628.c:1:28: alsa/asoundlib.h: No such file or 
directory
/tmp/mplayer-conf-19345-11628.c: In function `main':
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MAJOR' undeclared 
(first use in this function)
/tmp/mplayer-conf-19345-11628.c:2: error: (Each undeclared identifier is 
reported only once
/tmp/mplayer-conf-19345-11628.c:2: error: for each function it appears 
in.)
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MINOR' undeclared 
(first use in this function)

ldd /tmp/mplayer-conf-460-11628.o
ldd: /tmp/mplayer-conf-460-11628.o: No such file or directory


#include <sys/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==1 && SND_LIB_MINOR==0)); }

cc     /tmp/mplayer-conf-19345-11628.c -o /tmp/mplayer-conf-460-11628.o 
-lasound -ldl -lpthread
/tmp/mplayer-conf-19345-11628.c:1:27: sys/asoundlib.h: No such file or 
directory
/tmp/mplayer-conf-19345-11628.c: In function `main':
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MAJOR' undeclared 
(first use in this function)
/tmp/mplayer-conf-19345-11628.c:2: error: (Each undeclared identifier is 
reported only once
/tmp/mplayer-conf-19345-11628.c:2: error: for each function it appears 
in.)
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MINOR' undeclared 
(first use in this function)

ldd /tmp/mplayer-conf-460-11628.o
ldd: /tmp/mplayer-conf-460-11628.o: No such file or directory


#include <alsa/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==1 && SND_LIB_MINOR==0)); }

cc     /tmp/mplayer-conf-19345-11628.c -o /tmp/mplayer-conf-460-11628.o 
-lasound -ldl -lpthread
/tmp/mplayer-conf-19345-11628.c:1:28: alsa/asoundlib.h: No such file or 
directory
/tmp/mplayer-conf-19345-11628.c: In function `main':
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MAJOR' undeclared 
(first use in this function)
/tmp/mplayer-conf-19345-11628.c:2: error: (Each undeclared identifier is 
reported only once
/tmp/mplayer-conf-19345-11628.c:2: error: for each function it appears 
in.)
/tmp/mplayer-conf-19345-11628.c:2: error: `SND_LIB_MINOR' undeclared 
(first use in this function)

ldd /tmp/mplayer-conf-460-11628.o
ldd: /tmp/mplayer-conf-460-11628.o: No such file or directory
Result is: no
##########################################

    It did not find any of the header files it required to enable alsa 
sound...
    -- Fred

> On Thursday, 04 March 2004 at 15:12, Frederico Rodrigues Abraham wrote:
> >     Hi. I want to compile mplayer with alsa support, but although i have 
> > the packages alsa-headers, alsa-modules, alsa-common, etc, the configure 
> > script keeps telling my there is no ALSA sound...
> 
> Show us the relevant part of configure.log.
> 
> 




More information about the MPlayer-users mailing list