qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
-
wrote on 20 Jul 2021, 05:25 last edited by
@Lengendary said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
libxcb-xinerama0
I am also facing the same issue :
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/qfs/people/deso666/.conda/envs/particle/bin/platforms" ...
Cannot load library /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: (/share/apps/python/anaconda3.2019.3/lib/libQt5XcbQpa.so.5: symbol _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)
QLibraryPrivate::loadPlugin failed on "/qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: (/share/apps/python/anaconda3.2019.3/lib/libQt5XcbQpa.so.5: symbol _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)"
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.
sh: line 1: 26241 Aborted (core dumped) python gui_annotation.py
Then I ran:
user$ cd /qfs/people/deso666/.conda/envs/particle/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/
user$ ldd libqxcb.so
./libqxcb.so: /share/apps/python/anaconda3.2019.3/lib/libQt5Core.so.5: version `Qt_5.13' not found (required by ./libqxcb.so)
linux-vdso.so.1 => (0x00007ffd83f66000)
libQt5XcbQpa.so.5 => /share/apps/python/anaconda3.2019.3/lib/libQt5XcbQpa.so.5 (0x00007fcf99cc3000)
libfontconfig.so.1 => /share/apps/python/anaconda3.2019.3/lib/libfontconfig.so.1 (0x00007fcf99a7e000)
libfreetype.so.6 => /share/apps/python/anaconda3.2019.3/lib/libfreetype.so.6 (0x00007fcf999d2000)
libz.so.1 => /share/apps/python/anaconda3.2019.3/lib/libz.so.1 (0x00007fcf999b2000)
libQt5Gui.so.5 => /share/apps/python/anaconda3.2019.3/lib/libQt5Gui.so.5 (0x00007fcf995e5000)
libQt5DBus.so.5 => /share/apps/python/anaconda3.2019.3/lib/libQt5DBus.so.5 (0x00007fcf99585000)
libQt5Core.so.5 => /share/apps/python/anaconda3.2019.3/lib/libQt5Core.so.5 (0x00007fcf9916e000)
libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007fcf98efb000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fcf98cdf000)
libX11-xcb.so.1 => /share/apps/python/anaconda3.2019.3/lib/libX11-xcb.so.1 (0x00007fcf98cda000)
libxcb.so.1 => /share/apps/python/anaconda3.2019.3/lib/libxcb.so.1 (0x00007fcf98ab0000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007fcf988a5000)
libXext.so.6 => /share/apps/python/anaconda3.2019.3/lib/libXext.so.6 (0x00007fcf98890000)
libX11.so.6 => /share/apps/python/anaconda3.2019.3/lib/libX11.so.6 (0x00007fcf9874c000)
libm.so.6 => /usr/lib64/libm.so.6 (0x00007fcf9844a000)
libxkbcommon-x11.so.0 => /usr/lib64/libxkbcommon-x11.so.0 (0x00007fcf98242000)
libxkbcommon.so.0 => /usr/lib64/libxkbcommon.so.0 (0x00007fcf98001000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fcf97dfd000)
libstdc++.so.6 => /share/apps/python/anaconda3.2019.3/lib/libstdc++.so.6 (0x00007fcf97cbc000)
libgcc_s.so.1 => /share/apps/python/anaconda3.2019.3/lib/libgcc_s.so.1 (0x00007fcf97ca7000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007fcf978e4000)
libgthread-2.0.so.0 => /share/apps/python/anaconda3.2019.3/lib/./libgthread-2.0.so.0 (0x00007fcf978df000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007fcf976d6000)
libglib-2.0.so.0 => /share/apps/python/anaconda3.2019.3/lib/./libglib-2.0.so.0 (0x00007fcf975b9000)
libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007fcf973a9000)
libxml2.so.2 => /share/apps/python/anaconda3.2019.3/lib/./libxml2.so.2 (0x00007fcf9723e000)
libuuid.so.1 => /share/apps/python/anaconda3.2019.3/lib/./libuuid.so.1 (0x00007fcf9703a000)
libpng16.so.16 => /share/apps/python/anaconda3.2019.3/lib/./libpng16.so.16 (0x00007fcf97000000)
libdbus-1.so.3 => /share/apps/python/anaconda3.2019.3/lib/./libdbus-1.so.3 (0x00007fcf96fac000)
libicui18n.so.58 => /share/apps/python/anaconda3.2019.3/lib/./libicui18n.so.58 (0x00007fcf96b37000)
libicuuc.so.58 => /share/apps/python/anaconda3.2019.3/lib/./libicuuc.so.58 (0x00007fcf96788000)
libicudata.so.58 => /share/apps/python/anaconda3.2019.3/lib/./libicudata.so.58 (0x00007fcf94c88000)
/lib64/ld-linux-x86-64.so.2 (0x0000565509dbb000)
libexpat.so.1 => /share/apps/python/anaconda3.2019.3/lib/libexpat.so.1 (0x00007fcf94c54000)
libxcb-dri3.so.0 => /share/apps/python/anaconda3.2019.3/lib/libxcb-dri3.so.0 (0x00007fcf94a4e000)
libxcb-present.so.0 => /share/apps/python/anaconda3.2019.3/lib/libxcb-present.so.0 (0x00007fcf9484b000)
libxcb-sync.so.1 => /share/apps/python/anaconda3.2019.3/lib/libxcb-sync.so.1 (0x00007fcf94644000)
libxshmfence.so.1 => /usr/lib64/libxshmfence.so.1 (0x00007fcf94440000)
libglapi.so.0 => /usr/lib64/libglapi.so.0 (0x00007fcf94211000)
libselinux.so.1 => /usr/lib64/libselinux.so.1 (0x00007fcf93fea000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007fcf93de6000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007fcf93be0000)
libxcb-glx.so.0 => /share/apps/python/anaconda3.2019.3/lib/libxcb-glx.so.0 (0x00007fcf939c4000)
libxcb-dri2.so.0 => /share/apps/python/anaconda3.2019.3/lib/libxcb-dri2.so.0 (0x00007fcf937be000)
libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007fcf935b8000)
libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007fcf933a9000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fcf931a4000)
libxcb-xkb.so.1 => /usr/lib64/libxcb-xkb.so.1 (0x00007fcf92f88000)
libpcre.so.1 => /share/apps/python/anaconda3.2019.3/lib/././libpcre.so.1 (0x00007fcf92f3f000)
liblzma.so.5 => /share/apps/python/anaconda3.2019.3/lib/././liblzma.so.5 (0x00007fcf92d19000)please help me.
-
wrote on 23 Jul 2021, 21:25 last edited by IagoGV
For those who could face the same issue: I also got
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, xcb.
when trying to open last release of Dooble web browser (2021.07.05) on debian 10. Checking through
export QT_DEBUG_PLUGINS=1
I found thatCannot load library /opt/dooble/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory) QLibraryPrivate::loadPlugin failed on "/opt/dooble/plugins/platforms/libqxcb.so" : "Cannot load library /opt/dooble/plugins/platforms/libqxcb.so: (libxcb-util.so.1: 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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
After many tries of reinstalling libraries as suggested, finally I found the issue: I had installed
libxcb-util0
, but I neededlibxcb-util1
, which is only in the repository of Testing version of Debian 10. Installing it solved my issue.Thanks for the suggestion of using
export QT_DEBUG_PLUGINS=1
. -
Hi,
You should run your application with the
QT_DEBUG_PLUGINS
environment variable set to 1 to see what might go wrong when the plugin is loaded.wrote on 21 Aug 2021, 20:35 last edited by@SGaist Hey, i use a hp chromebook, with a linux development environment. I downloaded the Qt online installer and installed Qt succesfully but when i tried to run it i got this error:
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.
can you please help.
-
@SGaist Hey, i use a hp chromebook, with a linux development environment. I downloaded the Qt online installer and installed Qt succesfully but when i tried to run it i got this error:
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.
can you please help.
@Salihu hi and welcome to devnet,
Please read the thread, there are already several suggestions made to both find the reason and fix the issue.
-
wrote on 8 Sept 2021, 10:43 last edited by AlekHorak 9 Aug 2021, 11:06
I have same problem on redhat 8
after updating to qt creator 5
and one of solution that i did is to insted of running "/opt/Qt/Tools/QtCreator/bin/qtcreator"
I run "/opt/Qt/Tools/QtCreator/bin/qtcreator.sh"for icon to work:
cd /usr/local/share/applications
sudo vim org.qt-project.qtcreator.desktopchange this: Exec="/opt/Qt/Tools/QtCreator/bin/qtcreator" %F
to this: Exec="/opt/Qt/Tools/QtCreator/bin/qtcreator.sh" %F -
wrote on 24 Sept 2021, 03:40 last edited by
I have been trying to automatically LiveStream OBS-Studio, for sometime now, I was getting the error message reported here.
My setup is Ubuntu 21.0.4 OBS-Studio 27.01. I have a scrip that runs OBS with all the correct parameters to choose the correct video depending on the day of week. This script works perfectly. But it would not run from crontab.
The bulk of this post did not seem like it was solving the real problem and did not solve mine.The thing is my script did work when I ran it from the command line from within my "GUI" session. This indicates to me that I had all the correct things in place to run my script.
After some thought I realised .....
crontab runs on the console, if you want to think of it as an old tty terminal not a GUI session.So I determined what my $DISPLAY is by typing "echo $DISPLAY, in my case this returned 0 (zero).
Now I know my DISPLAY I putting the DISPLAY=0 in the users crontab, before calling my script and this worked.
As above, I determined my DISPLAY number by: Typing echo $DISPLAY and pressing ENTER. This gave me 0.
My crontab now has: 55 20 * * * DISPLAY=:0 /home/pats/Documents/LiveStreamFiles/scripts/myscript.sh 2>&1 &
Thanks again and I hope this helps others...
-
wrote on 9 Oct 2021, 14:31 last edited by
Nikolay_spb about an hour ago
Help my please.
I have error and cat't it fixed two day.
I done two commandsexport QT_DEBUG_PLUGINS=1
qtcreatorand get code
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"archreq": 0,
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"archreq": 0,
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimalegl"
]
},
"archreq": 0,
"className": "QMinimalEglIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archreq": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"vnc"
]
},
"archreq": 0,
"className": "QVncIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
qt.qpa.xcb: could not connect to display :1.0
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.
Where i have error?
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
-
Nikolay_spb about an hour ago
Help my please.
I have error and cat't it fixed two day.
I done two commandsexport QT_DEBUG_PLUGINS=1
qtcreatorand get code
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"archreq": 0,
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"archreq": 0,
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimalegl"
]
},
"archreq": 0,
"className": "QMinimalEglIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archreq": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"vnc"
]
},
"archreq": 0,
"className": "QVncIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
qt.qpa.xcb: could not connect to display :1.0
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.
Where i have error?
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
wrote on 9 Oct 2021, 17:18 last edited by@Nikolay_spb said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
qt.qpa.xcb: could not connect to display :1.0
Same question and answer as in your thread https://forum.qt.io/topic/130978/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in. Not an xcb library loading problem, rather however your X display is set up/connecting.
Please pick one or other thread to discuss. Suggest the other one now that you have started it.
-
wrote on 11 Oct 2021, 12:48 last edited by
I, think I just had the same problem (on Debian 10). Did a sys-update -> QtCreator does not start anymore.
How I got QtCreator to start again is by adding a soft link to libxcb-util since it seems that the platformplugi is trying to load the wrong version?sudo ln -s /usr/lib/x86_64-linux-gnu/libxcb-util.so.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1
That might not be a perfect solution but now I can use it again at least.
-
@jarvis said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqminimalegl.so"
Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqoffscreen.so"
GotHi,
Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to get more information.
-
@Matriarch, thank you,
sudo apt-get install libxcb-xinerama0
worked for me on Ubuntu 20.04. Shame one has to scroll so deep down into the discussion before finding the answer.
Also, I recently spent a lot of time getting a Qt application to run in a Github Actions VM - I was battling the xcb errors. Here's the complete list of things that needed to be installed:
sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'
wrote on 24 Oct 2021, 09:59 last edited byhello @Violet-Giraffe
it worked for me
thank you -
I am using Qt-5.15.0, got the same problem.
More details are:
QLibraryPrivate::loadPlugin failed on "/opt/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /opt/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)"Solved by installing the dependent package.
Command to install: sudo apt-get install libxcb-xinerama0wrote on 30 Oct 2021, 15:56 last edited by@Srinivas-Reddy Yes, that's the solution. ❤️
-
I am using Qt-5.15.0, got the same problem.
More details are:
QLibraryPrivate::loadPlugin failed on "/opt/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /opt/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)"Solved by installing the dependent package.
Command to install: sudo apt-get install libxcb-xinerama0wrote on 23 Nov 2021, 15:23 last edited by LTossitThanks, now it works!
-
I am using Qt-5.15.0, got the same problem.
More details are:
QLibraryPrivate::loadPlugin failed on "/opt/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /opt/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)"Solved by installing the dependent package.
Command to install: sudo apt-get install libxcb-xinerama0wrote on 16 Dec 2021, 01:16 last edited by@Srinivas-Reddy I solved this issue, tks
-
wrote on 4 Jan 2022, 12:58 last edited by UltraBlack_ 1 Apr 2022, 12:59
Hey there,
it seems like I am facing the same issue as well, on Arch once again.
I have already tried debugging with QT_DEBUG_PLUGINS=1 (https://termbin.com/uszc - After fixage) but after solving all of the errors there I still wasn't able to fix this.
The applications run fine when executing them with sudo, but just not otherwise.
Do you have and Ideas?
Thanks! -
Hey there,
it seems like I am facing the same issue as well, on Arch once again.
I have already tried debugging with QT_DEBUG_PLUGINS=1 (https://termbin.com/uszc - After fixage) but after solving all of the errors there I still wasn't able to fix this.
The applications run fine when executing them with sudo, but just not otherwise.
Do you have and Ideas?
Thanks!wrote on 4 Jan 2022, 13:12 last edited by@UltraBlack_
Please search again for your error message, which isqt.qpa.xcb: could not connect to display
. There are plenty of posts about that on this forum and elsewhere. As I wrote earlier that means:Not an xcb library loading problem, rather however your X display is set up/connecting.
Since you say it runs under
sudo
, I can only imagine either your permissions or your X environment is set up to allow that but not for your non-sudo
user.As always, try to run an
xterm
. If you cannot run that you know you do not have a Qt problem. -
wrote on 13 Mar 2022, 22:56 last edited by
Same problem here.
When I run app freshly build everything works.
But when I want to >process.setArguments(["--set-rpath", "./", releaseFile])
Then everything breaks. Error :Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Its driving me nuts. Adding rpath relative to current binary/folder breaks everything ;/
-
Same problem here.
When I run app freshly build everything works.
But when I want to >process.setArguments(["--set-rpath", "./", releaseFile])
Then everything breaks. Error :Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Its driving me nuts. Adding rpath relative to current binary/folder breaks everything ;/
@Dariusz said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
Adding rpath relative to current binary/folder
It is relative to current working directory - are you sure it is the correct one?
-
wrote on 14 Mar 2022, 09:20 last edited by
@jsulm said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
@Dariusz said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
Adding rpath relative to current binary/folder
It is relative to current working directory - are you sure it is the correct one?
Relative to the current working directory... but if I move exe to a different directory, then will the path be relative to that new directory or old one?
Its all in root of app, I even tried to copy plugins content out of plugins folder and in to root too. Nothing seems to be working. -
@jsulm said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
@Dariusz said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
Adding rpath relative to current binary/folder
It is relative to current working directory - are you sure it is the correct one?
Relative to the current working directory... but if I move exe to a different directory, then will the path be relative to that new directory or old one?
Its all in root of app, I even tried to copy plugins content out of plugins folder and in to root too. Nothing seems to be working.@Dariusz said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
but if I move exe to a different directory, then will the path be relative to that new directory or old one?
Well, yes it should be the working directory of the process you start, so the one where the exe is located.