[vlc-devel] Re: [Patch] better support for more recent pvr: drivers

Paul Corke paul.corke at datatote.co.uk
Tue Apr 3 12:59:51 CEST 2007


On 31 March 2007 16:13, Jean-Paul Saman wrote:

>> 2) A vlc built on an older machine with an older
>>    /usr/include/linux/videodev2.h would not be able to
>>    compile in features that are needed on a newer kernel
>>    / ivtvdriver.  The build would have to be on a new machine.
> 
> Check for (versions or features) in configure.ac

Ok, I'll try to work out how to do this!

> The the user should upgrade to the new version of ivtv. Having a copy
> of this file from the ivtv drivers in our own archive does really
> suck. We should change it now or regret it for ever.

But upgrading to the new ivtv (which they have to do if they upgrade
to kernel >= 2.6.18) does not upgrade /usr/include/linux/videodev2.h
because that file is owned by the unrelated package glibc-kernheaders.

I realise that it is not good to have a copy of someone else's file
(especially a system header) in vlc, but it has already been there for
some time: it was added on 29-Nov-2005 by "dionoea".  The problem is
that because that file is now out of date, it can't be used to build
for the new ivtvdriver.

In any case I will try to change the patch so that configure works
out if the new header is available.  The builder will then have
to download a suitable videodev2.h (maybe from the ivtvdriver source
code) and copy it to their /usr/include.

> Is this /usr/include/linux/videodev2.h file the same as the one we use
> in vlc?

No, I have several different videodev2.h:

[pctote at localhost ~]$ ls -l vlc-trunk/modules/access/videodev2.h
-rw-rw-r-- 1 paulc paulc 26278 Apr  3 11:00 videodev2.h

[pctote at localhost ~]$ ls -l /usr/include/linux/videodev2.h
-rw-r--r-- 1 root root 29147 Feb 11  2006 videodev2.h

[pctote at localhost vlc-trunk]$ ls -l
/usr/src/kernels/2.6.18-1.2200.fc5-smp-i686/include/linux/videodev2.h
-rw-r--r-- 1 root root 43006 Sep 20  2006 videodev2.h

[paulc at localhost ~]$ ls -l ivtv-0.10.0/utils/videodev2.h
-rw-r--r-- 1 paulc paulc 45107 Dec  1 15:50 videodev2.h

Paul.

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list