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

Qt installation is missing libxcb

Scheduled Pinned Locked Moved Solved Installation and Deployment
15 Posts 4 Posters 12.2k 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.
  • M Offline
    M Offline
    mzimmers
    wrote on 16 Aug 2023, 15:33 last edited by
    #1

    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...

    C J 2 Replies Last reply 16 Aug 2023, 15:39
    0
    • J JoeCFD
      16 Aug 2023, 16:49

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

      M Offline
      M Offline
      mzimmers
      wrote on 16 Aug 2023, 17:06 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
      • M mzimmers
        16 Aug 2023, 15:33

        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...

        C Online
        C Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 16 Aug 2023, 15:39 last edited by
        #2

        @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.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        M 1 Reply Last reply 16 Aug 2023, 15:42
        2
        • M mzimmers
          16 Aug 2023, 15:33

          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...

          J Offline
          J Offline
          JoeCFD
          wrote on 16 Aug 2023, 15:40 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
          • C Christian Ehrlicher
            16 Aug 2023, 15:39

            @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.

            M Offline
            M Offline
            mzimmers
            wrote on 16 Aug 2023, 15:42 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
            
            J 1 Reply Last reply 16 Aug 2023, 15:49
            0
            • M mzimmers
              16 Aug 2023, 15:42

              @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
              
              J Offline
              J Offline
              JonB
              wrote on 16 Aug 2023, 15:49 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.

              J 1 Reply Last reply 16 Aug 2023, 15:51
              1
              • J JonB
                16 Aug 2023, 15:49

                @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.

                J Offline
                J Offline
                JoeCFD
                wrote on 16 Aug 2023, 15:51 last edited by
                #6

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

                install libxcb-icccm4.

                J M 2 Replies Last reply 16 Aug 2023, 15:52
                1
                • J JoeCFD
                  16 Aug 2023, 15:51

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

                  install libxcb-icccm4.

                  J Offline
                  J Offline
                  JonB
                  wrote on 16 Aug 2023, 15:52 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 :) ]

                  J 1 Reply Last reply 16 Aug 2023, 15:54
                  0
                  • J JonB
                    16 Aug 2023, 15:52

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

                    J Offline
                    J Offline
                    JoeCFD
                    wrote on 16 Aug 2023, 15:54 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
                    • J JoeCFD
                      16 Aug 2023, 15:51

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

                      install libxcb-icccm4.

                      M Offline
                      M Offline
                      mzimmers
                      wrote on 16 Aug 2023, 16:10 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

                      J 1 Reply Last reply 16 Aug 2023, 16:24
                      0
                      • M mzimmers
                        16 Aug 2023, 16:10

                        @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

                        J Offline
                        J Offline
                        JoeCFD
                        wrote on 16 Aug 2023, 16:24 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.

                        M 1 Reply Last reply 16 Aug 2023, 16:27
                        1
                        • J JoeCFD
                          16 Aug 2023, 16:24

                          @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.

                          M Offline
                          M Offline
                          mzimmers
                          wrote on 16 Aug 2023, 16:27 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.

                          J 1 Reply Last reply 16 Aug 2023, 16:31
                          0
                          • M mzimmers
                            16 Aug 2023, 16:27

                            @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.

                            J Offline
                            J Offline
                            JoeCFD
                            wrote on 16 Aug 2023, 16:31 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.

                            M 1 Reply Last reply 16 Aug 2023, 16:43
                            1
                            • J JoeCFD
                              16 Aug 2023, 16:31

                              @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.

                              M Offline
                              M Offline
                              mzimmers
                              wrote on 16 Aug 2023, 16:43 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?

                              J 1 Reply Last reply 16 Aug 2023, 16:49
                              0
                              • M mzimmers
                                16 Aug 2023, 16:43

                                @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?

                                J Offline
                                J Offline
                                JoeCFD
                                wrote on 16 Aug 2023, 16:49 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.

                                M 1 Reply Last reply 16 Aug 2023, 17:06
                                0
                                • J JoeCFD
                                  16 Aug 2023, 16:49

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

                                  M Offline
                                  M Offline
                                  mzimmers
                                  wrote on 16 Aug 2023, 17:06 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
                                  • M mzimmers has marked this topic as solved on 16 Aug 2023, 17:10
                                  • M mzimmers has marked this topic as unsolved on 16 Aug 2023, 17:11
                                  • M mzimmers has marked this topic as solved on 16 Aug 2023, 17:14

                                  10/15

                                  16 Aug 2023, 16:24

                                  • Login

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