I can't open qtcreator in ubuntu
-
Hi and welcome to devnet,
Use a terminal and start Qt Creator from there, you should get some more information about what is going wrong.
How did you install Qt Creator ?
-
Search for the Terminal application, go to the folder where you installed Qt Creator and start it.
What is your level of proficiency with Linux ?
-
To execute an application from its containing folder use
./name_of_executable
. -
oh, sorry
from terminal
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 (memory dump)
-
Start Qt Creator with the QT_DEBUG_PLUGINS environment variable set to 1. It will tell you what made the loading failed.
-
What did you have to modify ?
-
@aaron2020 hi and welcome to devnet,
What exactly did you do ?
What exactly did you install ? -
I experienced the same issue. In the last step, the plugin debug warned me that libxcb-xinerama0 was missing and sudo apt-get install --reinstall libxcb-xinerama0 fixed it.
Hope it helps, cheers. -
@aaron2020 hi and welcome to devnet,
What exactly did you do ?
What exactly did you install ?@SGaist Hey, I'm getting the same problem as OP
"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 (memory dump)"
changing the QT_DEBUG_PLUGINS variable did not change it. I reinstalled it aswell.
-
Hi and welcome to devnet,
This environment variable triggers debugging output on the console so you get more information about what is failing.
Did you install the libraries @Leon-Abascal suggested ?
-
Hi and welcome to devnet,
This environment variable triggers debugging output on the console so you get more information about what is failing.
Did you install the libraries @Leon-Abascal suggested ?
-
I experienced the same issue. In the last step, the plugin debug warned me that libxcb-xinerama0 was missing and sudo apt-get install --reinstall libxcb-xinerama0 fixed it.
Hope it helps, cheers.@Leon-Abascal you save my life! Same problem and same working solution! (ubuntu 21.04 in virtualbox)
-
oh, sorry
from terminal
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 (memory dump)
@marbor :
export QT_DEBUG_PLUGINS=1
./qtcreator
show error: Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library
installed : sudo apt-get install --reinstall libxcb-xinerama0
this worked for me.
after installation: go for this command ./qtcreator -
So I've done a number of things to try to correct this issue. Firstly, I'm on Debian 10. I installed Qt in a directory like this: /home/kevin/Applications/Qt
I've already tried reinstalling libxcb-xinerama0 as well as uninstalling and reinstalling Qt.
Here is the debug output:./qtcreator QFactoryLoader::QFactoryLoader() checking directory path "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so" Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "eglfs" ] }, "archreq": 0, "className": "QEglFSIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("eglfs") QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so" Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "linuxfb" ] }, "archreq": 0, "className": "QLinuxFbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("linuxfb") QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so" Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archreq": 0, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimal") QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so" Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimalegl" ] }, "archreq": 0, "className": "QMinimalEglIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimalegl") QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so" Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archreq": 0, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("offscreen") QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so" Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vnc" ] }, "archreq": 0, "className": "QVncIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("vnc") QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "xcb" ] }, "archreq": 0, "className": "QXcbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/kevin/Applications/Qt/Tools/QtCreator/bin/platforms" ... Cannot load library /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory) QLibraryPrivate::loadPlugin failed on "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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, xcb. Aborted
As reccomended by @hskoglund in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
Hi, try:
ldd /usr/lib/qt/plugins/platforms/libqxcb.so
The output of
ldd /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so
is
linux-vdso.so.1 (0x00007fff96d31000) libQt5XcbQpa.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5 (0x00007f5121d3a000) libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f5121cde000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f5121c22000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f5121a04000) libQt5Gui.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5Gui.so.5 (0x00007f51210d3000) libQt5DBus.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5DBus.so.5 (0x00007f5120e45000) libQt5Core.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5Core.so.5 (0x00007f512064f000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f51205bb000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f512059a000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f5120595000) libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f512058e000) libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f5120389000) libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f5120382000) libxcb-util.so.1 => not found libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f512017f000) libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f512016d000) libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f511ff69000) libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f511ff5a000) libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f511ff53000) libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f511ff49000) libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f511ff3f000) libxcb-xinerama.so.0 => /lib/x86_64-linux-gnu/libxcb-xinerama.so.0 (0x00007f511ff3a000) libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f511ff1c000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f511fef2000) libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f511fcde000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f511fb9d000) libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f511fb92000) libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f511fb50000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f511fb4b000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f511f9c7000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f511f842000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f511f828000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f511f667000) libxcb-util.so.1 => not found libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f511f662000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f511f543000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f511f504000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f511f4fb000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f511f4c2000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f511f46f000) libicui18n.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicui18n.so.56 (0x00007f511efd6000) libicuuc.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicuuc.so.56 (0x00007f511ec1c000) libicudata.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicudata.so.56 (0x00007f511d239000) /lib64/ld-linux-x86-64.so.2 (0x00007f5122299000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f511d205000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f511d148000) libxcb-util.so.0 => /lib/x86_64-linux-gnu/libxcb-util.so.0 (0x00007f511cf41000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f511cd3b000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f511cb35000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f511cac1000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f511ca20000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f511ca06000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f511c9fa000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f511c9d2000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f511c9b3000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f511c895000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f511c872000)
Any and all help is greatly appreciated, thanks for your time.