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.

Please do a repo sync first before building.
The Qt version in the up-to-date Buildroot is 5.9.4 , FYI.

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

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

This is biuldroot/packages/qt5/qtmultimedia
I guess last time I tried this was july 17 which is before this all started…

is there a stable tag point/checkpoint I can get back to?
In ‘repo branches’ there are no branches…

 Nov 15  2018 0001-qt5multimedia-qmlvideo-support-assigned-videosink.patch
 Nov 15  2018 0002-Avoid-X11-header-collision-when-x11-disabled.patch
 Nov 15  2018 0003-change-playbin-to-playbin3.patch
 Nov 15  2018 0004-qgstreamerplayersession-set-m_videoIdentity-drop-buf.patch
 Nov 15  2018 0005-qgstreamerplayersession-add-seek-direct-to-ensure-se.patch
 Jul 17 15:22 0006-gsttools-videowidget-Set-overlay-rectangle-when-resi.patch
 Jul 17 15:22 0007-gsttools-videooverlay-Support-waylandsink-in-the-rig.patch
 Jul 17 15:22 0008-gsttools-videooverlay-Support-overriding-video-win-i.patch
 Jul 17 15:22 0009-gsttools-videooverlay-Make-holes-for-kmssink-on-wayl.patch
 Jul 17 15:22 0010-gsttools-videowidget-Use-transparent-background.patch
 Jul 17 15:22 0011-gsttools-videowidget-Provide-widget-window-id-for-vi.patch
 Jul 17 15:22 0012-gstreamer-mediaplayer-Fix-hangs-when-replacing-pause.patch
 Nov 15  2018 Config.in
 Nov 15  2018 qt5multimedia.hash
 Jul 17 15:22 qt5multimedia.mk

Hello.Have you solved this problem? I have the same problem.

I appreciate your article, it really gave me a new perspective. Free Valid FCP_FSM_AN-7.2 exam discount voucher resources to help you. Wishing you the best of luck in your exam!

I’ve learned many valuable experiences from this article. We’ve made Valid MB-310 exam pdf available free of charge, hoping it enriches your studies.

This article is amazing, thank you for sharing it with us! Free Latest visual Operations-Management cert test resources for your exam prep. Best of luck to everyone!

I’m really thankful for your article, it’s truly unforgettable. Thanks to the PC-BA-FBA-20 reliable exam voucher system, I got a promotion and a salary increase. Now, I’m making it free for everyone. Wishing you all a swift rise in your careers!