Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Failure to run QtCreator 12.0 after installing it
Forum Updated to NodeBB v4.3 + New Features

Failure to run QtCreator 12.0 after installing it

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
1 Posts 1 Posters 451 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Francis Chapet
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    2
    • F Francis Chapet has marked this topic as solved on

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved