Page 1 of 1

Qt platform plugin not found

Posted: Tue Jul 18, 2023 7:12 pm
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?

Re: Qt platform plugin not found

Posted: Tue Jul 18, 2023 8:33 pm
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

Re: Qt platform plugin not found

Posted: Wed Jul 19, 2023 2:13 pm
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.