XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

User avatar
blablaalb
Posts: 9
Joined: Wed Feb 10, 2021 9:59 am

XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Post by blablaalb »

Hello everyone. I installed XnView MP on my Xubuntu machine, but it doesn't start. Here's the output from the console:

Code: Select all

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: linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)
User avatar
xnview
Author of XnView
Posts: 37946
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Post by xnview »

try to start it from command line
Pierre.
User avatar
blablaalb
Posts: 9
Joined: Wed Feb 10, 2021 9:59 am

Re: XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Post by blablaalb »

That's how I got the output. I entered xnview into the console and the output came out
User avatar
blablaalb
Posts: 9
Joined: Wed Feb 10, 2021 9:59 am

Re: XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Post by blablaalb »

I set QT_DEBUG_PLUGINS to 1 and this is the output I get when I try i run xnview

Code: Select all

QFactoryLoader::QFactoryLoader() checking directory path "/opt/XnView/lib/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/opt/XnView/lib/platforms/libqlinuxfb.so"
Found metadata in lib /opt/XnView/lib/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 "/opt/XnView/lib/platforms/libqminimal.so"
Found metadata in lib /opt/XnView/lib/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 "/opt/XnView/lib/platforms/libqminimalegl.so"
Found metadata in lib /opt/XnView/lib/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 "/opt/XnView/lib/platforms/libqoffscreen.so"
Found metadata in lib /opt/XnView/lib/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 "/opt/XnView/lib/platforms/libqvnc.so"
Found metadata in lib /opt/XnView/lib/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 "/opt/XnView/lib/platforms/libqwayland-egl.so"
Found metadata in lib /opt/XnView/lib/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/opt/XnView/lib/platforms/libqwayland-generic.so"
Found metadata in lib /opt/XnView/lib/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archreq": 0,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/opt/XnView/lib/platforms/libqwayland-xcomposite-egl.so"
Found metadata in lib /opt/XnView/lib/platforms/libqwayland-xcomposite-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/opt/XnView/lib/platforms/libqwayland-xcomposite-glx.so"
Found metadata in lib /opt/XnView/lib/platforms/libqwayland-xcomposite-glx.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-glx"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() looking at "/opt/XnView/lib/platforms/libqwebgl.so"
Found metadata in lib /opt/XnView/lib/platforms/libqwebgl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "webgl"
        ]
    },
    "archreq": 0,
    "className": "QWebGLIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("webgl")
QFactoryLoader::QFactoryLoader() looking at "/opt/XnView/lib/platforms/libqxcb.so"
Found metadata in lib /opt/XnView/lib/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 "/opt/XnView/platforms" ...
Cannot load library /opt/XnView/lib/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/opt/XnView/lib/platforms/libqxcb.so" : "Cannot load library /opt/XnView/lib/platforms/libqxcb.so: (libxcb-icccm.so.4: 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: linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)
User avatar
blablaalb
Posts: 9
Joined: Wed Feb 10, 2021 9:59 am

Re: XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Post by blablaalb »

Code: Select all

ldd /opt/XnView/lib/platforms/libqxcb.so  | grep "not found"
gives the following result:

Code: Select all

ldd /opt/XnView/lib/platforms/libqxcb.so  | grep "not found"
	libxcb-icccm.so.4 => not found
	libxcb-image.so.0 => not found
	libxcb-keysyms.so.1 => not found
	libxcb-render-util.so.0 => not found
	libxcb-xkb.so.1 => not found
	libxkbcommon-x11.so.0 => not found
	libxcb-icccm.so.4 => not found
	libxcb-image.so.0 => not found
	libxcb-keysyms.so.1 => not found
	libxcb-render-util.so.0 => not found
	libxcb-xkb.so.1 => not found
	libxkbcommon-x11.so.0 => not found
	libicui18n.so.56 => not found
	libicuuc.so.56 => not found
	libicudata.so.56 => not found
User avatar
blablaalb
Posts: 9
Joined: Wed Feb 10, 2021 9:59 am

Re: XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Post by blablaalb »

So, I installed the missing packages and now I'm able to run the XnView. Hooray :D !

Code: Select all

sudo apt install libxcb-image0
sudo apt install libxcb-keysyms1
sudo apt install libxcb-render-util0
sudo apt install libxcb-xkb1
sudo apt install libxkbcommon-x11-0
User avatar
xnview
Author of XnView
Posts: 37946
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Post by xnview »

great :)
Pierre.
bwmarrin
Posts: 14
Joined: Sat Jan 01, 2022 6:43 pm

Re: XnView MP doesn't run on Xubuntu 20.04 LTS 64 bit

Post by bwmarrin »

blablaalb wrote: Wed Feb 10, 2021 10:54 am So, I installed the missing packages and now I'm able to run the XnView. Hooray :D !

Code: Select all

sudo apt install libxcb-image0
sudo apt install libxcb-keysyms1
sudo apt install libxcb-render-util0
sudo apt install libxcb-xkb1
sudo apt install libxkbcommon-x11-0
I ran into this problem as well and your debugging helped. I installed the packages you listed but I also needed to install libxcb-icccm4 to get it working on Debian 11 / XFCE4. Just sharing here in case someone else stumbles onto this post looking for a fix :)