[MPlayer-users] Getting libvorbis to work on mingw

Josh joshf87 at live.com
Sun Oct 14 21:29:05 CEST 2012


Somewhat related to that recent topic, but I have never gotten libvorbis 
to work with mplayer on mingw and has always been broken. I tried 
Sherpya's libvorbis and that didn't work either. OggTheora support works 
fine, and vorbis compiled fine. I couldn't find anything on the 
interwebs saying I should be doing anything other than './configure && 
make && make install'.

============ Checking for OggVorbis support ============

#include <tremor/ivorbiscodec.h>
int main(void) { vorbis_packet_blocksize(0, 0); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith 
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes 
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99 -Werror-implicit-function-declaration -O4 -march=i486 
-mtune=generic -pipe -ffast-math -fomit-frame-pointer 
-fno-tree-vectorize /tmp/mplayer-configure-25172-1280/tmp.c 
-Ilibdvdread4 -I. -Iffmpeg -I/E/Buildsys/MinGW/src/live-10.11.2012 
-fno-common -I/mingw/include/  -I/mingw/include/freetype2 
-I/mingw/include -static  -lwinmm -ffast-math -lws2_32 -liconv -lpng -lz 
-ljpeg -lbluray -lcdio_cdda -lcdio -lcdio_paranoia -lwinmm -L/mingw/lib 
-lfreetype -lz -lfontconfig -lexpat -lfreetype -lz -lfribidi -lenca -lz 
-llzo2 -lmad  -L/mingw/lib -lcaca -lz -lSDL -lwinmm -lgdi32 -ldxguid 
-lopengl32 -lgdi32 -lwinmm -lgdi32  -o 
/tmp/mplayer-configure-25172-1280/tmp.exe -logg -lvorbisidec -lm
C:/Users/Joshua/AppData/Local/Temp/mplayer-configure-25172-1280/tmp.c:1:33: 
fatal error: tremor/ivorbiscodec.h: No such file or directory
compilation terminated.



#include <vorbis/vorbisenc.h>
int main(void) { vorbis_encode_ctl(0, 0, 0); ogg_stream_clear(0); return 
0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith 
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes 
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99 -Werror-implicit-function-declaration -O4 -march=i486 
-mtune=generic -pipe -ffast-math -fomit-frame-pointer 
-fno-tree-vectorize /tmp/mplayer-configure-25172-1280/tmp.c 
-Ilibdvdread4 -I. -Iffmpeg -I/E/Buildsys/MinGW/src/live-10.11.2012 
-fno-common -I/mingw/include/  -I/mingw/include/freetype2 
-I/mingw/include -static  -lwinmm -ffast-math -lws2_32 -liconv -lpng -lz 
-ljpeg -lbluray -lcdio_cdda -lcdio -lcdio_paranoia -lwinmm -L/mingw/lib 
-lfreetype -lz -lfontconfig -lexpat -lfreetype -lz -lfribidi -lenca -lz 
-llzo2 -lmad  -L/mingw/lib -lcaca -lz -lSDL -lwinmm -lgdi32 -ldxguid 
-lopengl32 -lgdi32 -lwinmm -lgdi32  -o 
/tmp/mplayer-configure-25172-1280/tmp.exe -lvorbis -lvorbisenc -logg -lm
E:/Buildsys/MinGW/lib\libvorbisenc.a(vorbisenc.o):vorbisenc.c:(.text+0x3500): 
undefined reference to `vorbis_info_clear'
E:/Buildsys/MinGW/lib\libvorbisenc.a(vorbisenc.o):vorbisenc.c:(.text+0x3514): 
undefined reference to `vorbis_info_clear'
E:/Buildsys/MinGW/lib\libvorbisenc.a(vorbisenc.o):vorbisenc.c:(.text+0x3718): 
undefined reference to `vorbis_info_clear'
collect2: ld returned 1 exit status



#include <vorbis/vorbisenc.h>
int main(void) { vorbis_encode_ctl(0, 0, 0); ogg_stream_clear(0); return 
0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith 
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes 
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99 -Werror-implicit-function-declaration -O4 -march=i486 
-mtune=generic -pipe -ffast-math -fomit-frame-pointer 
-fno-tree-vectorize /tmp/mplayer-configure-25172-1280/tmp.c 
-Ilibdvdread4 -I. -Iffmpeg -I/E/Buildsys/MinGW/src/live-10.11.2012 
-fno-common -I/mingw/include/  -I/mingw/include/freetype2 
-I/mingw/include -static  -lwinmm -ffast-math -lws2_32 -liconv -lpng -lz 
-ljpeg -lbluray -lcdio_cdda -lcdio -lcdio_paranoia -lwinmm -L/mingw/lib 
-lfreetype -lz -lfontconfig -lexpat -lfreetype -lz -lfribidi -lenca -lz 
-llzo2 -lmad  -L/mingw/lib -lcaca -lz -lSDL -lwinmm -lgdi32 -ldxguid 
-lopengl32 -lgdi32 -lwinmm -lgdi32  -o 
/tmp/mplayer-configure-25172-1280/tmp.exe -lvorbis -logg -lm
C:\Users\Joshua\AppData\Local\Temp\ccN4pO4h.o:tmp.c:(.text.startup+0x26): undefined 
reference to `vorbis_encode_ctl'
collect2: ld returned 1 exit status


Result is: no


More information about the MPlayer-users mailing list