Qt 6 fresh installation - can't launch QtCreator
-
I've installed Qt 6 and I can't launch QtCreator.
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
inside the directory
~/Qt/Tools/QtCreator/lib/Qt/plugins/platforms
there are the following files:
libqeglfs.so libqlinuxfb.so libqminimalegl.so libqminimal.so libqoffscreen.so libqvnc.so libqxcb.so
I've installed already mesa-common-dev and other packages.
What is the solution to this strange problem after a fresh installation?
-
@jsulm Opened terminal and entered "export QT_DEBUG_PLUGINS=1". After running QtCreator I get:
Cannot load library /home/johny/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/johny/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/johny/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.
@johnyboy Install libxcb-util1 package
See here for needed packages: https://doc.qt.io/qt-5/linux-requirements.html -
I've installed Qt 6 and I can't launch QtCreator.
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
inside the directory
~/Qt/Tools/QtCreator/lib/Qt/plugins/platforms
there are the following files:
libqeglfs.so libqlinuxfb.so libqminimalegl.so libqminimal.so libqoffscreen.so libqvnc.so libqxcb.so
I've installed already mesa-common-dev and other packages.
What is the solution to this strange problem after a fresh installation?
@johnyboy said in Qt 6 fresh installation - can't launch QtCreator:
What is the solution to this strange problem after a fresh installation?
Open a terminal and do
export QT_DEBUG_PLUGINS=1 # Start QtCreator PATH_TO_QTCREATOR_EXE
Post the output from the terminal here.
-
@johnyboy said in Qt 6 fresh installation - can't launch QtCreator:
What is the solution to this strange problem after a fresh installation?
Open a terminal and do
export QT_DEBUG_PLUGINS=1 # Start QtCreator PATH_TO_QTCREATOR_EXE
Post the output from the terminal here.
@jsulm Opened terminal and entered "export QT_DEBUG_PLUGINS=1". After running QtCreator I get:
Cannot load library /home/johny/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/johny/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/johny/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.
-
@jsulm Opened terminal and entered "export QT_DEBUG_PLUGINS=1". After running QtCreator I get:
Cannot load library /home/johny/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/johny/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/johny/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.
@johnyboy Install libxcb-util1 package
See here for needed packages: https://doc.qt.io/qt-5/linux-requirements.html -
@johnyboy Install libxcb-util1 package
See here for needed packages: https://doc.qt.io/qt-5/linux-requirements.html -
@jsulm Do you mean libxcb-util0 and libxcb-util0-dev perhaps because I can't find anything with libxcb-util1 when I type sudo apt? Or I have to build it from scratch?
@johnyboy said in Qt 6 fresh installation - can't launch QtCreator:
libxcb-util0
This one. Dev package shouldn't be needed. In my distribution it is called libxcb-util1
-
@johnyboy said in Qt 6 fresh installation - can't launch QtCreator:
libxcb-util0
This one. Dev package shouldn't be needed. In my distribution it is called libxcb-util1