[sdlsound] ALSA required?

Jason Bodnar jason at shakabuku.org
Mon Sep 2 00:51:25 EDT 2002

> > Is libasound really required?
> Build SDL without ALSA support.
>   cd /where/i/downloaded/SDL12
>   ./configure --disable-alsa

I've built SDL without alsa.
> (Actually, there's several there you will need to disable, probably).
> SDL_sound doesn't use ALSA (or any other sound playback API) 
> directly, since it goes through SDL. SDL_sound (the library) doesn't 
> even playback any sound directly...the "playsound" test application does.

I renamed /usr/lib/libSDL* so the build process wouldn't find them and now
make dies with:

gcc -shared  SDL_sound.lo audio_convert.lo extra_rwops.lo -Wl,--whole-archive
decoders/.libs/libdecoders.al decoders/mpglib/.libs/libmpglib.al
-Wl,--no-whole-archive  -L/usr/lib decoders/.libs/libdecoders.al
-L/home/jbodnar/projects/mp3/filesystem/usr/lib -L/usr/X11R6/lib
decoders/mpglib/.libs/libmpglib.al /usr/lib/libasound.so -lm -ldl -lX11 -lXext
/usr/lib/libSDL.so -lpthread    -Wl,-rpath
-Wl,/home/jbodnar/projects/mp3/filesystem/usr/lib -Wl,-soname
-Wl,libSDL_sound-0.1.so.5 -o .libs/libSDL_sound-0.1.so.5.0.0
gcc: /usr/lib/libSDL.so: No such file or directory
make[2]: *** [libSDL_sound.la] Error 1
make[2]: Leaving directory `/home/jbodnar/projects/mp3/build/SDL_sound'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jbodnar/projects/mp3/build/SDL_sound'
make: *** [all-recursive-am] Error 2

I don't understand why all the -L/usr/lib/* are coming from and why it's not
finding libSDL in /home/jbodnar/projects/mp3/filesystem/usr/lib:

]$ dir /home/jbodnar/projects/mp3/filesystem/usr/lib/libSDL.so
lrwxrwxrwx    1 jbodnar  jbodnar        19 Sep  1 23:45
/home/jbodnar/projects/mp3/filesystem/usr/lib/libSDL.so -> libSDL-1.2.so.0.0.4*
> Note that most, if not all, of the audio targets for SDL spin their own
> thread for playback (MacOS 8/9 support doesn't, but it runs in a hardware
> interrupt instead), so you'll probably need pthread support anyhow.

I'm find with pthread support. I built SDL_mixer without a problem and it
needs pthreads. I wasn't happy with it's sound quality though and I'm hoping
SDL_sound will do better.

Jason Bodnar
jason at shakabuku.org

More information about the sdlsound mailing list