[MPlayer-users] Bug: incompatible with libdvdnav 0.1.9
Tony Houghton
h at realh.co.uk
Mon Aug 4 01:49:17 CEST 2003
I can't compile MPlayer 0.90 or CVS with the current version of
libdvdnav, 0.1.9, in Debian unstable.
First, there is a problem with the version check in configure and
mplayer.c. The leading 0 makes it an octal constant in C, and as the
current version is 0.1.9 this is an illegal octal value. I did a fix by
using hex instead, changing the configure script thus:
if test -n "$_dvdnavconfig" ; then
_dvdnav_version="0x`$_dvdnavconfig --version | sed 's/\.//g'`"
_def_dvdnav_version="#define DVDNAVVERSION $_dvdnav_version"
fi
and mplayer.c thus:
#if DVDNAVVERSION > 0x12
But it still fails with these errors:
gcc -c -O4 -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math
-fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo
-I/usr/include/freetype2 -I/usr/include/dvdcss -I/usr/include/dvdnav
-I/usr/include/dvdread -I/usr/lib -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/SDL
-D_REENTRANT -I/usr/X11R6/include -o mplayer.o mplayer.c
mplayer.c: In function `main':
mplayer.c:803: warning: passing arg 2 of `m_config_register_options'
from incompatible pointer type
mplayer.c:3078: error: structure has no member named `new_cell'
mplayer.c:3109: error: `DVDNAV_SEEK_DONE' undeclared (first use in this
function)
mplayer.c:3109: error: (Each undeclared identifier is reported only once
mplayer.c:3109: error: for each function it appears in.)
mplayer.c:3128: error: too few arguments to function
`dvdnav_upper_button_select'
mplayer.c:3131: error: too few arguments to function
`dvdnav_lower_button_select'
mplayer.c:3134: error: too few arguments to function
`dvdnav_left_button_select'mplayer.c:3137: error: too few arguments to
function `dvdnav_right_button_select'
mplayer.c:3144: error: too few arguments to function
`dvdnav_button_activate'
make: *** [mplayer.o] Error 1
--
TH * http://www.realh.co.uk
More information about the MPlayer-users
mailing list