Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Creator Community and Fedora 25 on wayland can't produce wayland app
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 qt.io.
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?
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
There is two problem with this.
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
All executable run on platform xcb
So no wayland, run in X instead of default wayland
-platform waylandto 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 waylandto the exec, I get the following error
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
- Again that's expected. Linux distribution (AFAIK) don't provide Qt for mobile development.
- 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.
Then since the issue is solved for you please mark the thread as such using the "Topic Tools" button :)