Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Cannot find xcb plugin #21

Description

@Co-eus

After making Chembrows executable on xubuntu 20.04, ./Chembrows yields

This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)

I've tried several of the apt install XX (like this) fixes suggested when googling that error, but none of them helped. A lot of other fixes are suggested when looking for "...failed to start...not find...xcb", but there are so many that I did not wanted to try out fixes randomly...

Using export QT_DEBUG_PLUGINS=1, I was able to pin down the error a bit more:

QFactoryLoader::QFactoryLoader() checking directory path "/home/<user>/code/ChemBrows-1.2-nix64/platforms" ...
Cannot load library /home/<user>/code/ChemBrows-1.2-nix64/PyQt5/Qt/plugins/platforms/libqxcb.so: (/home/<user>/code/ChemBrows-1.2-nix64/libz.so.1: version `ZLIB_1.2.9' not found (required by /lib/x86_64-linux-gnu/libpng16.so.16))
QLibraryPrivate::loadPlugin failed on "/home/<user>/code/ChemBrows-1.2-nix64/PyQt5/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/<user>/code/ChemBrows-1.2-nix64/PyQt5/Qt/plugins/platforms/libqxcb.so: (/home/<user>/code/ChemBrows-1.2-nix64/libz.so.1: version `ZLIB_1.2.9' not found (required by /lib/x86_64-linux-gnu/libpng16.so.16))"

But now I'm a bit stuck :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions