Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. aaPanel: qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found
Forum Updated to NodeBB v4.3 + New Features

aaPanel: qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 4 Posters 2.3k 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.
  • S Offline
    S Offline
    Strawberrymilke
    wrote on last edited by Strawberrymilke
    #1

    Dear Qt Community, I am running a Laravel script with .vue files, so I need to compile to see any change on my site. I'm running a clean installation of aaPanel on Ubuntu 23.10 btw

    When I run 'npm run build' or 'vite build' via the command line, I'm getting the following error.

    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
    loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
    qt.qpa.xcb: could not connect to display
    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.
    

    I've tried pretty much everything I could find via a Google search. Does anyone know how to fix this, so I'm finally able to compile?

    The full log coming back by using export QT_DEBUG_PLUGINS=1 is as follows:
    for 'npm build run' https://pastecode.io/s/w9zd4cf5
    for 'vite build' https://pastecode.io/s/n44r0zd5

    Thank you

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

      Hi and welcome to devnet,

      Any chances your desktop environment runs on Wayland ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Any chances your desktop environment runs on Wayland ?

        S Offline
        S Offline
        Strawberrymilke
        wrote on last edited by
        #3

        @SGaist Hi there :)

        First of all, my apologies, I'm not very technical. I'm running a server via digitalocean.com (Ubuntu 23.10) which I connect to via PuTTY (command line). My PC runs on Windows 11

        jsulmJ 1 Reply Last reply
        0
        • S Strawberrymilke

          @SGaist Hi there :)

          First of all, my apologies, I'm not very technical. I'm running a server via digitalocean.com (Ubuntu 23.10) which I connect to via PuTTY (command line). My PC runs on Windows 11

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Strawberrymilke If it's really a server it most probably have no GUI (no X11, no Wayland). Did you check that? If X11 is running on that server you will need to forward it when using ssh, see https://goteleport.com/blog/x11-forwarding/ for example.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 2 Replies Last reply
          0
          • jsulmJ jsulm

            @Strawberrymilke If it's really a server it most probably have no GUI (no X11, no Wayland). Did you check that? If X11 is running on that server you will need to forward it when using ssh, see https://goteleport.com/blog/x11-forwarding/ for example.

            S Offline
            S Offline
            Strawberrymilke
            wrote on last edited by
            #5

            @jsulm It seems that I do indeed have X11 installed, I shall look at that link and report back, thank you for your reply :)

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @Strawberrymilke If it's really a server it most probably have no GUI (no X11, no Wayland). Did you check that? If X11 is running on that server you will need to forward it when using ssh, see https://goteleport.com/blog/x11-forwarding/ for example.

              S Offline
              S Offline
              Strawberrymilke
              wrote on last edited by Strawberrymilke
              #6

              @jsulm Aii, that link you provided me (thank you) is quite technical.. I made sure X11 is installed on the server, but all I want is to basically compile my .vue files via the command line (terminal), so changes made to css/html show up on my site =/ Since the 'npm run build' command gave the following error about Qt, I came here.. but I think this is going way further than what I actually need

              1 Reply Last reply
              0
              • S Strawberrymilke

                Dear Qt Community, I am running a Laravel script with .vue files, so I need to compile to see any change on my site. I'm running a clean installation of aaPanel on Ubuntu 23.10 btw

                When I run 'npm run build' or 'vite build' via the command line, I'm getting the following error.

                Got keys from plugin meta data ("xcb")
                QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
                loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
                qt.qpa.xcb: could not connect to display
                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.
                

                I've tried pretty much everything I could find via a Google search. Does anyone know how to fix this, so I'm finally able to compile?

                The full log coming back by using export QT_DEBUG_PLUGINS=1 is as follows:
                for 'npm build run' https://pastecode.io/s/w9zd4cf5
                for 'vite build' https://pastecode.io/s/n44r0zd5

                Thank you

                S Offline
                S Offline
                Strawberrymilke
                wrote on last edited by Strawberrymilke
                #7

                @jsulm @SGaist Hi again :) I really tried my best to understand and fix this problem, but still with little luck. So basically, I made sure that X11 is installed on my Ubuntu 23.10 server that I connect to via SSH and that it is set up correctly with the sshd_config file containing:

                X11Forwarding yes
                X11DisplayOffset 10
                

                Still, when I run 'npm run build' or 'vite build' I get the same error about:

                qt.qpa.xcb: could not connect to display
                qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found
                

                Please help!

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8
                  qt.qpa.xcb: could not connect to display
                  qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found
                  

                  Run ldd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so

                  Do you have missing dependencies?

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  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