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. Could not load the Qt platform plugin "xcb
Forum Updated to NodeBB v4.3 + New Features

Could not load the Qt platform plugin "xcb

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 12.2k 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by
    #1

    if calling system("~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/Desktop/MPU/MPU.pro &");

    getting output below:

    Warning: Ignoring WAYLAND_DISPLAY 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.

    Available platform plugins are: minimalegl, offscreen, wayland-egl, linuxfb, minimal, vkkhrdisplay, wayland, xcb, vnc, eglfs.

    SGaistS 1 Reply Last reply
    0
    • J JacobNovitsky

      if calling system("~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/Desktop/MPU/MPU.pro &");

      getting output below:

      Warning: Ignoring WAYLAND_DISPLAY 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.

      Available platform plugins are: minimalegl, offscreen, wayland-egl, linuxfb, minimal, vkkhrdisplay, wayland, xcb, vnc, eglfs.

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you running your Desktop Environment on Wayland as the error message suggests ? If so, do as suggested and use the wayland QPA.

      If not, start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see exactly why the xcb loading fails.

      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
      • S Offline
        S Offline
        Stecco
        wrote on last edited by
        #3

        try:

        sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'

        L 1 Reply Last reply
        2
        • S Stecco

          try:

          sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'

          L Offline
          L Offline
          Luciano Moffatt
          wrote on last edited by
          #4

          @Stecco Thanks stecco, I was unable to run the latest versions of qtcreator and after running your suggestion (sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*') everything got solved.

          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