Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Clean install Qt on a fresh Debian leads to problems with libqxcb.so.debug
Inso last edited by Inso
after running into critical issues installing mqtt library when using the debian package installer (see [https://forum.qt.io/topic/115350/installing-mqtt-library](this forum post)), I try now to install Qt using the online installer.
Base is "debian-10.4.0-amd64-xfce-CD-1.iso" installed as a VM (VMware Workstation 15). Set it up this morning (several times^^), only installed stuff is VMWareTools and Filezilla.
I now write detailed about the Qt installation, also add a Problem section below which just shows the problem:
The detailed Qt part:
sudo apt-get install build-essential libgl1-mesa-dev
Then I installed Qt from
[https://www.qt.io/download](the official source)
-> go open source
-> download online installer
chmod u+x qt-unified-linux-x64-3.2.3-online.run ./qt-unified-linux-x64-3.2.3-online.run ./qt-unified-linux-x64-3.2.3-online.run: error while loading shared libraries: libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory
sudo apt install libxkbcommon-x11-0
![https://ibb.co/vPhDtcV](Qt 5.15 and all Dev and Designer Tools)
strangely, "standard" does not choose a single component
After installation, I chose:
"Qt Quick Application - empty"
"min version: Qt 5.12"
among Kits, I chose
"Desktop Qt 15.5.0 GCC 64bit (default)".
Opening it shows no debugger, debugger page does no list one.
mentions GDB as a native debugger
says commands to execute:
sudo apt-get update sudo apt-get install gdb
which installs the debugger
after restarting QtCreator, the debugger shows up, but Qt-Version is greyed out:
however, as no error shows up, I create the project.
Here, without changing anything, just launching, I get the error
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
according to [https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/2](this page)
I need to set QT_DEBUG_PLUGINS to 1 for more information, according to
the command is
when used in main cpp, executed first off.
now, end of the output shows:
Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() looking at "/home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so.debug" "The shared library was not found." not a plugin QFactoryLoader::QFactoryLoader() checking directory path "/home/inso/build-untitled-Desktop_Qt_5_15_0_GCC_64bit-Debug/platforms" ... Cannot load library /home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden) QLibraryPrivate::loadPlugin failed on "/home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)" 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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb
However, looking for the path returns the same one used by the compiler:
sudo find / -name libqxcb.so.debug /home/inso/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so.debug
it is here directly pointing me to the debug, which I installed later on. I have searched for "libqxcb.so.debug" here on the forum and online, but it does not appear somewhere.
Does anybody have an idea how to solve this. No matter reinstalling, downloading whatever. I´m working on this problems for ~two days now, every solution is appreciated which solves the problem. Only thing is, I´d like to stick to Debian, as later I also will reinstall my Pi same way then here, and be able to debug the application there.
WayToGoPotato last edited by
I have been struggling with the same exact problem for days as well. The interesting part is the named missing shared library (libqxcb.so.debug) is available in the same directory that printed in the error message.
I installed all the recommended libraries listed in: https://doc.qt.io/qt-5/linux-requirements.html and I still have the same error message.
Post the plugin diagnostics please. Also, judging by the message you need to install