Damit funktioniert das Kompilieren von vdr-rpihddevice unter Archlinuxarm wieder einwandfrei. Das Ausgabe-Plugin funktioniert auch mit dem Patch. Vielleicht kann es jemand gebrauchen.
Fehlermeldung ohne Patch:
Code
omx.c:100:23: required from here
/usr/include/c++/6.1.1/bits/stl_deque.h:577:8: error: call of overloaded ‘swap(std::_Deque_base<cOmxEvents::Event*, std::allocator<cOmxEvents::Event*> >::iterator&, std::_Deque_base<cOmxEvents::Event*, std::allocator<cOmxEvents::Event*> >::iterator&)’ is ambiguous
swap(this->_M_start, __x._M_start);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6.1.1/bits/stl_pair.h:59:0,
from /usr/include/c++/6.1.1/bits/stl_algobase.h:64,
from /usr/include/c++/6.1.1/deque:60,
from /usr/include/c++/6.1.1/queue:60,
from omx.c:20:
--------------------
g++ -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -g -fvar-tracking-assignments -O3 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -c -DPLUGIN_NAME_I18N='"rpihddevice"' -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -Wno-write-strings -fpermissive -D__STL_CONFIG_H -DHAVE_LIBSWRESAMPLE -Iilclient -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o setup.o setup.c
tools.c: In constructor ‘cRational::cRational(double)’:
tools.c:35:35: error: ‘max’ was not declared in this scope
den = 1LL << (29 - max(exp - 1, 0));
^
tools.c: In member function ‘bool cRational::Reduce(int)’:
tools.c:65:39: error: ‘min’ was not declared in this scope
x = min(x, (max - a0.den) / a1.den);
^
Makefile:130: recipe for target 'tools.o' failed
------------
g++ -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -g -fvar-tracking-assignments -O3 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -c -DPLUGIN_NAME_I18N='"rpihddevice"' -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -Wno-write-strings -fpermissive -D__STL_CONFIG_H -DHAVE_LIBSWRESAMPLE -Iilclient -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o ovgosd.o ovgosd.c
ovgosd.c: In member function ‘virtual bool cOvgCmdDrawText::Execute(cEgl*)’:
ovgosd.c:1212:53: error: ‘max’ was not declared in this scope
offsetX += max(height / TEXT_ALIGN_BORDER, 1.0f);
^
ovgosd.c:1212:53: note: suggested alternative:
In file included from /usr/include/c++/6.1.1/algorithm:62:0,
from ovgosd.c:22:
/usr/include/c++/6.1.1/bits/stl_algo.h:3472:5: note: ‘std::max’
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
ovgosd.c:1219:53: error: ‘max’ was not declared in this scope
offsetX -= max(height / TEXT_ALIGN_BORDER, 1.0f);
^
ovgosd.c:1219:53: note: suggested alternative:
In file included from /usr/include/c++/6.1.1/algorithm:62:0,
from ovgosd.c:22:
/usr/include/c++/6.1.1/bits/stl_algo.h:3472:5: note: ‘std::max’
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
ovgosd.c: In member function ‘virtual bool cOvgCmdDrawBitmap::Execute(cEgl*)’:
ovgosd.c:1595:46: error: ‘min’ was not declared in this scope
int w = min(m_w, vgGeti(VG_MAX_IMAGE_WIDTH));
^
ovgosd.c:1595:46: note: suggested alternative:
In file included from /usr/include/c++/6.1.1/algorithm:62:0,
from ovgosd.c:22:
/usr/include/c++/6.1.1/bits/stl_algo.h:3460:5: note: ‘std::min’
min(initializer_list<_Tp> __l, _Compare __comp)
^~~
In file included from /usr/include/vdr/i18n.h:14:0,
from /usr/include/vdr/config.h:19,
from /usr/include/vdr/osd.h:16,
from ovgosd.h:23,
from ovgosd.c:32:
ovgosd.c: In member function ‘virtual cPixmap* cOvgOsd::CreatePixmap(int, const cRect&, const cRect&)’:
ovgosd.c:2378:46: error: ‘min’ was not declared in this scope
min(width, m_ovg->MaxImageSize().Width()),
^
ovgosd.c:2376:4: note: in expansion of macro ‘ELOG’
ELOG("[OpenVG] cannot allocate pixmap of %dpx x %dpx, "
^~~~
ovgosd.c:2378:46: note: suggested alternative:
min(width, m_ovg->MaxImageSize().Width()),
^
ovgosd.c:2376:4: note: in expansion of macro ‘ELOG’
ELOG("[OpenVG] cannot allocate pixmap of %dpx x %dpx, "
^~~~
In file included from /usr/include/c++/6.1.1/algorithm:62:0,
from ovgosd.c:22:
/usr/include/c++/6.1.1/bits/stl_algo.h:3460:5: note: ‘std::min’
min(initializer_list<_Tp> __l, _Compare __comp)
^~~
--------
Alles anzeigen
Der Patch wurde mit Hilfe des folgenden Patches erstellt. Also Credits an ihn.
Und nur hier der Patch für vdr-rpihddevice und der Commit: 00af2c0eb2b86249b5aa680fccd6d3239a05e8f8 2016-05-19 06:13:06