No QT platform error - Ubuntu 22.04 LTS

Hello,

I am trying to launch paraview and I get the following error

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: xcb. error: exception occurred: Subprocess aborted

I am opening paraview using the " ./paraview " command. I am running Ubuntu 22.04 LTS. Please let me know how to proceed.

1 Like

Please download our binary release of ParaView: https://paraview.org/download

I also met the same problem though I downloaded the binary release of ParaView.

Which version of ParaView ?

The xcb libraries need to be provided by the system. You can see what is missing by doing ldd /paraview-install-location/plugins/platforms/libqxcb.so and then use apt to install what provides those libraries.

2 Likes

You probably need the list from Building Qt5 from git:
but without the -dev added on the end.

sudo apt-get install '^libxcb.*' libx11-xcb libglu1-mesa libxrender libxi libxkbcommon libxkbcommon-x11 
1 Like

Also, please see this FAQ entry:

1 Like