• Hi Mike,


    please provide the compiler error. I don't have 2.3.1 installed.


    BR,
    T.

    Server: Asrock J3455-ITX with Ubuntu 20.04, ubuntu vdr dist, streamdev-server, live, smarttvweb, vnsiserver, dynamite
    Clients: Samsung UE40ES5700 (VDR on Smart TV widget), Kodi

  • Thanks for the quick response T.


    I've attached a copy of the error and also of the editted VDR HISTORY file which you'll need to read to see the origin odf the problem.


    I was able to fix some errors related to Channels by fiddling. (Im not a programmer) so I've also attached my amended copy of responsevdrdir.c.


    Fingers crossed



    Mike

  • Ok. Seems that the relevant part from the VDR history is:

    I need to understand, how to use the "convenience macros", since the Plugin cannot access the recordings direly anymore. The following is not working anymore.


    Code
    cRecordings* recordings =   &Recordings;


    I am open for any hint / support, how to iterate over the recordings.


    BR,
    T.

    Server: Asrock J3455-ITX with Ubuntu 20.04, ubuntu vdr dist, streamdev-server, live, smarttvweb, vnsiserver, dynamite
    Clients: Samsung UE40ES5700 (VDR on Smart TV widget), Kodi

  • Thanks. Got a clue now. But it is more than just the recordings. Also the API to timers and schedules has changed...;-(


    Need so time to adjust.


    BR,
    T.

    Server: Asrock J3455-ITX with Ubuntu 20.04, ubuntu vdr dist, streamdev-server, live, smarttvweb, vnsiserver, dynamite
    Clients: Samsung UE40ES5700 (VDR on Smart TV widget), Kodi

  • Hi Mike,


    Thanks for the feedback. Seems that the Plugin is now working with VDR > 2.3.0.


    Merry Christmas,
    T.

    Server: Asrock J3455-ITX with Ubuntu 20.04, ubuntu vdr dist, streamdev-server, live, smarttvweb, vnsiserver, dynamite
    Clients: Samsung UE40ES5700 (VDR on Smart TV widget), Kodi

  • How can we find this version? The GIT ist oldstable.

    Gruß utiltiy



    VDR Projekte VDR Projects

  • Sorry, I have to correct myself. The changes with checks on APIVERSNUM > 20300 are in . So it looks like I got the correct version.


    But still compile errors:
    g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/opt/vdr/src/vdr-2.3.3/include -c -DPLUGIN_NAME_I18N='"smarttvweb"' -o smarttvfactory.o smarttvfactory.c
    smarttvfactory.c: In Elementfunktion »cRecFolder* SmartTvServer::GetRecDb()«:
    smarttvfactory.c:959:18: Fehler: »Recordings« wurde in diesem Gültigkeitsbereich nicht definiert
    bool changed = Recordings->StateChanged(mRecState);
    ^~~~~~~~~~
    smarttvfactory.c: In Elementfunktion »void SmartTvServer::CreateRecDb()«:
    smarttvfactory.c:973:27: Fehler: »Recordings« wurde in diesem Gültigkeitsbereich nicht definiert
    cRecording *recording = Recordings.First();
    ^~~~~~~~~~
    smarttvfactory.c: In Elementfunktion »std::__cxx11::string SmartTvServer::processNestedItemList(std::__cxx11::string, cList<cNestedItem>*, std::vector<cCmd*>*)«:
    smarttvfactory.c:1153:37: Warnung: Format »%d« erwartet Argumenttyp »int«, aber Argument 4 hat Typ »std::vector<cCmd*>::size_type {aka long unsigned int}« [-Wformat=]
    (pref + itm->mTitle).c_str());
    ^
    Makefile:66: die Regel für Ziel „smarttvfactory.o“ scheiterte
    make: *** [smarttvfactory.o] Fehler 1
    [michaelc@satip smarttvweb]$
    [michaelc@satip smarttvweb]$ vi smarttvfactory.
    [michaelc@satip smarttvweb]$ vi smarttvfactory.c
    [michaelc@satip smarttvweb]$ make
    g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/opt/vdr/src/vdr-2.3.3/include -c -DPLUGIN_NAME_I18N='"smarttvweb"' -o smarttvfactory.o smarttvfactory.c
    smarttvfactory.c: In Elementfunktion »cRecFolder* SmartTvServer::GetRecDb()«:
    smarttvfactory.c:959:18: Fehler: »Recordings« wurde in diesem Gültigkeitsbereich nicht definiert
    bool changed = Recordings.StateChanged(mRecState);
    ^~~~~~~~~~
    smarttvfactory.c: In Elementfunktion »void SmartTvServer::CreateRecDb()«:
    smarttvfactory.c:973:27: Fehler: »Recordings« wurde in diesem Gültigkeitsbereich nicht definiert
    cRecording *recording = Recordings.First();
    ^~~~~~~~~~
    smarttvfactory.c: In Elementfunktion »std::__cxx11::string SmartTvServer::processNestedItemList(std::__cxx11::string, cList<cNestedItem>*, std::vector<cCmd*>*)«:
    smarttvfactory.c:1153:37: Warnung: Format »%d« erwartet Argumenttyp »int«, aber Argument 4 hat Typ »std::vector<cCmd*>::size_type {aka long unsigned int}« [-Wformat=]
    (pref + itm->mTitle).c_str());
    ^
    Makefile:66: die Regel für Ziel „smarttvfactory.o“ scheiterte


    Any hints?

  • Habe gerade eine neue Version committed. Bitte noch einmal pullen und probieren.


    T.

    Server: Asrock J3455-ITX with Ubuntu 20.04, ubuntu vdr dist, streamdev-server, live, smarttvweb, vnsiserver, dynamite
    Clients: Samsung UE40ES5700 (VDR on Smart TV widget), Kodi

  • Danke! Damit klappts (fast ;) )


    responsememblk.c:2263:18: Fehler: L-Wert »std::basic_ostream<char>« kann nicht mit »std::basic_ostream<char>&&« verbunden werden
    *(mLog->log()) << " Ownhost= " << own_host << endl;
    ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~


    Wenn das bei dir kompiliert, dann gehe ich davon aus, dass wir unterschiedliche C++-Kompiler und Linux Versionen einsetzen.


    Bei mir:
    [michaelc@satip smarttvweb]$ cc --version
    cc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)


    und
    [michaelc@satip smarttvweb]$ uname -a
    Linux satip.fritz.box 4.10.5-200.fc25.x86_64 #1 SMP Wed Mar 22 20:37:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    also Fedora 25 mit aktuellen Patches.


    Wenn ich die Zeile auskommentiere (ist ja wohl nur ein logfile eintrag) dann kompiliert das Plugin. Testen konnte ich es noch nicht, weil ich noch mit eniem anderen Plugin (vdrmanager) am kämpfen bin.


    Gruß Michael

  • Bei mir klapps ganz. Ich nutze Ubuntu 16.04.


    Die Zeile ist nicht wichtig, also kannst Du sie einfach löschen. Vielleicht geht es dann.


    Grüße,
    T.

    Server: Asrock J3455-ITX with Ubuntu 20.04, ubuntu vdr dist, streamdev-server, live, smarttvweb, vnsiserver, dynamite
    Clients: Samsung UE40ES5700 (VDR on Smart TV widget), Kodi

  • Hallo,

    Mit nem aktuellen gcc klappt das Compilieren leider nicht mehr:

  • Hi Helmut,


    probier mal..

    Nur compile fix, ich hab nicht getestet.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!