PVRInput plugin won't compile WAS - Re: [vdr] Analog Plugin help

Message ID 200605082238.17574.zzam@gentoo.org
State New
Headers

Commit Message

Matthias Schwarzott May 8, 2006, 8:38 p.m. UTC
  On Monday 08 May 2006 22:31, Mlists wrote:

>
> All that to say, now I still can't compile pvrinput... here is the new
> error:
>
> make[1]: Entering directory
> `/disk2/vdr/vdr-1.4.0/PLUGINS/src/pvrinput-0.1.1'
> ccache g++ -fPIC -g -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE
> -DPLUGIN_NAME_I18N='"pvrinput"' -I/vdr/DVB/include
> -I/vdr/vdr-1.4.0/include -I/vdr/DVB/include device.c
> device.c: In member function 'virtual void cPvrReadThread::Action()':
> device.c:417: error: 'V4L2_BUF_TYPE_SLICED_VBI_CAPTURE' was not declared
> in this scope
> device.c:418: error: 'union v4l2_format::<anonymous>' has no member
> named 'sliced'
> device.c:418: error: 'V4L2_SLICED_TELETEXT_B' was not declared in this
> scope
> make[1]: *** [device.o] Error 1
>
> Any suggestions?

To compile this plugin, you need to change the order in which the header files 
are included.
Move the file linux/videodev.h from its place before videodev2.h to a line 
after it.

Matthias
  

Comments

Mlists May 8, 2006, 9:31 p.m. UTC | #1
On Mon, 2006-05-08 at 22:38 +0200, Matthias Schwarzott wrote:
> On Monday 08 May 2006 22:31, Mlists wrote:
> 
> >
> > All that to say, now I still can't compile pvrinput... here is the new
> > error:
> >
> > make[1]: Entering directory
> > `/disk2/vdr/vdr-1.4.0/PLUGINS/src/pvrinput-0.1.1'
> > ccache g++ -fPIC -g -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE
> > -DPLUGIN_NAME_I18N='"pvrinput"' -I/vdr/DVB/include
> > -I/vdr/vdr-1.4.0/include -I/vdr/DVB/include device.c
> > device.c: In member function 'virtual void cPvrReadThread::Action()':
> > device.c:417: error: 'V4L2_BUF_TYPE_SLICED_VBI_CAPTURE' was not declared
> > in this scope
> > device.c:418: error: 'union v4l2_format::<anonymous>' has no member
> > named 'sliced'
> > device.c:418: error: 'V4L2_SLICED_TELETEXT_B' was not declared in this
> > scope
> > make[1]: *** [device.o] Error 1
> >
> > Any suggestions?
> 
> To compile this plugin, you need to change the order in which the header files 
> are included.
> Move the file linux/videodev.h from its place before videodev2.h to a line 
> after it.

Thanks that did the trick!

Norm
  

Patch

diff -ru pvrinput-0.1.0-orig/device.c pvrinput-0.1.0/device.c
--- pvrinput-0.1.0-orig/device.c	2006-02-10 20:04:39.667936500 +0100
+++ pvrinput-0.1.0/device.c	2006-02-10 20:04:52.976768250 +0100
@@ -6,13 +6,13 @@ 
 #include <vdr/channels.h>
 #include <vdr/sources.h>
 
-#include <linux/videodev.h>
-
 extern "C" {
 #include "videodev2.h"
 #include "ivtv.h"
 }
 
+#include <linux/videodev.h>
+
 #include "common.h"
 #include "device.h"
 #include "global.h"