"Mixer not built with MP3 support" on ubuntu

Hi, I am struggling to get MP3 support running on Ubuntu 14.04 LTS x86_64.

The mistake I make is probably as simple as the example app I attached here.

I compile and run it as:
gcc -c mp3.c sdl2-config --cflags
gcc -o mp3 mp3.o sdl2-config --libs -lSDL2_mixer
./mp3

Where these commands expand to:
gcc -c mp3.c -I/usr/include/SDL2 -D_REENTRANT
gcc -o mp3 mp3.o -L/usr/lib/x86_64-linux-gnu -lSDL2 -lSDL2_mixer
./mp3

The output I get is:
compiled with SDL_mixer version: 2.0.0
running with SDL_mixer version: 2.0.0
Mix_Init: Failed to init required mp3 support: Mixer not built with MP3
support

OGG and FLAC do initialize just fine, while MOD also fails like MP3.

The ubuntu package is build like shown here:
http://anonscm.debian.org/cgit/pkg-sdl/packages/libsdl2-mixer.git/tree/debian/rules

Is the order of the configure flags important?
confflags += --enable-music-mp3
confflags += --disable-music-mp3-smpeg
confflags += --enable-music-mp3-mad-gpl

Fwiw, my libSDL2_mixer.so is linked against libmad:
$ ldd /usr/lib/x86_64-linux-gnu/libSDL2_mixer.so | grep mad
libmad.so.0 => /usr/lib/x86_64-linux-gnu/libmad.so.0
(0x00007f047f925000)

So, what am I doing wrong?–
Cheers, Tobias
-------------- next part --------------
A non-text attachment was scrubbed…
Name: mp3.c
Type: text/x-csrc
Size: 850 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20150720/244cd001/attachment.c

The attached patch solve the issue. Please review and apply. Then I’ll
raise an issue for the debian maintainers.–
Cheers, Tobias
-------------- next part --------------
A non-text attachment was scrubbed…
Name: 0001-hook-up-music_mad-for-mp3-support-used-on-e.g.-debia.patch
Type: text/x-patch
Size: 2178 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20150720/e8651e60/attachment.bin

Hi, what is the correct way to get patches in? Can I ask for a commit
bit or do I have to bug somebody specific to get a review?Am 20.07.2015 um 14:21 schrieb Tobias Leich:

The attached patch solve the issue. Please review and apply. Then I’ll
raise an issue for the debian maintainers.


Cheers, Tobias


Cheers, Tobias

File a bug report at https://bugzilla.libsdl.org

Jeffrey Carpenter
@Jeffrey_Carpenter> On Jul 22, 2015, at 05:27, Tobias Leich wrote:

Am 20.07.2015 um 14:21 schrieb Tobias Leich:
The attached patch solve the issue. Please review and apply. Then I’ll
raise an issue for the debian maintainers.


Cheers, Tobias

Hi, what is the correct way to get patches in? Can I ask for a commit
bit or do I have to bug somebody specific to get a review?


Cheers, Tobias


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org