Having sound with SDL built on Ubuntu Maverick (hint)

Hi,

Just a hint to spare the time of the next who may experience this: when
using a SDL 1.2.14 built from sources (with options
–enable-video-directfb=no --disable-rpath --prefix=XXX
-exec-prefix=YYY), at least on Ubuntu Maverick, with the resulting
library no sound was available (“No available audio device”).

I could check that PulseAudio was activated and running
(/usr/bin/pulseaudio --start --log-target=syslog), but at SDL
configuration-time the PulseAudio support got nevertheless deactivated:

“”“
checking for ALSA CFLAGS…
checking for ALSA LDFLAGS… -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.9.0… not present.
checking for snd_ctl_open in -lasound… no
checking for artsc-config… no
checking for esd-config… no
checking for ESD - version >= 0.2.8… no
*** The esd-config script installed by ESD could not be found
*** If ESD was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the ESD_CONFIG environment variable to the
*** full path to esd-config.
checking for pkg-config… /usr/bin/pkg-config
*checking for PulseAudio 0.9 support… no
*checking audio/audiolib.h usability… no
checking audio/audiolib.h presence… no
checking for audio/audiolib.h… no
checking for AuOpenServer in -laudio… no
”""

After some investigation, to enable PulseAudio support in the resulting
library, you must have libpulse-simple.* files, which are provided by
the libpulse-dev package.

Then build and execution works as expected (with proper sound).

Best regards,

Olivier Boudeville.