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

Fresh install 5.15: Could not load the Qt platform plugin "xcb"

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 5 Posters 8.6k Views 2 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.
  • P Offline
    P Offline
    poncho524
    wrote on last edited by
    #1

    I installed 5.15 fresh. twice. on Linux. running a simple application gives me the error

    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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
    
    Aborted (core dumped)
    

    what gives? Anyone else have this problem? I'm running Linux Mint 18.3.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      poncho524
      wrote on last edited by
      #2

      Found it...
      libqxcb.so wanted libxcb-xinerama.so.0, which apparently i was missing.
      installed it and all is well.
      frustrating.

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        Thanks for the tip! Just upgraded Qt from 5.14 to 5.15 on my Ubuntu 20.04 and got stuck with the same error. Easily fixed with a

        sudo apt install libxcb-xinerama0
        
        H P 2 Replies Last reply
        0
        • hskoglundH hskoglund

          Thanks for the tip! Just upgraded Qt from 5.14 to 5.15 on my Ubuntu 20.04 and got stuck with the same error. Easily fixed with a

          sudo apt install libxcb-xinerama0
          
          H Offline
          H Offline
          huynhthien
          wrote on last edited by
          #4

          @hskoglund thank you so much, it work for me!

          1 Reply Last reply
          0
          • hskoglundH hskoglund

            Thanks for the tip! Just upgraded Qt from 5.14 to 5.15 on my Ubuntu 20.04 and got stuck with the same error. Easily fixed with a

            sudo apt install libxcb-xinerama0
            
            P Offline
            P Offline
            PuddleGlum_1
            wrote on last edited by
            #5

            @hskoglund

            Which resulted in

            $ sudo apt install libxcb-xinerama0
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            Package libxcb-xinerama0 is not available, but is referred to by another package.
            This may mean that the package is missing, has been obsoleted, or
            is only available from another source

            E: Package 'libxcb-xinerama0' has no installation candidate

            Attempting to simply run Calibre after wiping my hard drive and reinstalling Ubuntu 20.04.3

            mrjjM 1 Reply Last reply
            0
            • P PuddleGlum_1

              @hskoglund

              Which resulted in

              $ sudo apt install libxcb-xinerama0
              Reading package lists... Done
              Building dependency tree
              Reading state information... Done
              Package libxcb-xinerama0 is not available, but is referred to by another package.
              This may mean that the package is missing, has been obsoleted, or
              is only available from another source

              E: Package 'libxcb-xinerama0' has no installation candidate

              Attempting to simply run Calibre after wiping my hard drive and reinstalling Ubuntu 20.04.3

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @PuddleGlum_1

              sudo apt update
              sudo apt install libxcb-xinerama0

              works for me ?

              • I saw a post where poster also have to install
                sudo apt install -y -q libxkbcommon-x11-0
                sudo apt install -y -q libxcb-image0
                sudo apt install -y -q libxcb-keysyms1
                sudo apt install -y -q libxcb-render-util0
                sudo apt install -y -q libxcb-icccm4
                sudo apt install -y -q build-essential libgl1-mesa-dev
              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