Agh i'm going crazy - libmixer

Damnit! :slight_smile:

I’m trying to compile a win32 version of libmixer.
I got it installed once, after installing a win32 version of SDL 1.0.0.
Then I realized that the path where I placed SDL was off.
(I had it in /usr/local/cross-tools/ and I believe instead I should have it
in /usr/local/cross-tools/i386-mingw32/ )

Anyway, the closest I can get is:

./configure --host=i386-linux --target=mingw32
–prefix=/usr/local/cross-tools/i386-mingw32/
–with-sdl-prefix=/usr/local/cross-tools/i386-mingw32/

creating Makefile
creating mikmod/Makefile
creating timidity/Makefile
make

gcc -g -O2 -I/usr/local/cross-tools//include -Dmain=SDL_main -DCMD_MUSIC
-DWAV_MUSIC -DMOD_MUSIC -I./mikmod -DMID_MUSIC -I./timidity -o playwave
playwave.o -mwindows ./.libs/libmixer.a -L/usr/local/cross-tools//lib
-lmingw32 -lSDLmain /usr/local/lib/libSDL.so /usr/lib/libesd.so
-L/usr/lib -laudiofile -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga
-lXxf86vm -luser32 -lgdi32 -lwinmm -L/usr/local/cross-tools//lib
-lmingw32 -lSDLmain /usr/local/lib/libSDL.so /usr/lib/libesd.so
-L/usr/lib -laudiofile -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga
-lXxf86vm -luser32 -lgdi32 -lwinmm
/usr/local/lib/libSDL.so: file not recognized: File format not recognized
make[1]: *** [playwave] Error 1
make[1]: Leaving directory `/home/kendrick/tmp/mixer-1.0.0’
make: *** [all-recursive] Error 1

Ummm… why is it looking at libSDL.so !?!?!?

sdl-config --libs
-L/usr/local/cross-tools//lib -lmingw32 -lSDLmain -lSDL -luser32 -lgdi32
-lwinmm -mwindows

Maybe it’s picking it up somewhere else?

grep libSDL.o *
grep: mikmod: Is a directory
grep: timidity: Is a directory

Perhaps in one of those directories?

grep libSDL.o mikmod/* timidity/*
[ nothing ]

My brain is getting very foggy right now, but I swear, I’m doing pretty much
the same thing I did when I had accidentally put SDL in the
"/usr/local/cross-tools/" path instead of “/usr/local/cross-tools/i386-mingw32”

<cry!>

-bill!