Problema compilazione yaepg-hd con vdr 1.7.40

Tutto quello che ha a che fare con i plugins.

Moderatori: ragno, tapino, alez, zulu, davidea

Rispondi
Avatar utente
hman
Messaggi: 6
Iscritto il: 04 feb 2011, 11:02

Problema compilazione yaepg-hd con vdr 1.7.40

Messaggio da hman »

Ciao a tutti, ho aggiornato alla rel. 1.7.40 il mio vdr e sto usando nopacity come skin ma non sono ancora riuscito a trovare una valida alternativa al mio vecchip plugin epg yaepghd-ce0.0.3 che però non sono riuscito a compilare su questa release di vdr.
Non so se è più facile trovare una patch per compilare yaepghd-ce o aspettare che esca qualche alternativa compatibile.
Avete qualche idea ?
Zotac ZBOX ID-11 - Ram 4GB - NVidia ION2 Next Gen - TeVii S660 DVB-S2 USB HD
Mageia Linux 4 - Kernel 3.14.27 - x86_64
VDR 2.1.6 - skin-nopacity - softhddevice - dvbapi - loadepg
unixer
Messaggi: 205
Iscritto il: 07 dic 2009, 23:21

Re: Problema compilazione yaepg-hd con vdr 1.7.40

Messaggio da unixer »

hman ha scritto:Ciao a tutti, ho aggiornato alla rel. 1.7.40 il mio vdr e sto usando nopacity come skin ma non sono ancora riuscito a trovare una valida alternativa al mio vecchip plugin epg yaepghd-ce0.0.3 che però non sono riuscito a compilare su questa release di vdr.
Non so se è più facile trovare una patch per compilare yaepghd-ce o aspettare che esca qualche alternativa compatibile.
Avete qualche idea ?
Se ci posti l'errore del make vediamo di darti una mano

a vdr applichi questa patch ???

Codice: Seleziona tutto

diff -urN vdr-1.7.38.org/device.h vdr-1.7.38/device.h
--- vdr-1.7.38.org/device.h     2013-02-18 15:37:21.183390350 +0100
+++ vdr-1.7.38/device.h 2013-02-18 15:37:32.723390004 +0100
@@ -301,12 +301,12 @@
          ///< Direction (only the sign of Direction is evaluated, positive values
          ///< switch to higher channel numbers).
 private:
-  eSetChannelResult SetChannel(const cChannel *Channel, bool LiveView);
-         ///< Sets the device to the given channel (general setup).
 protected:
   virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView);
          ///< Sets the device to the given channel (actual physical setup).
 public:
+  eSetChannelResult SetChannel(const cChannel *Channel, bool LiveView);
+         ///< Sets the device to the given channel (general setup).
   static int CurrentChannel(void) { return primaryDevice ? currentChannel : 0; }
          ///< Returns the number of the current channel on the primary device.
   static void SetCurrentChannel(const cChannel *Channel) { currentChannel = Channel ? Channel->Number() : 0; }
diff -urN vdr-1.7.38.org/osd.c vdr-1.7.38/osd.c
--- vdr-1.7.38.org/osd.c        2013-02-18 15:37:21.187390350 +0100
+++ vdr-1.7.38/osd.c    2013-02-18 15:37:32.727390005 +0100
@@ -1644,6 +1644,7 @@
          }
       }
   Osds.Append(this);
+  vidWin.bpp = 0;
 }

 cOsd::~cOsd()
diff -urN vdr-1.7.38.org/osd.h vdr-1.7.38/osd.h
--- vdr-1.7.38.org/osd.h        2013-02-18 15:37:21.183390350 +0100
+++ vdr-1.7.38/osd.h    2013-02-18 15:38:22.419388524 +0100
@@ -927,6 +927,7 @@
        ///<        delete pm;
        ///<        }
   static bool pinValid;   // PIN PATCH
+  tArea vidWin;
   };

 #define MAXOSDIMAGES 64
diff -urN vdr-1.7.38.org/PLUGINS/src/dvbsddevice/dvbsdffosd.c vdr-1.7.38/PLUGINS/src/dvbsddevice/dvbsdffosd.c
--- vdr-1.7.38.org/PLUGINS/src/dvbsddevice/dvbsdffosd.c 2013-02-18 15:37:21.171390351 +0100
+++ vdr-1.7.38/PLUGINS/src/dvbsddevice/dvbsdffosd.c     2013-02-18 15:37:32.723390004 +0100
@@ -77,6 +77,10 @@
             Cmd(OSD_SetWindow, 0, i + 1);
             Cmd(OSD_Close);
             }
