Could not find the Qt platform plugin “xcb” in “”

Full error code:

Library searching paths:
- /home/dev/dev/SharedLibraries/qt/plugins
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
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, offscreen, vnc.

The reason is that libqxcb.so really missing in the plugins directory. It’s because Qt compilation issue.

It’s necessary to install:

sudo apt-get install libclang-dev

#XCB
sudo apt-get -y install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev 
sudo apt-get -y install libxkbcommon-dev libxkbcommon-x11-dev
sudo apt-get -y install libfontconfig1-dev libfreetype6-dev libx11-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libx11-xcb-dev libxcb-glx0-dev  
sudo apt-get -y install libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev  
sudo apt-get install libxcb-devel libxkbcommon-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-renderutil-devel xcb-util-wm-devel mesa-libGL-devel

#D-Bus
sudo apt-get install libdbus-1-dev libdbus-glib-1-dev libx11-dev 

Note:

It’s necessary to install also correct xinerama packages and dev packages: https://packages.ubuntu.com/search?keywords=xinerama

Leave a Reply

Your email address will not be published. Required fields are marked *