Qt platform plugin not found

Post in this forum any question related to the installation on any of the supported platforms (Linux, Mac OS X, Windows)
Post Reply
3rdcycle
Posts: 2
Joined: Tue Jun 06, 2023 7:47 am

Qt platform plugin not found

Post by 3rdcycle »

Hi

I'm installing geopsy 3.4.2 on our local mini-cluster using Easybuild, i.e. from sources. The installation works fine but when I try to start geopsy I get an error message.

Code: Select all

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.
With

Code: Select all

QT_DEBUG_PLUGINS=1 geopsy
I can see that it only seems to be looking for libqxcb.so in <geopsy_install_path>/bin/platforms, which doesn't exist.

One way to get it to work is by setting

Code: Select all

QT_QPA_PLATFORM_PLUGIN_PATH=$EBROOTQT5/plugins/platforms
i.e. pointing it to my Qt installation's plugin/platforms directory. Setting this system wide seems not ideal though, since it might interfere with other software.

How does geopsy normally find the platform plugins?
admin
Site Admin
Posts: 841
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Re: Qt platform plugin not found

Post by admin »

Hi,

Platform plugins are managed by Qt libraries. geopsy relies on a working Qt set without interfering at this "low" level.

If the final Qt path is not the configured install path, this kind of error may occur.
Is it possible to add the specific environment settings in user profiles rather than system wide?
This is the kind of issue I played with for MacOS but never under Linux, so my experience is rather limited.

Marc
3rdcycle
Posts: 2
Joined: Tue Jun 06, 2023 7:47 am

Re: Qt platform plugin not found

Post by 3rdcycle »

Hi Marc

Thanks for your quick response. It turned out to be an issue with the environment (specifically LD_LIBRARY_PATH that was changed by another module. This messed up the Qt installation as you suggested. As always, after days of searching I find this out just hours after posting to the forum :P

Thanks anyway. Issue resolved.
Post Reply