Help - Search - Members - Calendar
Full Version: Problems compiling mkv support in mplayer
Hydrogenaudio Forums > Digital Audio/Video > General A/V
QuantumKnot
I've downloaded libebml and libmatroska, configured, compiled, and installed them with no problems. The configure script of mplayer detected matroska was installed and enabled support. But during the mplayer make, I got this error message:

CODE
make -C libmpdemux
make[1]: Entering directory `/home/stephen/mplayer/MPlayer-1.0pre3/libmpdemux'
cc -c -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I../loader  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include     -o demux_mkv.o demux_mkv.cpp
demux_mkv.cpp: In function `void parse_cues(mkv_demuxer_t*, long long unsigned
  int)':
demux_mkv.cpp:1228: `KaxCueReference' undeclared (first use this function)
demux_mkv.cpp:1228: (Each undeclared identifier is reported only once for each
  function it appears in.)
demux_mkv.cpp:1228: `cref' undeclared (first use this function)
demux_mkv.cpp:1302: parse error before `*' token
make[1]: *** [demux_mkv.o] Error 1
make[1]: Leaving directory `/home/stephen/mplayer/MPlayer-1.0pre3/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2
Exit 2


I looked in the demux_mkv.cpp file and it had included the matroska/KaxCuesData.h header which has the definition for the KaxCueReference class. So did I do something wrong? unsure.gif
QuantumKnot
Oh, never mind. I finally worked it out. I commented out the #if MATROSKA_VERSION >= 2

But was I supposed to do that? unsure.gif


EDIT: Well I didn't get very far sad.gif

CODE
libmpdemux/libmpdemux.a(demux_mkv.o)(.text+0x7b2a): In function `parse_cues(mkv_demuxer*, unsigned long long)':
: undefined reference to `libmatroska::KaxCueReference::ClassInfos'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
Exit 2
mosu
You have three options, but I'll only list two as I don't recommend the third.

1) Use the current CVS version of mplayer as it contains both a fix for this problem and even a new Matroska demuxer that doesn't need libmatroska anymore.

2) Apply this patch to mplayer1.0pre3: http://bunkus.org/videotools/mkvtoolnix/so...atroska063.diff
QuantumKnot
Thank you!! I took the first option and it works perfectly. Now I can play my matroska files in Linux smile.gif *does happy dance*
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.