I'm compiling a project that uses SDL_mixer to play .ogg
files. However, Mix_Init(MIX_INIT_OGG)
fails, and Mix_GetError()
returns "Mixer not built with Ogg Vorbis support"
. The version of SDL_mixer I'm using is 1.2.12, downloaded via Homebrew.
So I downloaded the sources for SDL_mixer (same version, 1.2.12), and tried building it with Ogg support, i.e. ./configure --enable-music-ogg
, but configure
is unable to find the Vorbis header files. This is the output it's giving:
checking vorbis/vorbisfile.h usability... no
checking vorbis/vorbisfile.h presence... no
checking for vorbis/vorbisfile.h... no
checking for ov_open_callbacks in -lvorbisfile... no
configure: WARNING: *** Unable to find Ogg Vorbis library (http://www.xiph.org/)
configure: WARNING: Ogg Vorbis support disabled
I even tried passing --includedir=/usr/local/include
to configure
, without success. I have both the Vorbis and Ogg header files in /usr/local/include
, so e.g. the path to vorbisfile.h
is /usr/local/include/vorbis/vorbisfile.h
. I also tried building both libogg and libvorbis from scratch, but I still get the same errors. I'm using OS X 10.11.1 beta.
What am I doing wrong?
Edit
Output of brew ls sdl_mixer
:
/usr/local/Cellar/sdl_mixer/1.2.12/include/SDL/SDL_mixer.h
/usr/local/Cellar/sdl_mixer/1.2.12/lib/libSDL_mixer-1.2.0.dylib
/usr/local/Cellar/sdl_mixer/1.2.12/lib/pkgconfig/SDL_mixer.pc
/usr/local/Cellar/sdl_mixer/1.2.12/lib/ (2 other files)