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. qt.qpa.xcb: could not connect to display error
Forum Updated to NodeBB v4.3 + New Features

qt.qpa.xcb: could not connect to display error

Scheduled Pinned Locked Moved Unsolved General and Desktop
22 Posts 5 Posters 22.8k 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.
  • D deleted286

    @Colins2 it doesnt find it. I will figure it out

    ldd: /home/ilknur/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: No such file or directory
    
    C Offline
    C Offline
    Colins2
    wrote on last edited by Colins2
    #13

    @suslucoder
    libxcb-utils.so.* is not a Qt library so you may have to get it using your update tool.
    Here's an excerpt from my system from the ldd command:
    libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f11afec6000)
    libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f11afcc1000)
    libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f11afcba000)
    libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f11afab3000)
    libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f11af8b0000)
    Obviously showing after the link I created.

    1 Reply Last reply
    1
    • mrjjM mrjj

      Hi
      You mean run your project stand alone ?

      Did you make a deployment folder for it ?

      D Offline
      D Offline
      deleted286
      wrote on last edited by
      #14

      @mrjj sorry i didnt see this answer. Im trying to run on qt creator. ı didnt deploy my project.

      mrjjM 1 Reply Last reply
      0
      • D deleted286

        @mrjj sorry i didnt see this answer. Im trying to run on qt creator. ı didnt deploy my project.

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

        @suslucoder

        Ok. Is this by any chance ubuntu 20.04 ?

        sometimes people have to install libxcb-xinerama.so

        sometimes more.

        sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
        sudo apt-get install libxkbcommon-x11-dev

        https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/64

        but please check with ldd first, what is actually missing.

        D 1 Reply Last reply
        1
        • mrjjM mrjj

          @suslucoder

          Ok. Is this by any chance ubuntu 20.04 ?

          sometimes people have to install libxcb-xinerama.so

          sometimes more.

          sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
          sudo apt-get install libxkbcommon-x11-dev

          https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/64

          but please check with ldd first, what is actually missing.

          D Offline
          D Offline
          deleted286
          wrote on last edited by
          #16

          @mrjj I've solve this problem with setting ld library path in environment variables.
          But now, it says it cannot find another lib, i really stuck on it

          jsulmJ 1 Reply Last reply
          0
          • D deleted286

            @mrjj I've solve this problem with setting ld library path in environment variables.
            But now, it says it cannot find another lib, i really stuck on it

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

            @suslucoder said in qt.qpa.xcb: could not connect to display error:

            i really stuck on it

            You forgot to say which other lib is not found now...
            Also, setting LD_LIBRARY_PATH is not necessary if all needed packages are installed properly.

            Please take a look at https://doc.qt.io/qt-5/linux-requirements.html

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

            D 1 Reply Last reply
            0
            • jsulmJ jsulm

              @suslucoder said in qt.qpa.xcb: could not connect to display error:

              i really stuck on it

              You forgot to say which other lib is not found now...
              Also, setting LD_LIBRARY_PATH is not necessary if all needed packages are installed properly.

              Please take a look at https://doc.qt.io/qt-5/linux-requirements.html

              D Offline
              D Offline
              deleted286
              wrote on last edited by
              #18

              @jsulm when i run it on terminal
              like

              ./my app name
              

              there is no library that gives not found error

              but when i tried to run it on qt creator it is give an error.
              Other lib is that cannot found, libqmapcontrol.so.0
              it is related with qmapcontrol

              jsulmJ 1 Reply Last reply
              0
              • D deleted286

                @jsulm when i run it on terminal
                like

                ./my app name
                

                there is no library that gives not found error

                but when i tried to run it on qt creator it is give an error.
                Other lib is that cannot found, libqmapcontrol.so.0
                it is related with qmapcontrol

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

                @suslucoder said in qt.qpa.xcb: could not connect to display error:

                qmapcontrol

                How did you install it (and where)?

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

                D 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @suslucoder said in qt.qpa.xcb: could not connect to display error:

                  qmapcontrol

                  How did you install it (and where)?

                  D Offline
                  D Offline
                  deleted286
                  wrote on last edited by
                  #20

                  @jsulm i have a folder named as library in my project folder.
                  And i give a path for it my my .pro file.
                  I dont know how it is installed, i take the project from who worked here before me.
                  But it works perfect, till the day i tried to deploy.
                  But i deployed it to another folder, i didnt touch the orijinal project

                  jsulmJ 1 Reply Last reply
                  0
                  • D deleted286

                    @jsulm i have a folder named as library in my project folder.
                    And i give a path for it my my .pro file.
                    I dont know how it is installed, i take the project from who worked here before me.
                    But it works perfect, till the day i tried to deploy.
                    But i deployed it to another folder, i didnt touch the orijinal project

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

                    @suslucoder I think I already gave you this link: https://doc.qt.io/qt-5/linux-deployment.html

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

                    D 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @suslucoder I think I already gave you this link: https://doc.qt.io/qt-5/linux-deployment.html

                      D Offline
                      D Offline
                      deleted286
                      wrote on last edited by
                      #22

                      @jsulm yes you did but my problem is not about deploying.
                      I cannot run my project on qt creator

                      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