Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator Community and Fedora 25 on wayland can't produce wayland app
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 2 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Francisl
    wrote on last edited by
    #1

    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 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?

    Thank you

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • F Offline
        F Offline
        Francisl
        wrote on last edited by
        #3

        Hi, Thanks for the quick response.

        Fedora provided Qt Create

        version 4.1
        qt5.7.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 qt.io
        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4
          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • F Offline
            F Offline
            Francisl
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Good

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

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved