"Failed to Load Platform Plugin "Xcb" " While Launching Qt5 App on Linux Without Qt Installed

Failed to load platform plugin xcb while launching qt5 app on linux without qt installed

Use ldd (man ldd) to show shared library dependencies. Running this on libqxcb.so

.../platforms$ ldd libqxcb.so

shows that xcb depends on libQt5DBus.so.5 in addition to libQt5Core.so.5 and libQt5Gui.so.5 (and many other system libs). Add libQt5DBus.so.5 to your collection of shared libs and you should be ready to move on.

QT Could not find the Qt platform plugin xcb

1. Install requirements:

sudo apt install make g++ pkg-config libgl1-mesa-dev libxcb*-dev libfontconfig1-dev libxkbcommon-x11-dev python libgtk-3-dev
  • python is optional for QtQuick.
  • libgtk-3-dev optional if you want the GTK native theme for QtWidgets.

2. Configure:

./configure -opensource -confirm-license -nomake tests -nomake examples -prefix /path/to/install/dir

3. Compile:

make -j $(nproc)

make install

Failed to load platform plugin xcb while launching qt5 app on linux without qt installed

Use ldd (man ldd) to show shared library dependencies. Running this on libqxcb.so

.../platforms$ ldd libqxcb.so

shows that xcb depends on libQt5DBus.so.5 in addition to libQt5Core.so.5 and libQt5Gui.so.5 (and many other system libs). Add libQt5DBus.so.5 to your collection of shared libs and you should be ready to move on.



Related Topics



Leave a reply



Submit