Hallo,
ich bekomme hier eine Fehlermeldung beim Kompilieren auf Fedora 23, skindesigner 0.7.2 ist ohne Probleme durchgelaufen.
g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -std=c++11 -c -DPLUGIN_NAME_I18N='"skindesigner"' -I/usr/include/libxml2 -DSCRIPTFOLDER='"/usr/lib64/vdr/skindesigner/scripts"' -DLIBSKINDESIGNERAPIVERSION='""' -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -ljpeg -o config.o config.c
Failed to open 'libskindesignerapi/libskindesignerapi.pc': No such file or directory
No package 'libskindesignerapi/libskindesignerapi.pc' found
In file included from config.h:11:0,
from skindesigner.c:12:
extensions/pluginmanager.h:6:48: fatal error: libskindesignerapi/skindesignerapi.h: No such file or directory
#include "libskindesignerapi/skindesignerapi.h"
^
compilation terminated.
Diese Fehlermeldung konnte ich durch folgende Änderung beseitigen:
# header file skindesignerapi.h was not found
sed -i -e 's|#include "libskindesignerapi/skindesignerapi.h"|#include "../libskindesignerapi/skindesignerapi.h"|g' extensions/pluginmanager.h
diese Fehlermeldung
/usr/include/c++/5.3.1/bits/stl_deque.h:578:8: error: call of overloaded 'swap(std::_Deque_base<_xmlNode*, std::allocator<_xmlNode*> >::iterator&, std::_Deque_base<_xmlNode*, std::allocator<_xmlNode*> >::iterator&)' is ambiguous
swap(this->_M_start, __x._M_start);
durch den hier bereits erwähnten Patch:
--- vdr-plugin-skindesigner-0.8.0/Makefile.orig 2016-01-31 16:06:51.818937173 +0100
+++ vdr-plugin-skindesigner-0.8.0/Makefile 2016-01-31 16:07:15.881947561 +0100
@@ -46,6 +46,7 @@
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' $(CONFIG)
DEFINES += $(shell xml2-config --cflags)
DEFINES += -DSCRIPTFOLDER='"$(SKINDESIGNER_SCRIPTDIR)"'
+DEFINES += -D__STL_CONFIG_H
INCLUDES += $(shell pkg-config --cflags freetype2 fontconfig)
INCLUDES += $(shell pkg-config --cflags librsvg-2.0 cairo-png) -ljpeg
Display More
und diese Warnungen
coreengine/../services/epgsearch.h:164:12: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
std::auto_ptr<cServiceHandler> handler;
^
In file included from /usr/include/c++/5.3.1/memory:81:0,
from coreengine/../services/epgsearch.h:33,
from coreengine/viewdetail.h:4,
from coreengine/viewdisplaymenu.h:5,
from designer.h:8,
from config.h:10,
from setup.h:4,
from setup.c:4:
/usr/include/c++/5.3.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^
Display More
durch diese Änderung:
# std::auto_ptr deprecation warning in libstdc++ 5.1
sed -i -e 's| std::auto_ptr<cServiceHandler> handler;| std::unique_ptr<cServiceHandler> handler;|g' services/epgsearch.h