VDR working under FC3?

Message ID 20050216171333.GA8581@linuxtv.org
State New
Headers

Commit Message

Johannes Stezenbach Feb. 16, 2005, 5:13 p.m. UTC
  HGM.bg (GMX) wrote:
> Linux TV wrote:
> > Looks like something getting spit out of 
> > /usr/include/linux/dvb/video.h , /usr/include/linux/dvb/osd.h and
> > vdr/dvbdevice.c   ?? 
> 
> Just remove __user in osd.h (1x) and video.h (1x) and everything is
> fine, i need this for FC2, too !

The following patch should also work:


Johannes
  

Comments

Linux TV Feb. 16, 2005, 5:42 p.m. UTC | #1
Applied the patch.  Now get :

[root@nzbaxters VDR]# make
In file included from dvbdevice.c:10:
dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
In file included from dvbosd.h:14,
                 from dvbosd.c:10:
dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
In file included from eitscan.c:13:
dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
In file included from vdr.c:40:
dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
make: *** [.dependencies] Error 1
make: *** Deleting file `.dependencies'
[root@nzbaxters VDR]#



----- Original Message ----- 
From: "Johannes Stezenbach" <js@linuxtv.org>
To: <vdr@linuxtv.org>
Sent: Wednesday, February 16, 2005 5:13 PM
Subject: Re: [vdr] VDR working under FC3?


> HGM.bg (GMX) wrote:
>> Linux TV wrote:
>> > Looks like something getting spit out of
>> > /usr/include/linux/dvb/video.h , /usr/include/linux/dvb/osd.h and
>> > vdr/dvbdevice.c   ??
>>
>> Just remove __user in osd.h (1x) and video.h (1x) and everything is
>> fine, i need this for FC2, too !
>
> The following patch should also work:
>
> --- vdr-1.3.21/Makefile.orig 2005-02-16 18:07:22.000000000 +0100
> +++ vdr-1.3.21/Makefile 2005-02-16 18:09:03.000000000 +0100
> @@ -68,6 +68,9 @@
>
> DEFINES += -D_GNU_SOURCE
>
> +# backwards compat for DVB API headers on systems with out-of-date 
> linux/compiler.h
> +DEFINES += -D__user
> +
> DEFINES += -DVIDEODIR=\"$(VIDEODIR)\"
> DEFINES += -DPLUGINDIR=\"$(PLUGINLIBDIR)\"
>
>
> Johannes
>
> _______________________________________________
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
  
C.Y.M Feb. 16, 2005, 5:57 p.m. UTC | #2
Linux TV wrote:
> Applied the patch.  Now get :
> 
> [root@nzbaxters VDR]# make
> In file included from dvbdevice.c:10:
> dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
> In file included from dvbosd.h:14,
>                 from dvbosd.c:10:
> dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
> In file included from eitscan.c:13:
> dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
> In file included from vdr.c:40:
> dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
> make: *** [.dependencies] Error 1
> make: *** Deleting file `.dependencies'
> [root@nzbaxters VDR]#
> 
>  

Now you are missing the 2.6 DVB userspace headers.  The following files should 
be in /usr/include/linux/dvb/

audio.h  ca.h  dmx.h  frontend.h  net.h  osd.h version.h  video.h

Regards,
  
Ville Skyttä Feb. 16, 2005, 7:28 p.m. UTC | #3
On Wed, 2005-02-16 at 09:57 -0800, C.Y.M wrote:

> Now you are missing the 2.6 DVB userspace headers.  The following files should 
> be in /usr/include/linux/dvb/

That's /lib/modules/$(uname -r)/build/include/linux/dvb/ on FC3.

> audio.h  ca.h  dmx.h  frontend.h  net.h  osd.h version.h  video.h

This in vdr's Make.config works for me:

  DVBDIR = /lib/modules/$(shell uname -r)/build
  
HGM.bg \(GMX\) Feb. 16, 2005, 8:42 p.m. UTC | #4
Linux TV wrote:

