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. QXcbConnection: Could not connect to display
Forum Updated to NodeBB v4.3 + New Features

QXcbConnection: Could not connect to display

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 6.7k 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.
  • M Offline
    M Offline
    Maelp
    wrote on last edited by A Former User
    #1

    [my solution is at the end of the message]

    Hi.
    I am encountering the same problem as in this topic :

    QXcbConnection: Could not connect to display 
    Abandon
    

    and I can't manage how to solve it. I read the proposed solution but first apparently, he had troubles when compiling, and he runs it on windows. I couldn't try it as I am working with Linux.

    Here is the situation : I developped an application on Linux/Ubuntu (Ubuntu 14.04.3 LTS) that works fine. I want to deploy it on a server (Debian GNU/Linux 8 ) without installing Qt or compiling it.
    I added all the required libraries into the folder pointed by LD_LIBRARY_PATH. Then I got a problem with xcb wich has been solved by adding the libqxcb to the folder pointed by QT_QPA_PLATFORM_PLUGIN_PATH.

    Since then I have this error and I can't manage how to solve it. I copied all the plugins from from Qtrootdir/plugins/platforms/ to QT_QPA_PLATFORM_PLUGIN_PATH;
    all the qml from Qtrootdir/qml into QML_IMPORT_PATH (and QML2_IMPORT_PATH (as I read this link ) and I can't manage to find anything else to do.

    Would anyone have any idea?
    Thanks :)

    ***Solution : ***
    The problem was that I was trying to display a window when I actually had no monitor or anything.
    So I used ssh -X in order to use my computer's display.

    I hope this will help people in the future.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @Maelp said:

      I want to deploy it on a server

      Are you sure your X server is up and running?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Maelp
        wrote on last edited by
        #3

        Hi,

        The problem was that I was trying to display a window when I actually had no monitor or anything.
        So I used ssh -X in order to use my computer's display.

        I hope this will help people in the future.

        1 Reply Last reply
        1
        • S Offline
          S Offline
          Shidharth
          wrote on last edited by Shidharth
          #4

          @Maelp @Wieland
          I'm also having the same error when deploy the application.

          How can I use ssh-X in Ubuntu 16.04? I'm newbie to Ubuntu, can you please provide the steps to overcome the error.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Shidharth
            wrote on last edited by
            #5

            Resolved by setting the DISPLAY and XAUTHORITY Environment variables.

            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