Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is this "warning"?

What is this "warning"?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 45.6k 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on 17 May 2021, 17:16 last edited by
    #1

    I do not care for "warnings" , but have no clue where did this came from.

    Please - help me to get rid this
    If possible provide actual SOLUTION, RTFM or "search xyz " "suggestions" seldom helps.
    If you cannot provide direct solution IGNORE this post

    Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
    12:06:03: /home/qt/Qt/PROJECTS/build-TEST-Desktop_Qt_5_15_2_GCC_64bit-Debug/TEST exited with code 0

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 18 May 2021, 12:07 last edited by
      #2

      You are likely running Wayland desktop session but you used to run X11. If your application runs, you can safely ignore this.

      If it does not, try setting the environment variable like the warning tells you, or run your app with -platform=wayland parameter. Not sure if wayland platform plugin is shipped by default, but if yes, it should work.

      (Z(:^

      A 1 Reply Last reply 18 May 2021, 16:09
      7
      • S sierdzio
        18 May 2021, 12:07

        You are likely running Wayland desktop session but you used to run X11. If your application runs, you can safely ignore this.

        If it does not, try setting the environment variable like the warning tells you, or run your app with -platform=wayland parameter. Not sure if wayland platform plugin is shipped by default, but if yes, it should work.

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on 18 May 2021, 16:09 last edited by
        #3

        @sierdzio Can you tell me EXACTLY where - in "options" - to REMOVE this warning ?
        I suspect it is "byproduct" of new Ubuntu 21.04
        I have a funny philosophy - if it does not contribute why mentioning it and do not really gave (in warning message) a real option / suggestion how to stop it.

        On top of that - even before upgrading to 21.04 I have experienced new errors and this useless warning COULD have contributed to the errors.

        Again - to be honest , I cannot consider this issue "SOLVED".

        S 1 Reply Last reply 19 May 2021, 05:20
        0
        • J Offline
          J Offline
          JoeCFD
          wrote on 18 May 2021, 16:15 last edited by JoeCFD
          #4

          @sierdzio said in What is this "warning"?:

          -platform=wayland

          export QT_QPA_PLATFORM=wayland
          ./your app

          or ./your app -platform wayland

          if you do not have qt wayland, install it:
          git clone git://code.qt.io/qt/qtwayland.git
          cd qtwayland
          git checkout v5.15.2 #(this is your qt version)
          qmake
          make
          sudo make install
          https://wiki.qt.io/QtWayland <== check here out

          Hope it is solved.

          N 1 Reply Last reply 4 Aug 2021, 14:25
          2
          • A Anonymous_Banned275
            18 May 2021, 16:09

            @sierdzio Can you tell me EXACTLY where - in "options" - to REMOVE this warning ?
            I suspect it is "byproduct" of new Ubuntu 21.04
            I have a funny philosophy - if it does not contribute why mentioning it and do not really gave (in warning message) a real option / suggestion how to stop it.

            On top of that - even before upgrading to 21.04 I have experienced new errors and this useless warning COULD have contributed to the errors.

            Again - to be honest , I cannot consider this issue "SOLVED".

            S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 19 May 2021, 05:20 last edited by sierdzio
            #5

            @AnneRanch said in What is this "warning"?:

            @sierdzio Can you tell me EXACTLY where - in "options" - to REMOVE this warning ?

            In what "options" - if you want exact answer, ask exact question please.

            If you speak about Qt Creator, then:

            • go to Projects
            • go to Run
            • in "Command line arguments:", type -platform=wayland
            • run your application

            Alternatively you can try -platform=xcb to force X11 plugin to load.

            And the last option is to run X11 (you can choose display manager when logging in to your Linux system).

            I suspect it is "byproduct" of new Ubuntu 21.04

            Yes, default window manager has changed to Wayland for some users.

            I have a funny philosophy - if it does not contribute why mentioning it and do not really gave (in warning message) a real option / suggestion how to stop it.

            But it does give you exact information how to solve it...

            (Z(:^

            1 Reply Last reply
            7
            • J JoeCFD
              18 May 2021, 16:15

              @sierdzio said in What is this "warning"?:

              -platform=wayland

              export QT_QPA_PLATFORM=wayland
              ./your app

              or ./your app -platform wayland

              if you do not have qt wayland, install it:
              git clone git://code.qt.io/qt/qtwayland.git
              cd qtwayland
              git checkout v5.15.2 #(this is your qt version)
              qmake
              make
              sudo make install
              https://wiki.qt.io/QtWayland <== check here out

              Hope it is solved.

              N Offline
              N Offline
              nikhilsarma-
              wrote on 4 Aug 2021, 14:25 last edited by nikhilsarma- 8 Apr 2021, 14:33
              #6

              @JoeCFD plz give me solution sir,
              Today I installed qt 6.1 in my PC (red hat 8),so after finishing downloading and pressed on finish button ,default qt creator should open but it didn’t open ,so I tryed to open from my terminal and I getting this warning message and getting Abort

              Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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.

              Can anyone please solve this problem for me,thanks in advance .

              SGaistS 1 Reply Last reply 4 Aug 2021, 18:58
              0
              • N nikhilsarma-
                4 Aug 2021, 14:25

                @JoeCFD plz give me solution sir,
                Today I installed qt 6.1 in my PC (red hat 8),so after finishing downloading and pressed on finish button ,default qt creator should open but it didn’t open ,so I tryed to open from my terminal and I getting this warning message and getting Abort

                Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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.

                Can anyone please solve this problem for me,thanks in advance .

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 4 Aug 2021, 18:58 last edited by
                #7

                @nikhilsarma hi, @sierdzio already gave the information you need.

                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

                • Login

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