Summary: | (Qt5) no Qt5 package provides an env.d file with QT_PLUGIN_PATH | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Karol Herbst <gentoo> |
Component: | [OLD] Library | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | kde |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Karol Herbst
2014-09-17 10:46:37 UTC
An env.d file shouldn't be needed at all, so something else must be wrong. Did you alter your qt.conf? What are the contents of the env.d file installed by kde? What's the output of `strings /usr/lib64/libQt5Core.so | grep plugpath` ? (In reply to Karol Herbst from comment #0) > Some Qt5 application may produce a "could not find or load the Qt platform > plugin “xcb”" error on start. Only "some" applications? "may"? Do you mean that not all apps fail, and for those that fail the problem is not reproducible every time? (In reply to Davide Pesavento from comment #1) > An env.d file shouldn't be needed at all, so something else must be wrong. > > Did you alter your qt.conf? > oh I forgot that. Now with removing the qt.conf file it does indeed work. > What are the contents of the env.d file installed by kde? > PATH=/usr/lib64/qt5/bin ROOTPATH=/usr/lib64/qt5/bin CONFIG_PROTECT=/usr/share/config COLON_SEPARATED=QT_PLUGIN_PATH QT_PLUGIN_PATH=/usr/lib64/plugins:/usr/lib64/qt5/plugins:/usr/lib64/kde4/plugins QML2_IMPORT_PATH=/usr/lib64/qml:/usr/lib64/qt5/qml > What's the output of `strings /usr/lib64/libQt5Core.so | grep plugpath` ? > > > (In reply to Karol Herbst from comment #0) > > Some Qt5 application may produce a "could not find or load the Qt platform > > plugin “xcb”" error on start. > > Only "some" applications? "may"? Do you mean that not all apps fail, and for > those that fail the problem is not reproducible every time? I wasn't testing more applications, I just assume it could hit others. It seems like it was a packaging issue on my side. (In reply to Karol Herbst from comment #2) > (In reply to Davide Pesavento from comment #1) > > What are the contents of the env.d file installed by kde? > > > [...] > QT_PLUGIN_PATH=/usr/lib64/plugins:/usr/lib64/qt5/plugins:/usr/lib64/kde4/ > plugins > QML2_IMPORT_PATH=/usr/lib64/qml:/usr/lib64/qt5/qml > @kde, /usr/lib64/qt5/plugins and /usr/lib64/qt5/qml are redundant because both paths are always included by default. Also, I'm not sure if the "kde4" above is intentional or a typo... kde4 is leaking from the environment: echo "QT_PLUGIN_PATH=${libdir}/plugins:${libdir}/qt5/plugins:${QT_PLUGIN_PATH}" >> ${envfile} (In reply to Michael Palimaka (kensington) from comment #4) > kde4 is leaking from the environment: echo > "QT_PLUGIN_PATH=${libdir}/plugins:${libdir}/qt5/plugins:${QT_PLUGIN_PATH}" > >> ${envfile} this should be "....${QT_PLUGIN_PATH:+:}${QT_PLUGIN_PATH}" in any case. Are you going to remove the redundant paths? or is there a reason for them to be there? (In reply to Davide Pesavento from comment #5) > (In reply to Michael Palimaka (kensington) from comment #4) > > kde4 is leaking from the environment: echo > > "QT_PLUGIN_PATH=${libdir}/plugins:${libdir}/qt5/plugins:${QT_PLUGIN_PATH}" > > >> ${envfile} > > this should be "....${QT_PLUGIN_PATH:+:}${QT_PLUGIN_PATH}" in any case. > > Are you going to remove the redundant paths? or is there a reason for them > to be there? I filed bug #523314 to track this (and other) improvements to the env file |