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. Qt installation is missing libxcb
Forum Update on Monday, May 27th 2025

Qt installation is missing libxcb

Scheduled Pinned Locked Moved Solved Installation and Deployment
15 Posts 4 Posters 12.6k Views
  • 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.
  • mzimmersM mzimmers

    Hi all -

    After a long sojourn in Windows purgatory, I'm finally returning to Linux-land, using WSL2. The last time I did this, I was using Qt 5. I remember reading somewhere that more recent versions of Qt aren't including everything that the older versions did.

    I'm trying to run the qt-unified-linux-x64-4.6.0-online.run, and am getting an error:

    ./qt-unified-linux-x64-4.6.0-online.run: error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory
    

    Do I need to install libxcb myself? If so, should I just download it from freedesktop?

    Thanks...

    JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by JoeCFD
    #3

    @mzimmers said in Qt installation is missing libxcb:

    WSL2

    Try to install it. Which version do you select if you download it?

    I am using a free version of vmWare Player at home. It may be better.

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher

      @mzimmers said in Qt installation is missing libxcb:

      Do I need to install libxcb myself?

      Yes

      If so, should I just download it from freedesktop?

      No, with your package manager.

      mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by mzimmers
      #4

      @Christian-Ehrlicher said in Qt installation is missing libxcb:

      No, with your package manager.

      OK, thanks. apt-cache search libxcb returns a long list of libraries -- how do I determine which I want? This command:

      sudo apt-get install libxcb
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      E: Unable to locate package libxcb
      

      didn't work.

      I can provide the list if helpful.

      EDIT:

      I'm guessing it's probably one of these two:

      libxcb-icccm4 - utility libraries for X C Binding -- icccm
      libxcb-icccm4-dev - utility libraries for X C Binding -- icccm, development files
      
      JonBJ 1 Reply Last reply
      0
      • mzimmersM mzimmers

        @Christian-Ehrlicher said in Qt installation is missing libxcb:

        No, with your package manager.

        OK, thanks. apt-cache search libxcb returns a long list of libraries -- how do I determine which I want? This command:

        sudo apt-get install libxcb
        Reading package lists... Done
        Building dependency tree... Done
        Reading state information... Done
        E: Unable to locate package libxcb
        

        didn't work.

        I can provide the list if helpful.

        EDIT:

        I'm guessing it's probably one of these two:

        libxcb-icccm4 - utility libraries for X C Binding -- icccm
        libxcb-icccm4-dev - utility libraries for X C Binding -- icccm, development files
        
        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #5

        @mzimmers
        I'm not sure those icccm4 names ring a bell for me under Ubuntu at least?
        You might start looking at the list in https://doc.qt.io/qt-6/linux-requirements.html. (Though whatever I/others install is not nearly as long as the complete list there.)
        The bits required for libxcb have been asked about so often for various platforms, you could search posts here about libxcb and which named packages people installed.

        JoeCFDJ 1 Reply Last reply
        1
        • JonBJ JonB

          @mzimmers
          I'm not sure those icccm4 names ring a bell for me under Ubuntu at least?
          You might start looking at the list in https://doc.qt.io/qt-6/linux-requirements.html. (Though whatever I/others install is not nearly as long as the complete list there.)
          The bits required for libxcb have been asked about so often for various platforms, you could search posts here about libxcb and which named packages people installed.

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #6

          @JonB "error while loading shared libraries: libxcb-icccm.so" clearly shows what is missing.

          install libxcb-icccm4.

          JonBJ mzimmersM 2 Replies Last reply
          1
          • JoeCFDJ JoeCFD

            @JonB "error while loading shared libraries: libxcb-icccm.so" clearly shows what is missing.

            install libxcb-icccm4.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by JonB
            #7

            @JoeCFD LOL, I didn't look at the error message :)
            [You should restore your post. I think you were correct :) ]

            JoeCFDJ 1 Reply Last reply
            0
            • JonBJ JonB

              @JoeCFD LOL, I didn't look at the error message :)
              [You should restore your post. I think you were correct :) ]

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #8

              @JonB I restored it after I made sure I have this one in my computer.

              1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                @JonB "error while loading shared libraries: libxcb-icccm.so" clearly shows what is missing.

                install libxcb-icccm4.

                mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by mzimmers
                #9

                @JoeCFD I tried that command, and I get the same "package not found" error.

                I'm looking at the list on the page that @JonB referenced. I don't want one of the -dev packages, though, do I?

                EDIT:

                This page returned a long list, too, but might the first entry be the one I want?
                packages.JPG

                JoeCFDJ 1 Reply Last reply
                0
                • mzimmersM mzimmers

                  @JoeCFD I tried that command, and I get the same "package not found" error.

                  I'm looking at the list on the page that @JonB referenced. I don't want one of the -dev packages, though, do I?

                  EDIT:

                  This page returned a long list, too, but might the first entry be the one I want?
                  packages.JPG

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #10

                  @mzimmers -dev has include files which you do not need. You need them only when your app uses these libs directly. Therefore, install libxcb-icccm4 is good enough.

                  run command:
                  locate libxcb-icccm.so

                  to see if it is installed and where it is located.

                  mzimmersM 1 Reply Last reply
                  1
                  • JoeCFDJ JoeCFD

                    @mzimmers -dev has include files which you do not need. You need them only when your app uses these libs directly. Therefore, install libxcb-icccm4 is good enough.

                    run command:
                    locate libxcb-icccm.so

                    to see if it is installed and where it is located.

                    mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by mzimmers
                    #11

                    @JoeCFD said in Qt installation is missing libxcb:

                    @mzimmers -dev has include files which you do not need. You need them only when your app use these libs directly.

                    OK, that's what I thought...thanks. Though I will need to build my own Qt libraries from source (this is ultimately for an embedded system), so I guess eventually I will need one of those.

                    run command:
                    locate libxcb-icccm.so

                    to see if it is installed and where it is located.

                    That command returned nothing (which I expected).

                    I imagine that one of the packages returned in the search above is what I want; I just don't know which one.

                    JoeCFDJ 1 Reply Last reply
                    0
                    • mzimmersM mzimmers

                      @JoeCFD said in Qt installation is missing libxcb:

                      @mzimmers -dev has include files which you do not need. You need them only when your app use these libs directly.

                      OK, that's what I thought...thanks. Though I will need to build my own Qt libraries from source (this is ultimately for an embedded system), so I guess eventually I will need one of those.

                      run command:
                      locate libxcb-icccm.so

                      to see if it is installed and where it is located.

                      That command returned nothing (which I expected).

                      I imagine that one of the packages returned in the search above is what I want; I just don't know which one.

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by
                      #12

                      @mzimmers
                      is your OS Ubuntu?
                      If yes, run
                      sudo synaptic
                      click find icon and type libxcb-icccm4
                      you will be able to see it. Then select it and install. You can see if it is installed or not.

                      mzimmersM 1 Reply Last reply
                      1
                      • JoeCFDJ JoeCFD

                        @mzimmers
                        is your OS Ubuntu?
                        If yes, run
                        sudo synaptic
                        click find icon and type libxcb-icccm4
                        you will be able to see it. Then select it and install. You can see if it is installed or not.

                        mzimmersM Offline
                        mzimmersM Offline
                        mzimmers
                        wrote on last edited by
                        #13

                        @JoeCFD handy stuff to know...thanks.

                        So, after I installed libxcb_icccm4, I got a similar error for _image, then for _keysyms. I can go through these one at a time, but...is there a "superset" package that will save me the work?

                        JoeCFDJ 1 Reply Last reply
                        0
                        • mzimmersM mzimmers

                          @JoeCFD handy stuff to know...thanks.

                          So, after I installed libxcb_icccm4, I got a similar error for _image, then for _keysyms. I can go through these one at a time, but...is there a "superset" package that will save me the work?

                          JoeCFDJ Offline
                          JoeCFDJ Offline
                          JoeCFD
                          wrote on last edited by
                          #14

                          @mzimmers Maybe it is better to install them one after another. Otherwise, you may install a lot of things which are not needed.

                          mzimmersM 1 Reply Last reply
                          0
                          • JoeCFDJ JoeCFD

                            @mzimmers Maybe it is better to install them one after another. Otherwise, you may install a lot of things which are not needed.

                            mzimmersM Offline
                            mzimmersM Offline
                            mzimmers
                            wrote on last edited by mzimmers
                            #15

                            For anyone who may happen to need this information, here are the xcb libraries I needed for Qt 6.5.2:

                            • libxcb-icccm4
                            • libxcb-image
                            • libxcb-keysyms
                            • libxcb-render_util
                            • libxcb-xinerama
                            • libxcb-xkb
                              plus:
                            • libxkbcommon-X11

                            I ran into problems installing these with apt (it couldn't find the first one), but the Synaptic application @JoeCFD mentioned worked fine.

                            sudo apt install synaptic
                            

                            Thanks to everyone for the help.

                            1 Reply Last reply
                            4
                            • mzimmersM mzimmers has marked this topic as solved on
                            • mzimmersM mzimmers has marked this topic as unsolved on
                            • mzimmersM mzimmers has marked this topic as solved on

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved