CentOS 8 / qt dependancy install issue
-
wrote on 10 Jan 2021, 06:43 last edited by
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.
-
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.
wrote on 10 Jan 2021, 08:10 last edited by@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.
-
wrote on 10 Jan 2021, 15:36 last edited by
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
-
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
wrote on 10 Jan 2021, 17:06 last edited by@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
-
wrote on 22 Oct 2021, 12:36 last edited by
In my case on Debian it was
libxcb* libxkbcommon*
that needed installing to get Qt to run.