Makefile Woes
Kai Holthaus
kmh at sonic.net
Mon Oct 1 11:22:13 EDT 2007
Hi,
I'm trying to compile SDL_sound in a cross-compile environment, and I can't
seem to get the Makefile to honor the parameters given to the configure
script.
This is the configure call:
$ ./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc
--sharedstatedir=/usr/share --localstatedir=/var --libdir=/usr/lib --infodir=/usr/info
--includedir=/usr/include --oldincludedir=/usr/include --mandir=/usr/share/man
--build=x86_64-linux-gnu --host=i586-minimyth-linux-gnu
LDFLAGS=-L/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr/lib
--disable-smpegtest --enable-flac=no --with-gnu-ld
--with-sdl-prefix=/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr
--with-sdl-exec-prefix=/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr
--with-smpeg-prefix=/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr
--with-smpeg-exec-prefix=/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr
--with-libmikmod-prefix=/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr
--with-libmikmod-exec-prefix=/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr
--with-vorbis-prefix=/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr
--disable-vorbistest --disable-sdltest --disable-libmikmodtest --disable-speex
The make command fails with the following error:
i586-minimyth-linux-gnu-gcc -shared SDL_sound.lo alt_audio_convert.lo
audio_convert.lo extra_rwops.lo -Wl,--whole-archive
decoders/.libs/libdecoders.al decoders/timidity/.libs/libtimidity.al
decoders/mpglib/.libs/libmpglib.al -Wl,--no-whole-archive
decoders/.libs/libdecoders.al
-L/home/kai/Documents/mythTV/gar-minimyth-0.20.2-30/images/main/usr/lib
-lpthread -L/usr/lib -lpthread -lpthread
decoders/timidity/.libs/libtimidity.al -lpthread -lpthread -lpthread
decoders/mpglib/.libs/libmpglib.al -lpthread -lpthread -lpthread /usr/lib/libogg.so
-lpthread /usr/lib/libsmpeg.so /usr/lib/libSDL.so -lpthread /usr/lib/libmikmod.so
-ldl /usr/lib/libvorbis.so -lm /usr/lib/libvorbisfile.so /usr/lib/libvorbisenc.so
-Wl,-soname -Wl,libSDL_sound-1.0.so.1 -o .libs/libSDL_sound-1.0.so.1.0.0
/usr/lib/libogg.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
I'm no expert in Makefiles, automake, and such, but it looking at this, I
wonder why it's looking for "/usr/lib/libsmpeg.so", when the configure call
(see above) specified a different directory for smpeg (ditto for SDL and
libmikmod).
Also, is there a way to let it know where libogg.so should be found?
Finally, the build log also shows that it does compile the speex decoder, even
though I specified "--disable-speex" in the configure call (same result if I
use --enable-speex=no).
Anybody had this problem before and can tell me what I'm doing wrong?
Thanks.
Kai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://icculus.org/pipermail/sdlsound/attachments/20071001/5b776358/attachment.pgp>
More information about the sdlsound
mailing list