+        if (vidWin.bpp != 0) {
+           Cmd(OSD_SetWindow, 0, MAXNUMWINDOWS);
+           Cmd(OSD_Close);
+           }
         shown = false;
         }
      }
@@ -111,6 +115,10 @@
          Cmd(OSD_SetWindow, 0, i + 1);
          Cmd(OSD_Close);
          }
+     if (vidWin.bpp != 0) {
+        Cmd(OSD_SetWindow, 0, MAXNUMWINDOWS);
+        Cmd(OSD_Close);
+        }
      shown = false;
      }
   return cOsd::SetAreas(Areas, NumAreas);
@@ -194,6 +202,11 @@
          Cmd(OSD_SetWindow, 0, i + 1);
          Cmd(OSD_MoveWindow, 0, Left() + Bitmap->X0(), Top() + Bitmap->Y0());
          }
+     if (vidWin.bpp != 0) {
+        Cmd(OSD_SetWindow, 0, MAXNUMWINDOWS);
+        Cmd(OSD_OpenRaw, vidWin.bpp, vidWin.x1, vidWin.y1,
+            vidWin.x2, vidWin.y2, (void *)0);
+        }
      shown = true;
      }
 }
Hai provato il plugin TVGuide ???
Avatar utente
hman
Messaggi: 6
Iscritto il: 04 feb 2011, 11:02

Re: Problema compilazione yaepg-hd con vdr 1.7.40

Messaggio da hman »

Ciao unixer,
l'errore che mi da è:

Codice: Seleziona tutto

yaepghd.c: In member function ‘void cYaepgEventInfo::Generate()’:
yaepghd.c:1725:44: error: no matching function for call to ‘cTimers::GetMatch(const cEvent*&, int*)’
yaepghd.c:1725:44: note: candidates are:
/home/mediacenter/Scaricati/vdr-1.7.40/include/vdr/timers.h:118:11: note: cTimer* cTimers::GetMatch(time_t)
/home/mediacenter/Scaricati/vdr-1.7.40/include/vdr/timers.h:118:11: note:   candidate expects 1 argument, 2 provided
/home/mediacenter/Scaricati/vdr-1.7.40/include/vdr/timers.h:119:11: note: cTimer* cTimers::GetMatch(const cEvent*, eTimerMatch*)
/home/mediacenter/Scaricati/vdr-1.7.40/include/vdr/timers.h:119:11: note:   no known conversion for argument 2 from ‘int*’ to ‘eTimerMatch*’
Ho provato anche TVGuide ma mi ci devo abituare :) l'asse del tempo è verticale e non orizzontale.

A vdr non ho applicato nessuna patch ai sorgenti scaricati. Quella che hai postato va bene anche per la ver. 1.7.40 ?
effetti ?

grazie
Armando
Zotac ZBOX ID-11 - Ram 4GB - NVidia ION2 Next Gen - TeVii S660 DVB-S2 USB HD
Mageia Linux 4 - Kernel 3.14.27 - x86_64
VDR 2.1.6 - skin-nopacity - softhddevice - dvbapi - loadepg
unixer
Messaggi: 205
Iscritto il: 07 dic 2009, 23:21

Re: Problema compilazione yaepg-hd con vdr 1.7.40

Messaggio da unixer »

Si la patch è per la versione 1.7.40 e va bene anche per la 41

ecco le patch che uso io
https://github.com/unixer/SifBoX-1.0/tr ... hes.1.7.40
Avatar utente
hman
Messaggi: 6
Iscritto il: 04 feb 2011, 11:02

Re: Problema compilazione yaepg-hd con vdr 1.7.40

Messaggio da hman »

applicando solo quella yaepghd in compilazione mi da questo errore

Codice: Seleziona tutto

osd.c: In constructor ‘cOsd::cOsd(int, int, uint)’:
osd.c:1646:3: error: ‘vidWin’ was not declared in this scope
make: *** [osd.o] Errore 1
Zotac ZBOX ID-11 - Ram 4GB - NVidia ION2 Next Gen - TeVii S660 DVB-S2 USB HD
Mageia Linux 4 - Kernel 3.14.27 - x86_64
VDR 2.1.6 - skin-nopacity - softhddevice - dvbapi - loadepg
Rispondi