[MPlayer-users] No ALSA detect in configure

Stephen Stocker lpar at par1.net
Sat Nov 15 15:09:47 CET 2003


  I'm completely lost on this. MPlayer's configure script isn't
  detecting the newer ALSA CVS (as noted in earlier post), but I can't
  figure out why not.

  The relevant section of configure.log follows:


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

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

cc     /tmp/mplayer-conf-22186-13522.c -o /tmp/mplayer-conf-26168-13522.o -lasound -ldl -lpthread
In file included from /tmp/mplayer-conf-22186-13522.c:1:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead.

ldd /tmp/mplayer-conf-26168-13522.o
	libasound.so.2 => /usr/lib/libasound.so.2 (0x4001a000)
	libdl.so.2 => /lib/libdl.so.2 (0x400b9000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x400bc000)
	libc.so.6 => /lib/libc.so.6 (0x400d1000)
	libm.so.6 => /lib/libm.so.6 (0x401f4000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


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

cc     /tmp/mplayer-conf-22186-13522.c -o /tmp/mplayer-conf-26168-13522.o -lasound -ldl -lpthread
In file included from /tmp/mplayer-conf-22186-13522.c:1:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead.

ldd /tmp/mplayer-conf-26168-13522.o
	libasound.so.2 => /usr/lib/libasound.so.2 (0x4001a000)
	libdl.so.2 => /lib/libdl.so.2 (0x400b9000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x400bc000)
	libc.so.6 => /lib/libc.so.6 (0x400d1000)
	libm.so.6 => /lib/libm.so.6 (0x401f4000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


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

cc     /tmp/mplayer-conf-22186-13522.c -o /tmp/mplayer-conf-26168-13522.o -lasound -ldl -lpthread

ldd /tmp/mplayer-conf-26168-13522.o
	libasound.so.2 => /usr/lib/libasound.so.2 (0x4001a000)
	libdl.so.2 => /lib/libdl.so.2 (0x400b9000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x400bc000)
	libc.so.6 => /lib/libc.so.6 (0x400d1000)
	libm.so.6 => /lib/libm.so.6 (0x401f4000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Result is: no
##########################################


  And a new NOTES file from ALSA CVS:

Old versus new PCM API (values returned using indirect pointers)
================================================================

>From the binary compatibility view, there is no change. For compilation,
1.0 ALSA applications do not need any change. The older applications must
use this include sequence:

#define ALSA_PCM_OLD_HW_PARAMS_API
#define ALSA_PCM_OLD_SW_PARAMS_API
#include <alsa/asoundlib.h>

If you use already the new API, you may remove old defines selecting
this API, because they are no longer used:

#define ALSA_PCM_NEW_HW_PARAMS_API
#define ALSA_PCM_NEW_SW_PARAMS_API

---
  I've tried everything I know to try, with no luck. MPlayer compiled
  against the previous (October 29) ALSA CVS works fine with the newest
  ALSA, it just won't compile against it.

  Thanks in advance,
  Steve



More information about the MPlayer-users mailing list