Important: Please read the Qt Code of Conduct -

Qt Creator Community and Fedora 25 on wayland can't produce wayland app

  • Hi,

    I'm getting started with Qt. My objective is to write android + desktop applications. I have a working settings on Mac, Windows, but on Linux using Fedora 25 on wayland, I have some trouble making it work correctly.

    The bundle fedora Qt Creator don't seems to support android at all. So I install the community version from

    But now, when I build desktop application, it use X11 instead of wayland.

    Is there a way to make it work with wayland or I need to compile everything from source?

    Thank you

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    AFAIK, you would need the QtWayland module to get the wayland platform plugin.

    What version of Qt Creator does that version of Fedora provide ? Qt Creator has been supporting Android for a long time. You have to install the corresponding tools (SDK; NDK) and a Qt build for Android which AFAIK is not available through the distribution package managers.

  • Hi, Thanks for the quick response.

    Fedora provided Qt Create

    version 4.1

    There is two problem with this.

    1. Cannot build android version
      ndk is installed and configured.
      If I search in dnf/yum and can't find anything about android
      I always get in the "kits" configuration a warning saying `The compile (Android-GCC-xx) cannot compile for this version of Qt 5.7.1 (Linux-generic-x86-xx)
      I guess I don't have what it needs to link android-gcc stuff to Qt. But I have no idea what to do now.
      And like you said, it's not supported

    2. All executable run on platform xcb
      qt5-qtwayland is installed
      So no wayland, run in X instead of default wayland
      when adding -platform wayland to the executable, it returns
      Failed to create display (No such file or directory)

    Qt Create Community 4.2

    Installed from the website
    Android works fine
    But no wayland support
    If I pass -platform wayland to the exec, I get the following error
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

  • Lifetime Qt Champion

    1. Again that's expected. Linux distribution (AFAIK) don't provide Qt for mobile development.
    2. The standard binary package doesn't currently provide the Qt Wayland module, you need to build it yourself.

    Some more information about QtWayland can be found here.

  • I just want to make sure it wasn't a miss-configuration on my part.

    I did not try to recompile, but will do it later. So it resolve my issue for now.

    Thank you

  • Lifetime Qt Champion


    Then since the issue is solved for you please mark the thread as such using the "Topic Tools" button :)

Log in to reply