Skip to content

Issues building 4.6.4/4.6.6 on Ubuntu 23.10 - error: ‘QWaylandApplication’ is not a member of ‘QNativeInterface’ #1338

Closed Answered by shenlebantongying
Bro-Account asked this question in Q&A
Discussion options

You must be logged in to vote

The rood cause is that Qt can be built without either Wayland or xcb support (The GitHub actions CI working because the one in Ubuntu has both enabled.).

These lines need to guard against these situations with

#ifdef QT_FEATURE_xcb
#ifdef QT_FEATURE_wayland

if (QGuiApplication::platformName() == QStringLiteral("xcb")) {
display.type = MPV_RENDER_PARAM_X11_DISPLAY;
display.data = qApp->nativeInterface<QNativeInterface::QX11Application>()->display();
}
if (QGuiApplication::platformName() == QStringLiteral("wayland")) {
display.type = MPV_RENDER_PARAM_WL_DIS…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Bro-Account
Comment options

@shenlebantongying
Comment options

Answer selected by Bro-Account
@Bro-Account
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants