Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Can't find QT6 inserts to satisfy Wayland
QtWS25 Last Chance

Can't find QT6 inserts to satisfy Wayland

Scheduled Pinned Locked Moved Unsolved Qt 6
4 Posts 2 Posters 1.3k Views
  • 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.
  • R Offline
    R Offline
    RonLinmd
    wrote on 29 May 2024, 21:23 last edited by
    #1

    To all:

    I am running the following:
    Windows11 Pro
    WSL2
    Ubuntu 22.04.4 LTS
    from PyQt6 import QtCore 6.7.0
    from PyQt5 import QtCore 5.15.8

    I can make this run string work: QT_QPA_PLATFORM=xdb openmc-plotter
    So I know the path statement is correct, and the openmc-plotter app works.
    I would like to have this ( and other apps) work with the Wayland insert.

    Since the $HOME/anaconda3/lib/qt6/plugins/platforms/ folder did not contain land-generic.so or libqwayland-egl.so,
    I copied versions from other locations under a QT6 heading directory, into this folder.

    When I execute this string, QT_QPA_PLATFORM=Wayland openmc-plotter
    I get the following:

    qt.core.plugin.loader: In $HOME/anaconda3/lib/qt6/plugins/platforms/libqwayland-generic.so:
    Plugin uses incompatible Qt library (6.7.0) [release]
    qt.core.plugin.loader: In $HOME/anaconda3/lib/qt6/plugins/platforms/libqwayland-egl.so:
    Plugin uses incompatible Qt library (6.7.0) [release]
    qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "$HOME/anaconda3/lib/qt6/plugins/platforms"
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

    Available platform plugins are: minimal, offscreen, vnc, linuxfb, xcb.

    How can I get versions of libqwayland-generic.so and libqwayland-egl.so that will solve this dependency?

    Thanks

    Ron

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 May 2024, 18:40 last edited by
      #2

      Hi,

      Just copying my answer to your other post:

      From a quick search, I think you need to install the qt6-wayland package from conda.
      

      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
      • R Offline
        R Offline
        RonLinmd
        wrote on 3 Jun 2024, 14:18 last edited by
        #3

        Thanks for the response. This response did work for Anaconda-Navigator. However, it doesn't appear to have worked for a different app.

        QT_QPA_PLATFORM_PLUGIN_PATH=$HOME/anaconda3/pkgs/qt6-wayland-6.7.0-h6af8810_0/lib/qt6/plugins/platforms QT_QPA_PLATFORM=wayland-egl openmc-plotter
        qt.qpa.plugin: Could not load the Qt platform plugin "wayland-egl" in "$HOME/anaconda3/pkgs/qt6-wayland-6.7.0-h6af8810_0/lib/qt6/plugins/platforms" even though it was found.
        This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

        I've tried uninstalling openmc-plotter and reinstalling with conda, but it has not fixed the issue. Openmc-plotter works when
        QT_QPA_PLATFORM=xcb.

        Any suggestions?
        Thanks again.
        Ron

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 3 Jun 2024, 19:36 last edited by
          #4

          Start the application with the QT_DEBUG_PLUGINS environment variable set to 1 to see why it fails to load.

          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

          4/4

          3 Jun 2024, 19:36

          • Login

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