Probleme beim Compile von vdr 2.1.10 und xineliboutput

  • Hallo !



    Nach dem Update auf vdr 2.1.10 klappt der Compile von xineliboutput nicht mehr:



    *** Plugin xineliboutput:
    Makefile:103: Building inside VDR source tree
    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/backup/privat/tv/dvb/vdr-2.1.10/include -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"xineliboutput"' -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DVIDEODIR='"/srv/vdr/video"' -DXINELIBOUTPUT_VERSION='"2.0.0-cvs"' -Wall -I/backup/privat/tv/dvb/vdr-2.1.10/include -o osd.o osd.c
    osd.c: In Elementfunktion »virtual void cXinelibOsd::Flush()«:
    osd.c:518:46: Fehler: ungültige Umwandlung von »cPixmap*« in »cPixmapMemory*« [-fpermissive]
    while (cPixmapMemory *pm = RenderPixmaps()) {
    ^
    osd.c:547:52: Warnung: verengende Umwandlung von »x1« von »int« nach »uint16_t {aka short unsigned int}« in { } ist in C++11 ungültig [-Wnarrowing]
    osd_rect_t DirtyArea = {x1:x1, y1:y1, x2:x2, y2:y2};
    ^
    osd.c:547:52: Warnung: verengende Umwandlung von »y1« von »int« nach »uint16_t {aka short unsigned int}« in { } ist in C++11 ungültig [-Wnarrowing]
    osd.c:547:52: Warnung: verengende Umwandlung von »x2« von »int« nach »uint16_t {aka short unsigned int}« in { } ist in C++11 ungültig [-Wnarrowing]
    osd.c:547:52: Warnung: verengende Umwandlung von »y2« von »int« nach »uint16_t {aka short unsigned int}« in { } ist in C++11 ungültig [-Wnarrowing]
    Makefile:241: recipe for target 'osd.o' failed
    make[1]: *** [osd.o] Error 1



    Grüße,


    Dirk


    Mod.: VDR Version korrigiert ...

  • Hi,


    ersetze


    while (cPixmapMemory *pm = RenderPixmaps()) {


    durch


    while (cPixmapMemory *pm = dynamic_cast<cPixmapMemory *>(RenderPixmaps())) {


    Ciao.
    Michael.

  • Und am Ende der Schleife

    Code
    delete pm;


    durch

    Code
    DestroyPixmap(pm);


    Lars.


    Au Mist, hatte ich vergessen 8-<


    Ciao.
    Michael.

  • Und das nächste mal das ganze Announcement des vdr lesen, da stand die Lösung drin. :)


    Lars.


    Ja, aber nur wenn man Ahnung von Programmieren hat ;)


    Ciao.
    Michael.

  • Hmm, selbst die korrekt VDR Version zu schreiben scheint schwierig, korrigiert ...

    HowTo: APT pinning

Jetzt mitmachen!

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