From patchwork Mon May 8 20:38:17 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schwarzott X-Patchwork-Id: 12302 Received: from mail-out.m-online.net ([212.18.0.9]) by www.linuxtv.org with esmtp (Exim 4.50) id 1FdCUJ-0002Ou-DM for vdr@linuxtv.org; Mon, 08 May 2006 22:37:51 +0200 Received: from mail01.m-online.net (svr21.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 322C17207D for ; Mon, 8 May 2006 22:37:50 +0200 (CEST) Received: from gauss.x.fun (DSL01.83.171.157.182.NEFkom.net [83.171.157.182]) by mail.nefkom.net (Postfix) with ESMTP id 1122291632 for ; Mon, 8 May 2006 22:37:50 +0200 (CEST) Received: from gateway (gateway [192.168.42.1]) by gauss.x.fun (Postfix) with ESMTP id 3096EE1AE92 for ; Mon, 8 May 2006 22:38:18 +0200 (CEST) From: Matthias Schwarzott To: VDR Mailing List Subject: Re: PVRInput plugin won't compile WAS - Re: [vdr] Analog Plugin help Date: Mon, 8 May 2006 22:38:17 +0200 User-Agent: KMail/1.9.1 References: <1146928851.5826.2.camel@house> <1147116284.1937.4.camel@house> <1147120319.6606.1.camel@house> In-Reply-To: <1147120319.6606.1.camel@house> MIME-Version: 1.0 Message-Id: <200605082238.17574.zzam@gentoo.org> X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 May 2006 20:37:51 -0000 Status: O X-Status: X-Keywords: X-UID: 9392 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::' 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 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 #include -#include - extern "C" { #include "videodev2.h" #include "ivtv.h" } +#include + #include "common.h" #include "device.h" #include "global.h"