[MPlayer-users] Configure problem with V4L
matt.nottingham at virgin.net
matt.nottingham at virgin.net
Wed Dec 5 21:05:40 CET 2001
I'm running Debian 2.2 with a 2.2.20 kernel (patched with bttv-0.7.86,
i2c-2.5.5 & alsa 0.9beta10). When I configure MPlayer (checked out
from CVS) it fails to detect V4L. Looking at the configure.log shows:
============ Checking for Video 4 Linux TV interface ============
#include <linux/videodev.h>
int main(void) { return 0; }
gcc /tmp/mplayer-conf-487177003-21669.c -o /tmp/mplayer-conf-986207224-21669.
o
In file included from /tmp/mplayer-conf-487177003-21669.c:1:
/usr/include/linux/videodev.h:90: parse error before `ulong'
/usr/include/linux/videodev.h:90: warning: no semicolon at end of struct or unio
n
/usr/include/linux/videodev.h:106: parse error before `}'
ldd /tmp/mplayer-conf-986207224-21669.o
ldd: can't read header from /tmp/mplayer-conf-986207224-21669.o
Result is: no
##########################################
Changing the test in configure to be
echocheck "Video 4 Linux TV interface"
if test "$_tv_v4l" = auto && test "$_tv" = yes && linux ; then
_tv_v4l=no
if test -c /dev/video0 ; then
cat > $TMPC <<EOF
#include <stdlib.h>
#include <linux/videodev.h>
int main(void) { return 0; }
EOF
cc_check && _tv_v4l=yes
fi
else
_tv_v4l=no
fi
ie. inserting a '#include <stdlib.h>' before the #include videodev
fixes the problem and V4L is found OK (although I suspect that the
include file should be changed).
When I run it, I get a picture displayed but the colours aren't right -
but that might well be to me not fully reading the instructions
(yet...).
Thanks,
Matt
More information about the MPlayer-users
mailing list