Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703560 - media-libs/qtav-1.12.0 : w/ Qt 5.14 /.../SGVideoNode.cpp:56:32: error: invalid use of incomplete type class QSGMaterial
Summary: media-libs/qtav-1.12.0 : w/ Qt 5.14 /.../SGVideoNode.cpp:56:32: error: invali...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Johannes Huber (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: qt-5.14
  Show dependency tree
 
Reported: 2019-12-22 20:48 UTC by Toralf Förster
Modified: 2020-01-10 21:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.12 KB, text/plain)
2019-12-22 20:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,106.38 KB, text/plain)
2019-12-22 20:48 UTC, Toralf Förster
Details
environment (environment,112.06 KB, text/plain)
2019-12-22 20:48 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.42 KB, application/x-bzip)
2019-12-22 20:48 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.10 KB, application/x-bzip)
2019-12-22 20:48 UTC, Toralf Förster
Details
media-libs:qtav-1.12.0:20191222-203107.log (media-libs:qtav-1.12.0:20191222-203107.log,447.12 KB, text/plain)
2019-12-22 20:48 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,41.55 KB, application/x-bzip)
2019-12-22 20:48 UTC, Toralf Förster
Details
Proposed patch (not sure if both headers are needed) (qsgmat.patch,443 bytes, patch)
2020-01-07 04:46 UTC, David Haller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-12-22 20:48:24 UTC
cd /var/tmp/portage/media-libs/qtav-1.12.0/work/qtav-1.12.0_build/qml && /usr/bin/x86_64-pc-linux-gnu-g++ -DBUILD_QMLAV_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQmlAV_EXPORTS -I/var/tmp/portage/media-libs/qtav-1.12.0/work/qtav-1.12.0_build/qml -I/var/tmp/portage/media-libs/qtav-1.12.0/work/QtAV-1.12.0/qml -I/var/tmp/portage/media-libs/qtav-1.12.0/work/qtav-1.12.0_build/qml/QmlAV_autogen/include -I/var/tmp/portage/media-libs/qtav-1.12.0/work/QtAV-1.12.0/qml/QmlAV -I/var/tmp/portage/media-libs/qtav-1.12.0/work/QtAV-1.12.0/src -I/var/tmp/portage/media-libs/qtav-1.12.0/work/QtAV-1.12.0/src/QtAV -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels   -DNDEBUG -O2 -pipe -march=native  -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -fPIC -o CMakeFiles/QmlAV.dir/SGVideoNode.cpp.o -c /var/tmp/portage/media-libs/qtav-1.12.0/work/QtAV-1.12.0/qml/SGVideoNode.cpp
/var/tmp/portage/media-libs/qtav-1.12.0/work/QtAV-1.12.0/qml/SGVideoNode.cpp:56:32: error: invalid use of incomplete type ‘class QSGMaterial’
   56 | class SGVideoMaterial : public QSGMaterial
      |                                ^~~~~~~~~~~
In file included from /usr/include/qt5/QtQuick/QSGGeometryNode:1,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl_test-20191218-224550

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)

Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 22 Dec 2019 20:05:51 +0000

emerge -qpvO media-libs/qtav
[ebuild  N    ] media-libs/qtav-1.12.0  USE="opengl -gui -libav -portaudio -pulseaudio -vaapi"
Comment 1 Toralf Förster gentoo-dev 2019-12-22 20:48:26 UTC
Created attachment 600408 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-12-22 20:48:29 UTC
Created attachment 600410 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-12-22 20:48:32 UTC
Created attachment 600412 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-12-22 20:48:35 UTC
Created attachment 600414 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-12-22 20:48:37 UTC
Created attachment 600416 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-12-22 20:48:40 UTC
Created attachment 600418 [details]
media-libs:qtav-1.12.0:20191222-203107.log
Comment 7 Toralf Förster gentoo-dev 2019-12-22 20:48:43 UTC
Created attachment 600420 [details]
temp.tbz2
Comment 8 David Haller 2020-01-07 04:46:59 UTC
Created attachment 602704 [details, diff]
Proposed patch (not sure if both headers are needed)

I just ran into this too, and adding these two headers (with the patch applied via the eapply_user mechanism) worked. No idea which one or if both headers are needed, I'm too tired to care, which explains the patches filename, too ;) HTH...
Comment 9 Johannes Huber (RETIRED) gentoo-dev 2020-01-07 21:14:19 UTC
(In reply to David Haller from comment #8)
> Created attachment 602704 [details, diff] [details, diff]
> Proposed patch (not sure if both headers are needed)
> 
> I just ran into this too, and adding these two headers (with the patch
> applied via the eapply_user mechanism) worked. No idea which one or if both
> headers are needed, I'm too tired to care, which explains the patches
> filename, too ;) HTH...

Thank you for the patch. I will add it as soon I have upgraded my Qt to 5.14. Would be nice if you send it upstream.
Comment 10 Larry the Git Cow gentoo-dev 2020-01-07 21:54:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc58ee0973adc018239f499f2715ef87de4a7857

commit fc58ee0973adc018239f499f2715ef87de4a7857
Author:     Johannes Huber <johu@gentoo.org>
AuthorDate: 2020-01-07 21:52:50 +0000
Commit:     Johannes Huber <johu@gentoo.org>
CommitDate: 2020-01-07 21:53:55 +0000

    media-libs/qtav: Fix build w/ Qt 5.14
    
    Thanks-to: David Haller <gentoo@dhaller.de>
    Closes: https://bugs.gentoo.org/703560
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Johannes Huber <johu@gentoo.org>

 media-libs/qtav/files/qtav-1.12.0-qt5.14.patch | 12 ++++++++++++
 media-libs/qtav/qtav-1.12.0-r1.ebuild          |  1 +
 2 files changed, 13 insertions(+)
Comment 11 David Haller 2020-01-10 21:21:43 UTC
No need to upstream, it seems that adding QSGMaterial suffices, see:
https://github.com/wang-bin/QtAV/commit/5abba7f0505e75fceabd4dd8992a7e02bb149d64

And no, I did not see that before ;)