Project

General

Profile

Actions

Support #1425

open

Compiling on Raspberry

Added by hansbaer over 11 years ago. Updated about 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/04/2013
Due date:
% Done:

0%

Estimated time:

Description

I am trying to compile the plugin on a Raspberry Pi (linux distro raspbian).

When I call make this is shown:
vdrmanager.cpp:9:24: fatal error: vdr/plugin.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.

So plugin.h is not found. The vdr package does not come with the source files. So I got the corresponding vdr version and placed it in the subfolder vdr of the vdrmanager plugin installation directory. This didn't help either. I presume it's just a stupid mistake as I am not used to compile stuff myself, but I would appreciate any hint. Thanks!

BTW: As I have understood it you use the plugin as svdrp would cause too much traffic. In my case I want to use VDR locally in my network such that bandwidth and traffic is less of an issue. An option to use svdrp instead of the plugin would be great.

Actions #1

Updated by herrlado over 11 years ago

Hi.

This is a wrong,location to place the vdr sourcepackage. Either place the vdrmanager folder ins vdr/src/PLUGINS/ and then compile or install vdr-dev, it install vdr sources. vdr/plugin.h is relativ to /usr/include/

Actions #2

Updated by hansbaer over 11 years ago

Thanks for the hint. vdr-dev was missing, and after installing it, the compiling proceeds. It stops at this point then:

helpers.cpp: In static member function ‘static std::string cHelpers::ToText(const cEvent*)’:
helpers.cpp:823:58: error: no matching function for call to ‘cTimers::GetMatch(const cEvent*&, eTimerMatch*)’
helpers.cpp:823:58: note: candidates are:
/usr/include/vdr/timers.h:118:11: note: cTimer* cTimers::GetMatch(time_t)
/usr/include/vdr/timers.h:118:11: note: candidate expects 1 argument, 2 provided
/usr/include/vdr/timers.h:119:11: note: cTimer* cTimers::GetMatch(const cEvent*, int*)
/usr/include/vdr/timers.h:119:11: note: no known conversion for argument 2 from ‘eTimerMatch*’ to ‘int*’
make: *** [helpers.o] Error 1

Judging from what googling for that error gives that may be due to an older version of vdr on raspbian (1.7.28-1 comes with it). Version 0.8 of the plugin compiles without problems.

Actions #3

Updated by hansbaer over 11 years ago

Just a quick addition. Compiling version 0.8 worked fine but I have no clue how to get vdr to load it. All instructions I could find assume that the sources are also installed, but does not seem to be the case.

Actions #4

Updated by herrlado over 11 years ago

what happens if you execute

make install?

The plugin must be then somewhere in /usr/lib/vdr/plugins

Please also note the right ending of it. But why are you taking the old version? Try from git may be, it is better.

Actions #5

Updated by hansbaer over 11 years ago

Thanks for the support - currently it seems to me that I will have to wait until there is more vdr-related stuff for the raspberry pi. It seems that a lot of new packages were added recently, and I hope this trend continues.

make install returns:
make: *** No rule to make target `install'. Stop.

Version 0.9 returns an error on compiling. Version 0.8 does not. Therefore I used it for the moment.
The problem is that I probably can't use standard installation procedures for vdr plugins as src-packages are missing in raspbian. I placed the compiled file into the /usr/lib/vdr/plugins directory but to no effect.

Actions #6

Updated by herrlado over 11 years ago

It there no newer version of vdr? how does the /usr/lib/vdr/plugins look like on your machine?

Please post the output of -ls /usr/lib/vdr/plugins

Actions #7

Updated by hansbaer about 11 years ago

Sorry for the delay. It looks like this:

libvdr-live.so.1.7.28 libvdr-streamdev-server.so.1.7.28 libvdr-vdrmanager.so.1.7.28

I renamed the vdrmanager file to check if that might make it work. That got it startet, but now I get this message at VDR startup:

Starting Linux Video Disk Recorder: vdr
Searching for plugins (VDR 1.7.28/1.7.28) (cache miss): streamdev-server live
WARNING: The following plugins have been left out due to really binary incompatibility: vdrmanager.

Actions

Also available in: Atom PDF