Title: Linux-SDK fails to build [Print This Page] Author: d3x0r Time: 7/19/2019 03:38 Title: Linux-SDK fails to build There's this patch file...
package/qt5/qt5multimedia/0008-gsttools-videooverlay-Support-overriding-video-win-i.patch:+ QVideoWindowAbstractInterface *intf =
package/qt5/qt5multimedia/0008-gsttools-videooverlay-Support-overriding-video-win-i.patch:+ dynamic_cast<QVideoWindowAbstractInterface *>(window);
package/qt5/qt5multimedia/0011-gsttools-videowidget-Provide-widget-window-id-for-vi.patch:+class QGstreamerVideoWidget : public QWidget, public QVideoWindowAbstractInterface
which adds 'QVideoWindowAbstractInterface ' to qgstreamervideooverlay.cpp in linux-sdk/buildroot/output/rockchip_rk3399/build/qt5multimedia-5.6.3/src/gsttools/ which causes this error
make[4]: *** Waiting for unfinished jobs....
qgstreamervideooverlay.cpp: In function ¡®QWindow* getVideoWindow(WId)¡¯:
qgstreamervideooverlay.cpp:211:5: error: ¡®QVideoWindowAbstractInterface¡¯ was not declared in this scope
QVideoWindowAbstractInterface *intf =
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qgstreamervideooverlay.cpp:211:36: error: ¡®intf¡¯ was not declared in this scope
QVideoWindowAbstractInterface *intf =
^~~~
qgstreamervideooverlay.cpp:212:22: error: ¡®QVideoWindowAbstractInterface¡¯ does not name a type
dynamic_cast<QVideoWindowAbstractInterface *>(window);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qgstreamervideooverlay.cpp:212:52: error: expected ¡®>¡¯ before ¡®*¡¯ token
dynamic_cast<QVideoWindowAbstractInterface *>(window);
^
qgstreamervideooverlay.cpp:212:52: error: expected ¡®(¡¯ before ¡®*¡¯ token
qgstreamervideooverlay.cpp:212:53: error: expected primary-expression before ¡®>¡¯ token
dynamic_cast<QVideoWindowAbstractInterface *>(window);
^
qgstreamervideooverlay.cpp:212:62: error: expected ¡®)¡¯ before ¡®;¡¯ token
dynamic_cast<QVideoWindowAbstractInterface *>(window);
^
make[4]: *** [Makefile:1070: .obj/qgstreamervideooverlay.o] Error 1
make[3]: *** [Makefile:150: sub-gsttools-make_first] Error 2
make[2]: *** [Makefile:45: sub-src-make_first] Error 2
make[1]: *** [package/pkg-generic.mk:250: /home/d3x0r/work/arm-dev/linux-sdk/buildroot/output/rockchip_rk3399/build/qt5multimedia-5.6.3/.stamp_built] Error 2
make: *** [/home/d3x0r/work/arm-dev/linux-sdk/buildroot/output/rockchip_rk3399/Makefile:16: _all] Error 2
I've grepped for QVideoWindowAbstractInterface in the entire tree, and can only find the moidifed sources and the patch file.
Author: penguin Time: 7/25/2019 14:25
Please do a `repo sync` first before building.
The Qt version in the up-to-date Buildroot is 5.9.4 , FYI.Author: d3x0r Time: 8/3/2019 12:45
Okay, assuming I didn't, but did subsequently (and periodically) do repo sync after building? How do I fix it?
Repo diff shows 0 differences...
As I was writing that, I realized, maybe you mean 'do it NOW' so I did a sync and got some updates but it's still failing in the same area.
qgstreamervideowidget.cpp:45:1: error: expected class-name before ¡®{¡¯ token
{
^
qgstreamervideowidget.cpp:83:9: error: ¡®WId QGstreamerVideoWidget::videoWinId() const¡¯ marked ¡®override¡¯, but does not override
WId videoWinId() const Q_DECL_OVERRIDE {
^~~~~~~~~~
qgstreamervideooverlay.cpp: In function ¡®QWindow* getVideoWindow(WId)¡¯:
qgstreamervideooverlay.cpp:211:5: error: ¡®QVideoWindowAbstractInterface¡¯ was not declared in this scope
QVideoWindowAbstractInterface *intf =
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qgstreamervideooverlay.cpp:211:36: error: ¡®intf¡¯ was not declared in this scope
QVideoWindowAbstractInterface *intf =
^~~~
qgstreamervideooverlay.cpp:212:22: error: ¡®QVideoWindowAbstractInterface¡¯ does not name a type