> Applied the patch.  Now get :
> 
> [root@nzbaxters VDR]# make
> In file included from dvbdevice.c:10:
> dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
> In file included from dvbosd.h:14,
>                  from dvbosd.c:10:
> dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
> In file included from eitscan.c:13:
> dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
> In file included from vdr.c:40:
> dvbdevice.h:20:2: #error VDR requires Linux DVB driver API version 3!
> make: *** [.dependencies] Error 1
> make: *** Deleting file `.dependencies'
> [root@nzbaxters VDR]#

->Makefile
DVBDIR   = ../DVB/linux

If you use cvs-kernel drivers as supposed by vdr

/hgm.bg
  
C.Y.M Feb. 16, 2005, 8:43 p.m. UTC | #5
Ville Skyttä wrote:
> On Wed, 2005-02-16 at 09:57 -0800, C.Y.M wrote:
> 
> 
>>Now you are missing the 2.6 DVB userspace headers.  The following files should 
>>be in /usr/include/linux/dvb/
> 
> 
> That's /lib/modules/$(uname -r)/build/include/linux/dvb/ on FC3.
> 
> 
>>audio.h  ca.h  dmx.h  frontend.h  net.h  osd.h version.h  video.h
> 
> 
> This in vdr's Make.config works for me:
> 
>   DVBDIR = /lib/modules/$(shell uname -r)/build
> 

What you are pointing to are the kernel headers, not the userspace headers. 
There is a big difference.  Even though pointing to the kernel headers may work, 
it does not give the kernel and userspace separation.

Best Regards,
  
Linux TV Feb. 17, 2005, 9:59 a.m. UTC | #6
Ok - all compiling gremlins now sorted.

Now what?

It's running :
Feb 17 09:52:42 nzbaxters vdr[6416]: VDR version 1.2.6 started
Feb 17 09:52:42 nzbaxters vdr[6416]: loading /fifty/video/sources.conf
Feb 17 09:52:42 nzbaxters vdr[6416]: loading /fifty/video/channels.conf
Feb 17 09:52:42 nzbaxters vdr[6416]: found 1 video device
Feb 17 09:52:42 nzbaxters vdr[6416]: setting primary device to 1
Feb 17 09:52:42 nzbaxters vdr[6416]: device 1 has no MPEG decoder
Feb 17 09:52:42 nzbaxters vdr[6416]: SVDRP listening on port 2001

what do I control it with?


----- Original Message ----- 
From: "Ville Skyttä" <ville.skytta@iki.fi>
To: <vdr@linuxtv.org>
Sent: Wednesday, February 16, 2005 7:28 PM
Subject: Re: [vdr] VDR working under FC3?


> On Wed, 2005-02-16 at 09:57 -0800, C.Y.M wrote:
>
>> Now you are missing the 2.6 DVB userspace headers.  The following files 
>> should
>> be in /usr/include/linux/dvb/
>
> That's /lib/modules/$(uname -r)/build/include/linux/dvb/ on FC3.
>
>> audio.h  ca.h  dmx.h  frontend.h  net.h  osd.h version.h  video.h
>
> This in vdr's Make.config works for me:
>
>  DVBDIR = /lib/modules/$(shell uname -r)/build
>
>
> _______________________________________________
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
  
Torgeir Veimo Feb. 17, 2005, 10:02 a.m. UTC | #7
On Thu, 2005-02-17 at 09:59 +0000, Linux TV wrote:
> 
> Feb 17 09:52:42 nzbaxters vdr[6416]: device 1 has no MPEG decoder

When you are not using a full featured card, you need a different output
method, either the softdevice plugin or the xine plugin. The softdevice
plugin is at softdevice.berlios.de.
  
Linux TV Feb. 17, 2005, 10:29 a.m. UTC | #8
I understand that - but I should still be able to record and schedule 
without viewing?

The idea of using VDR was I thought could schedule and record from an ssh 
connection, without needing X ?


----- Original Message ----- 
From: "Torgeir Veimo" <torgeir@pobox.com>
To: <vdr@linuxtv.org>
Sent: Thursday, February 17, 2005 10:02 AM
Subject: Re: [vdr] VDR working under FC3?


> On Thu, 2005-02-17 at 09:59 +0000, Linux TV wrote:
>>
>> Feb 17 09:52:42 nzbaxters vdr[6416]: device 1 has no MPEG decoder
>
> When you are not using a full featured card, you need a different output
> method, either the softdevice plugin or the xine plugin. The softdevice
> plugin is at softdevice.berlios.de.
>
> -- 
> Torgeir Veimo <torgeir@pobox.com>
>
>
> _______________________________________________
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
  
Stefan Taferner Feb. 17, 2005, 11:13 a.m. UTC | #9
On Thursday 17 February 2005 11:29, Linux TV wrote:
> I understand that - but I should still be able to record and schedule
> without viewing?
>
> The idea of using VDR was I thought could schedule and record from an ssh
> connection, without needing X ?

You can use svdrpsend.pl, but its not that straight forward.
Or install vdradmin, which is proably more what you intended.

I prefer the xine plugin for output. Softdevice has the output window always
running when vdr runs, which is not very usable for a desktop system.

--Stefan

PS: would be nice if you would use some normal name for your identity, as
    you are probably not /the/ "Linux TV".
  
Linux TV Feb. 17, 2005, 11:27 a.m. UTC | #10
Thanks - and I guess so!  Will change the mail account alias.

Simon
----- Original Message ----- 
From: "Stefan Taferner" <taferner@kde.org>
To: <vdr@linuxtv.org>
Sent: Thursday, February 17, 2005 11:13 AM
Subject: Re: [vdr] VDR working under FC3?


> On Thursday 17 February 2005 11:29, Linux TV wrote:
>> I understand that - but I should still be able to record and schedule
>> without viewing?
>>
>> The idea of using VDR was I thought could schedule and record from an ssh
>> connection, without needing X ?
>
> You can use svdrpsend.pl, but its not that straight forward.
> Or install vdradmin, which is proably more what you intended.
>
> I prefer the xine plugin for output. Softdevice has the output window 
> always
> running when vdr runs, which is not very usable for a desktop system.
>
> --Stefan
>
> PS: would be nice if you would use some normal name for your identity, as
>    you are probably not /the/ "Linux TV".
>
> _______________________________________________
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
  
HGM.bg \(GMX\) Feb. 17, 2005, 11:28 a.m. UTC | #11
Linux TV wrote:

> I understand that - but I should still be able to record and schedule
> without viewing? 

Not with VDR, it has the concept, that at least one "output" device must
be available. You can reach that goal with software-implementations like
xine/softdevice, but this is absolutly needed for running VDR.
 
> The idea of using VDR was I thought could schedule and record from an
> ssh connection, without needing X ? 

I don't know the softdevice/xine solution (if these are working w/o X),
but the easiest way to control vdr remote is vdradmin, which gives you
lean and clean HTML-interface to VDR.

/hgm.bg
  
Linux TV Feb. 17, 2005, 11:37 a.m. UTC | #12
Ok.  got the tarball and unpacked.

vdradmind.pl is failing on '  use Compress::Zlib;  '


[root@nzbaxters vdradmin-0.96]# ./vdradmind.pl --config
Can't locate Compress/Zlib.pm in @INC (@INC contains: ./lib/ 
/usr/share/vdradmin/lib 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.5 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.4 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.3 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.2 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.1 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.0 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.5/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.5/5.8.5 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.5/5.8.4 /usr/lib/perl5/site_perl/5.8.5/5.8.3 
/usr/lib/perl5/site_perl/5.8.5/5.8.2 /usr/lib/perl5/site_perl/5.8.5/5.8.1 
/usr/lib/perl5/site_perl/5.8.5/5.8.0 /usr/lib/perl5/site_perl/5.8.5 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 
/usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 
/usr/lib/perl5/vendor_perl .) at ./vdradmind.pl line 108.
BEGIN failed--compilation aborted at ./vdradmind.pl line 108.


hmm, doesn't look good!  Another FC3 thing??

I must say, the help available on this forum is 2nd to none.  I'm really 
enjoying the learning curve!!

----- Original Message ----- 
From: "Stefan Taferner" <taferner@kde.org>
To: <vdr@linuxtv.org>
Sent: Thursday, February 17, 2005 11:13 AM
Subject: Re: [vdr] VDR working under FC3?


> On Thursday 17 February 2005 11:29, Linux TV wrote:
>> I understand that - but I should still be able to record and schedule
>> without viewing?
>>
>> The idea of using VDR was I thought could schedule and record from an ssh
>> connection, without needing X ?
>
> You can use svdrpsend.pl, but its not that straight forward.
> Or install vdradmin, which is proably more what you intended.
>
> I prefer the xine plugin for output. Softdevice has the output window 
> always
> running when vdr runs, which is not very usable for a desktop system.
>
> --Stefan
>
> PS: would be nice if you would use some normal name for your identity, as
>    you are probably not /the/ "Linux TV".
>
> _______________________________________________
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
  
Michael Ritzert Feb. 17, 2005, 11:44 a.m. UTC | #13
On Thu, Feb 17, 2005 at 11:37:28AM -0000, Simon Baxter wrote:
> Ok.  got the tarball and unpacked.
> 
> vdradmind.pl is failing on '  use Compress::Zlib;  '

That's an easy one:
Type "perl -MCPAN -e shell" (as root), follow the instructions (the default
is usually Ok), then type "install Compress:Zlib".

Michael
  
Linux TV Feb. 17, 2005, 9:55 p.m. UTC | #14
Did I do something wrong?

[root@nzbaxters VDR]# perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Compress:Zlib
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.demon.co.uk/pub/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
  ftp://ftp.demon.co.uk/pub/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Thu, 17 Feb 2005 14:39:54 GMT
Fetching with LWP:
  ftp://ftp.demon.co.uk/pub/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Warning: Cannot install Compress:Zlib, don't know what it is.
Try the command

    i /Compress:Zlib/

to find objects with matching identifiers.

cpan> i /Compress:Zlib/
Caught SIGINT
No objects found of any type for argument /Compress:Zlib/

cpan> install Compress:Zlib
Warning: Cannot install Compress:Zlib, don't know what it is.
Try the command

    i /Compress:Zlib/

to find objects with matching identifiers.

cpan>


Thanks,
Simon
----- Original Message ----- 
From: "Michael Ritzert" <mritzert@rumms.uni-mannheim.de>
To: "Klaus Schmidinger's VDR" <vdr@linuxtv.org>
Sent: Thursday, February 17, 2005 11:44 AM
Subject: Re: [vdr] VDRadmin working under FC3?


> On Thu, Feb 17, 2005 at 11:37:28AM -0000, Simon Baxter wrote:
>> Ok.  got the tarball and unpacked.
>>
>> vdradmind.pl is failing on '  use Compress::Zlib;  '
>
> That's an easy one:
> Type "perl -MCPAN -e shell" (as root), follow the instructions (the 
> default
> is usually Ok), then type "install Compress:Zlib".
>
> Michael
>
>
> _______________________________________________
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
  
Ville Skyttä Feb. 17, 2005, 10:01 p.m. UTC | #15
On Thu, 2005-02-17 at 21:55 +0000, Simon Baxter wrote:
> Did I do something wrong?
> 
> [root@nzbaxters VDR]# perl -MCPAN -e shell

Compress::Zlib comes with FC3, try "yum install perl-Compress-Zlib".
  

Patch

--- vdr-1.3.21/Makefile.orig	2005-02-16 18:07:22.000000000 +0100
+++ vdr-1.3.21/Makefile	2005-02-16 18:09:03.000000000 +0100
@@ -68,6 +68,9 @@ 
 
 DEFINES += -D_GNU_SOURCE
 
+# backwards compat for DVB API headers on systems with out-of-date linux/compiler.h
+DEFINES += -D__user
+
 DEFINES += -DVIDEODIR=\"$(VIDEODIR)\"
 DEFINES += -DPLUGINDIR=\"$(PLUGINLIBDIR)\"