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.
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.
Hello all, I’m facing a similar issue as the OP. I downloaded a binary release of ParaView (5.11.2). I have installed the libraries recommended by @aron.helser and @cory.quammen. When I run with QT_DEBUG_PLUGINS=1, I get the following error:
QFactoryLoader::QFactoryLoader() checking directory path "/home/jbrinker/software/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/home/jbrinker/software/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/plugins/platforms/libqxcb.so"
Found metadata in lib /home/jbrinker/software/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/plugins/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 "/home/jbrinker/software/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/bin/platforms" ...
Cannot load library /home/jbrinker/software/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/plugins/platforms/libqxcb.so: (/usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN23QPlatformVulkanInstance22presentAboutToBeQueuedEP7QWindow, version Qt_5_PRIVATE_API)
QLibraryPrivate::loadPlugin failed on "/home/jbrinker/software/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/plugins/platforms/libqxcb.so" : "Cannot load library /home/jbrinker/software/ParaView-5.11.2-MPI-Linux-Python3.9-x86_64/plugins/platforms/libqxcb.so: (/usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN23QPlatformVulkanInstance22presentAboutToBeQueuedEP7QWindow, version Qt_5_PRIVATE_API)"
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
When I run ldd on the libqxcb.so object as suggested by @ben.boeckel, none of the libraries appear to be missing:
Hi @ben.boeckel, thanks for responding. Your response made me check my LD_LIBRARY_PATH environment variable. I see that I had added /usr/lib/x86_64-linux-gnu to LD_LIBRARY_PATH (for my case, to ensure FFTW libraries are accessible). When I changed my LD_LIBRARY_PATH to include path-to-paraview/lib before referencing any of the system lib folders, ParaView launches just fine.
ParaView packages shouldn’t need LD_LIBRARY_PATH at all as they should have RPATH set up properly package-wide. If it’s a custom build, rpath management would then be up to you.
For Rocky Linux 8 (and probably all other RHEL 8 based/derived/whatever distros), you have to install the following packages for paraview 5.12.1:
libxcb, xcb-util-wm, xcb-util-image, xcb-util-keysyms, xcb-util-renderutil