Failure to run QtCreator 12.0 after installing it
-
Hi,
After updating QtCreator to version 12.0 on my computer with Ubuntu 22.04 LTS, it didn't start. So i ran it in the terminal and obtained the following message :
$ Qt/Tools/QtCreator/bin/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: wayland, eglfs, offscreen, linuxfb, minimalegl, minimal, vkkhrdisplay, vnc, xcb, wayland-egl. Aborted (core dumped)
After some research, i found this process to have the cause :
- Active plugin debug information with command :
export QT_DEBUG_PLUGINS=1
- Re run the application QtCreator to obtain the explanation of the problem :
qt.core.library: "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory) qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: 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: wayland, eglfs, offscreen, linuxfb, minimalegl, minimal, vkkhrdisplay, vnc, xcb, wayland-egl. Aborted (core dumped)
My problem was a missing library : "libxcb-cursor.so.0".
So, to get it, I ran command :sudo apt install libxcb-cursor0
Now, it works successfully.
-