Jump to content
TorGuard
  • 0
iokhahon

Could not load the Qt platform plugin "xcb" in "" even though it was found. [SOLVED]

Rate this question

Question

iokhahon

After installing Torguard on Arch Linux using the PKGBUILD from the downloads section of this site, you may find the UI doesn't open.
If you try running sudo  /usr/bin/torguard from the command line you might see the following message

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, webgl, xcb.

/usr/bin/torguard: line 54: 12651 Aborted                 $SUDO /opt/torguard/bin/torguard
 

Thanks to a tip from the Qt forums https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/3
I set the QT_DEBUG_PLUGINS=1

# export QT_DEBUG_PLUGINS=1
# . /usr/bin/torguard        (Note the period and space before the command to run the command in the current process and pick up the environment variable)

 [ -- SNIP -- ]

    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 330752
}
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/torguard/bin/platforms" ...
Cannot load library /opt/torguard/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/opt/torguard/plugins/platforms/libqxcb.so" : "Cannot load library /opt/torguard/plugins/platforms/libqxcb.so: (libxkbcommon-x11.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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.

Aborted


The trace showed clearly that libxkbcommon-x11 was missing, this was easily fixed 

# pacman -S QT_DEBUG_PLUGINS=1

problem solved, hope this helps someone!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Support
On 3/28/2020 at 7:26 PM, iokhahon said:

After installing Torguard on Arch Linux using the PKGBUILD from the downloads section of this site, you may find the UI doesn't open.
If you try running sudo  /usr/bin/torguard from the command line you might see the following message

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, webgl, xcb.

/usr/bin/torguard: line 54: 12651 Aborted                 $SUDO /opt/torguard/bin/torguard
 

Thanks to a tip from the Qt forums https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/3
I set the QT_DEBUG_PLUGINS=1

# export QT_DEBUG_PLUGINS=1
# . /usr/bin/torguard        (Note the period and space before the command to run the command in the current process and pick up the environment variable)

 [ -- SNIP -- ]

    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 330752
}
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/torguard/bin/platforms" ...
Cannot load library /opt/torguard/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/opt/torguard/plugins/platforms/libqxcb.so" : "Cannot load library /opt/torguard/plugins/platforms/libqxcb.so: (libxkbcommon-x11.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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.

Aborted


The trace showed clearly that libxkbcommon-x11 was missing, this was easily fixed 

# pacman -S QT_DEBUG_PLUGINS=1

problem solved, hope this helps someone!

 

Thanks for sharing this with us :)

Regards

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...