Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579208 - dev-qt/qtwayland-5.7.0[-qml]: [...]src/compositor/compositor_api/qwaylandquickitem_p.h:51:42: fatal error: QtQuick/private/qquickitem_p.h: No such file or directory
Summary: dev-qt/qtwayland-5.7.0[-qml]: [...]src/compositor/compositor_api/qwaylandquic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 599448 (view as bug list)
Depends on:
Blocks: 586612
  Show dependency tree
 
Reported: 2016-04-07 07:45 UTC by Alpha Bravo
Modified: 2016-12-14 16:21 UTC (History)
6 users (show)

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


Attachments
build.log (qtwlb2.log,197.27 KB, text/x-log)
2016-04-07 07:50 UTC, Alpha Bravo
Details
emerge --info qtwayland (eminfqtwl2,5.53 KB, text/plain)
2016-04-07 07:50 UTC, Alpha Bravo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alpha Bravo 2016-04-07 07:45:18 UTC
[qt overlay] dev-qt/qtwayland-5.7.0_alpha ../../include/QtWaylandCompositor/5.7.0/QtWaylandCompositor/private/../../../../../src/compositor/compositor_api/qwaylandquickitem_p.h:51:42: fatal error: QtQuick/private/qquickitem_p.h: No such file or directory
compilation terminated.
Comment 1 Alpha Bravo 2016-04-07 07:50:10 UTC
Created attachment 429816 [details]
build.log
Comment 2 Alpha Bravo 2016-04-07 07:50:36 UTC
Created attachment 429818 [details]
emerge --info qtwayland
Comment 3 Patrick McMunn 2016-06-01 00:27:43 UTC
I ran into this same error with dev-qt/qtwayland-5.7.0_beta. I noticed that qwaylandquickitem_p.h is provided by qtdeclarative, which I already had installed. However, qtwayland's ebuild only pulls in qtdeclarative as a dependency if both the qml and wayland-compositor USE flags are enabled. I tried recompiling with wayland-compositor enabled, but it still failed. Then I tried again with both wayland-compositor and qml use flags enabled, and it succeeded. So I'm not sure why it's not finding the header when those use flags are disabled, but enabling them both can be used as a temporary workaround. During all my tests, the only other use flag I had enabled was egl.
Comment 4 Philipp Ammann 2016-07-10 08:58:07 UTC
Same issue with dev-qt/qtwayland-5.7.0 (final) from the qt overlay.

It works with USE="qml" and doesn't depend USE="wayland-compositor".
Comment 5 Michael Palimaka (kensington) gentoo-dev 2016-07-27 15:25:45 UTC
This regression appears to be introduced here:

https://code.qt.io/cgit/qt/qtwayland.git/commit/src/compositor/extensions/qwaylandwlshell.cpp?id=5e5e866c8c1fc8234c25770d84e9591041e67d69

the added include qwaylandwlshellintegration_p.h unconditionally includes QtWaylandCompositor/private/qwaylandquickshellsurfaceitem_p.h which is only built with USE="qml".

I'm not sure if this is something we can fix downstream - it looks like quick is effectively mandatory now.
Comment 6 Michael Palimaka (kensington) gentoo-dev 2016-10-28 11:35:43 UTC
There doesn't appear to be anything happening upstream with this, so I've removed the qml USE flag in the overlay ready for 5.7.1:

https://gitweb.gentoo.org/proj/qt.git/commit/?id=5326331764a0612870c92ce1310d6a1cb8776322
Comment 7 Michael Palimaka (kensington) gentoo-dev 2016-11-12 13:36:09 UTC
*** Bug 599448 has been marked as a duplicate of this bug. ***
Comment 8 Gino McCarty 2016-11-20 01:24:58 UTC
Hey guys so this problem is simple...
qtwayland-5.7.0 and newer requires qtdeclarative to be installed irregardless of the qml or wayland-compositor use flags.

So the ebuild just needs to be altered to require qtdeclarative always.

<SNIP>
DEPEND="
	>=dev-libs/wayland-1.4.0
	~dev-qt/qtcore-${PV}
	~dev-qt/qtgui-${PV}[egl=]
	media-libs/mesa[egl?]
	>=x11-libs/libxkbcommon-0.2.0
+	~dev-qt/qtdeclarative-${PV}
-	wayland-compositor? (
-		qml? ( ~dev-qt/qtdeclarative-${PV} )
-	)
	xcomposite? (
		x11-libs/libX11
		x11-libs/libXcomposite
	)
"
<SNIP>
Comment 9 Michael Palimaka (kensington) gentoo-dev 2016-12-14 16:21:43 UTC
Fixed in 5.7.1.