"Mixer not built with MP3 support" on ubuntu |
Tobias Leich
Guest
|
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 _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||
|
"Mixer not built with MP3 support" on ubuntu |
Tobias Leich
Guest
|
The attached patch solve the issue. Please review and apply. Then I'll
raise an issue for the debian maintainers. -- Cheers, Tobias _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||
|