mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] sdl_mixer Mix_InitAudio won't run


From: hans
Subject: [Mingw-cross-env-list] sdl_mixer Mix_InitAudio won't run
Date: Thu, 25 Mar 2010 18:18:38 -0400

Hello,

I've been trying to get a cross compiling environment with SDL including
SDL_Mixer with ogg support, and I've found that your script has been the
most successful, since test programs actually compile. However, when I
run the program either in wine or windows, it seems to stop working at
the first call of Mix_InitAudio. This is what wine reports:

###
err:menubuilder:WinMain unknown option -a
err:menubuilder:WinMain unknown option -r
fixme:keyboard:X11DRV_LoadKeyboardLayout L"00000409", 0080: stub!
fixme:keyboard:X11DRV_LoadKeyboardLayout L"04090409", 0001: stub!
err:ntdll:RtlpWaitForCriticalSection section 0x569fc0 "?" wait timed out
in thread 0009, blocked by 0000, retrying (60 sec)
###

I followed the tutorial to the letter, although my Makefile (below)
might be suspect:

###
CROSS=/opt/mingw/usr/bin/i686-pc-mingw32-
CC=$(CROSS)gcc
LD=$(CROSS)ld
AR=$(CROSS)ar

PKG=/opt/mingw/usr/bin/i686-pc-mingw32-pkg-config

CFLAGS=`$(PKG) --cflags sdl SDL_mixer glib-2.0`
LIBS=`$(PKG) --libs sdl SDL_mixer glib-2.0` 

SOURCES =       music.c

all:            music.exe

clean:
                rm -f *.o
                rm music.exe

music.exe:      ${SOURCES}
                ${CC} -Wl,--subsystem,windows -Wall ${CFLAGS} -o music.exe 
${SOURCES}
${LIBS}
###

I am running Ubuntu 9.10. I'm quite new to all this so I'd greatly
appreciate guidance on what I'm doing wrong. Thank you for making such a
useful script!

Regards,

Hans Lo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]