unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39996: foreign distro: QT5 loads/searchs plugins from wrong location
@ 2020-03-09  9:31 Hartmut Goebel
  2020-03-10 19:24 ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Hartmut Goebel @ 2020-03-09  9:31 UTC (permalink / raw)
  To: 39996


[-- Attachment #1.1: Type: text/plain, Size: 1404 bytes --]

I just packages a simple GUI application using pythonqt5 and
python-poppler-qt. When running it fails with:

Could not load the Qt platform plugin "xcb" in "" even though it was
found.

When running with QT_DEBUG_PLUGINS=1 it reveals the cause:

QFactoryLoader::QFactoryLoader() checking directory path
"/usr/lib64/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at
"/usr/lib64/qt5/plugins/platforms/KWinQpaPlugin.so"
Found metadata in lib
/usr/lib64/qt5/plugins/platforms/KWinQpaPlugin.so, metadata=
[… many lines skipped …]

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path
"/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/bin/platforms"
...
Cannot load library /usr/lib64/qt5/plugins/platforms/libqxcb.so:
(libQt5XcbQpa.so.5: cannot open shared object file: No such file or
directory)
QLibraryPrivate::loadPlugin failed on
"/usr/lib64/qt5/plugins/platforms/libqxcb.so" : "Cannot load library
/usr/lib64/qt5/plugins/platforms/libqxcb.so: (libQt5XcbQpa.so.5:
cannot open shared object file: No such file or directory)"

Looks like the plugin is search in the wrong location and also the list
of plgins.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#39996: foreign distro: QT5 loads/searchs plugins from wrong location
  2020-03-09  9:31 bug#39996: foreign distro: QT5 loads/searchs plugins from wrong location Hartmut Goebel
@ 2020-03-10 19:24 ` Marius Bakke
  2020-03-11  8:55   ` Hartmut Goebel
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2020-03-10 19:24 UTC (permalink / raw)
  To: Hartmut Goebel, 39996

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

Hartmut Goebel <h.goebel@crazy-compilers.com> writes:

> I just packages a simple GUI application using pythonqt5 and
> python-poppler-qt. When running it fails with:
>
> Could not load the Qt platform plugin "xcb" in "" even though it was
> found.

Does it help if you wrap it with QT_PLUGIN_PATH, as we do with some
other KDE applications?

Alternatively, installing 'qtbase' with the other packages should set up
the relevant search paths.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#39996: foreign distro: QT5 loads/searchs plugins from wrong location
  2020-03-10 19:24 ` Marius Bakke
@ 2020-03-11  8:55   ` Hartmut Goebel
  0 siblings, 0 replies; 3+ messages in thread
From: Hartmut Goebel @ 2020-03-11  8:55 UTC (permalink / raw)
  To: Marius Bakke, 39996


[-- Attachment #1.1: Type: text/plain, Size: 637 bytes --]

Hi Marius,
> Does it help if you wrap it with QT_PLUGIN_PATH, as we do with some
> other KDE applications?

I was able to work-around this by setting QT_PLUGIN_PATH. (Installing
qtbase has worked, too, btw)

Nevertheless I which this would not be necessary. I'd expect the qtbase
to find the plugins and platform-plugins coming with itself. (As far as
I've seen from the Nixpkg, nix has the same issues, so no solution to
copy from there.)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-11  8:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09  9:31 bug#39996: foreign distro: QT5 loads/searchs plugins from wrong location Hartmut Goebel
2020-03-10 19:24 ` Marius Bakke
2020-03-11  8:55   ` Hartmut Goebel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).