# Agh i'm going crazy - libmixer

**URL:** <https://discourse.libsdl.org/t/agh-im-going-crazy-libmixer/1389>\
**Category:** SDL Development\
**Created:** [December 17, 1999, 7:12am UTC](https://discourse.libsdl.org/t/agh-im-going-crazy-libmixer/1389 "1999-12-17T07:12:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Kendrick](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@Bill\_Kendrick](https://discourse.libsdl.org/u/Bill_Kendrick)\
**Post date:** [December 17, 1999, 7:12am UTC](https://discourse.libsdl.org/t/agh-im-going-crazy-libmixer/1389/1 "1999-12-17T07:12:48Z")

</div>

Damnit! 🙂

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!
