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. CentOS 8 / qt dependancy install issue
Forum Updated to NodeBB v4.3 + New Features

CentOS 8 / qt dependancy install issue

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 7.5k Views 1 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.
  • A Offline
    A Offline
    amess
    wrote on last edited by
    #1

    Hello, I installed QtCreator on CentOS using the recommended download "qt-unified-linux-x64-4.0.1-online.run". However when I run qtcreator I get:

    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/andy/Qt/Tools/QtCreator/bin/platforms" ...
    Cannot load library /home/andy/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)
    QLibraryPrivate::loadPlugin failed on "/home/andy/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/andy/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)"
    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, xcb.
    
    Aborted (core dumped)
    

    when I "ldd libqxcb.so" I do get these missing dependancies, but the problem is that I can't seem to figure out how to install them on CentOS 8 (some googling and trying yum isntall on a bunch of variations have gotten me nowhere).

    	libxcb-icccm.so.4 => not found
    	libxcb-image.so.0 => not found
    	libxcb-keysyms.so.1 => not found
    	libxcb-render-util.so.0 => not found
    

    Kind of took me off guard since everything was a very fresh install .. I'm not tied to CentOS if there is a better option that is known to work more reliably with the latest Qt (?). Thanks.

    JonBJ 1 Reply Last reply
    0
    • A amess

      Hello, I installed QtCreator on CentOS using the recommended download "qt-unified-linux-x64-4.0.1-online.run". However when I run qtcreator I get:

      Got keys from plugin meta data ("xcb")
      QFactoryLoader::QFactoryLoader() checking directory path "/home/andy/Qt/Tools/QtCreator/bin/platforms" ...
      Cannot load library /home/andy/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)
      QLibraryPrivate::loadPlugin failed on "/home/andy/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/andy/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)"
      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, xcb.
      
      Aborted (core dumped)
      

      when I "ldd libqxcb.so" I do get these missing dependancies, but the problem is that I can't seem to figure out how to install them on CentOS 8 (some googling and trying yum isntall on a bunch of variations have gotten me nowhere).

      	libxcb-icccm.so.4 => not found
      	libxcb-image.so.0 => not found
      	libxcb-keysyms.so.1 => not found
      	libxcb-render-util.so.0 => not found
      

      Kind of took me off guard since everything was a very fresh install .. I'm not tied to CentOS if there is a better option that is known to work more reliably with the latest Qt (?). Thanks.

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

      @amess
      I don't do CentOS, but I took your first missing and Googled centos libxcb-icccm, and the very first hit, https://pkgs.org/download/libxcb-icccm.so.4()(64bit), seemed fine, offering CentOS 8. Is this not suitable?

      A lot of us will use a Debian variant for Linux development, e.g. Ubuntu, where the packages are sure to exist. I don't know if you want to use CentOS, I certainly would not say though that you ought switch distros just to satisfy Qt, you can get it working on any.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        amess
        wrote on last edited by
        #3

        Thank you @JonB I guess I'm spoiled and get easily confused when yum can't bail me out of my dependancy problems. For others who may be having this issue here are the exact commands that did the trick:

        sudo dnf install http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xcb-util-wm-0.4.1-12.el8.x86_64.rpm
        sudo dnf install http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xcb-util-image-0.4.0-9.el8.x86_64.rpm
        sudo dnf install http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xcb-util-keysyms-0.4.0-7.el8.x86_64.rpm
        sudo dnf install http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xcb-util-renderutil-0.3.9-10.el8.x86_64.rpm
        
        JonBJ 1 Reply Last reply
        2
        • A amess

          Thank you @JonB I guess I'm spoiled and get easily confused when yum can't bail me out of my dependancy problems. For others who may be having this issue here are the exact commands that did the trick:

          sudo dnf install http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xcb-util-wm-0.4.1-12.el8.x86_64.rpm
          sudo dnf install http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xcb-util-image-0.4.0-9.el8.x86_64.rpm
          sudo dnf install http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xcb-util-keysyms-0.4.0-7.el8.x86_64.rpm
          sudo dnf install http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xcb-util-renderutil-0.3.9-10.el8.x86_64.rpm
          
          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @amess
          Thank you for posting this. For anyone coming here, it seems from https://forum.qt.io/topic/122520/qt-creator-don-t-launch-on-ubuntu-20-04-lts/4 that getting xcb going in Debian is quite different packages:

          sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
          
          1 Reply Last reply
          1
          • V Offline
            V Offline
            Vadi2
            wrote on last edited by
            #5

            In my case on Debian it was libxcb* libxkbcommon* that needed installing to get Qt to run.

            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