[SDL] Can't build playsound in SDL_sound-1.0.0
Jason Bodnar
jason at shakabuku.org
Thu Nov 14 15:43:01 PST 2002
I'm having problems building playsound in the SDL_sound-1.0.0 distribution.
Seems gcc isn't getting told about SDL libs:
/bin/sh ../libtool --mode=link gcc -g -O2 -o playsound
playsound-playsound.o ../libSDL_sound.la
gcc -g -O2 -o .libs/playsound playsound-playsound.o ../.libs/libSDL_sound.so
-Wl,--rpath -Wl,/usr/local/lib
playsound-playsound.o: In function `output_versions':
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:92:
undefined reference to `SDL_Linked_Version'
playsound-playsound.o: In function `main':
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:804:
undefined reference to `SDL_Init'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:995:
undefined reference to `SDL_OpenAudio'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1025:
undefined reference to `SDL_PauseAudio'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1039:
undefined reference to `SDL_PauseAudio'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1047:
undefined reference to `SDL_Delay'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1049:
undefined reference to `SDL_CloseAudio'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1056:
undefined reference to `SDL_Quit'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1036:
undefined reference to `SDL_Delay'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:997:
undefined reference to `SDL_GetError'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1000:
undefined reference to `SDL_Quit'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:917:
undefined reference to `SDL_RWFromFP'
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:806:
undefined reference to `SDL_GetError'
../.libs/libSDL_sound.so: undefined reference to `sqrt'
../.libs/libSDL_sound.so: undefined reference to `SDL_RWFromFile'
../.libs/libSDL_sound.so: undefined reference to `SDL_FreeRW'
../.libs/libSDL_sound.so: undefined reference to `SDL_AllocRW'
../.libs/libSDL_sound.so: undefined reference to `cos'
../.libs/libSDL_sound.so: undefined reference to `sin'
../.libs/libSDL_sound.so: undefined reference to `pow'
../.libs/libSDL_sound.so: undefined reference to `SDL_ThreadID'
../.libs/libSDL_sound.so: undefined reference to `SDL_DestroyMutex'
../.libs/libSDL_sound.so: undefined reference to `tan'
../.libs/libSDL_sound.so: undefined reference to `SDL_mutexV'
../.libs/libSDL_sound.so: undefined reference to `SDL_mutexP'
../.libs/libSDL_sound.so: undefined reference to `SDL_SetError'
../.libs/libSDL_sound.so: undefined reference to `SDL_CreateMutex'
collect2: ld returned 1 exit status
make: *** [playsound] Error 1
I'm building this with uClibc so my configuration is fairly complex:
$ env PATH=/home/jbodnar/projects/mp3/build/i386-linux-uclibc/usr/bin:$PATH
./configure --enable-static=no
--with-sdl-exec-prefix=/home/jbodnar/projects/mp3/build/SDL-1.2.4/sdl-config
--disable-sdltest --enable-voc=no --enable-wav=no --enable-raw=no
--enable-aiff=no --enable-au=no --enable-shn=no --enable-midi=no
--enable-flac=no --enable-seekable-flac=no --enable-smpeg=no
--enable-mikmod=no --enable-modplug=no --enable-ogg=no --enable-physfs=no
Could this be messing things up? What should the Makefile look like for
playsound? Here are some sections of note from the one that gets generate by
the configure above:
...
SDL_CFLAGS =
SDL_CONFIG = /home/jbodnar/projects/mp3/build/SDL-1.2.4/sdl-config
SDL_LIBS =
...
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
CPPFLAGS =
LDFLAGS =
LIBS =
...
Should any of those that aren't defined be defined?
--
Jason Bodnar
jason at shakabuku.org
http://www.shakabuku.org
More information about the SDL
mailing list