Fwd: KF5 plugins and PLUGIN_INSTALL_DIR vs QT_PLUGIN_INSTALL_DIR
David Faure
faure at kde.org
Sat Nov 7 08:47:24 UTC 2015
On Friday 06 November 2015 11:26:44 René J.V. Bertin wrote:
>
> What is going wrong here, and why?
What's going wrong is that your KF5 install prefix isn't known to Qt, evidently.
We solve this on Linux by
- setting the environment variable QT_PLUGIN_PATH, in the developer case
(KF5 install prefix != Qt)
- using the same dir under /usr in distro packages.
> Should I be setting -DPLUGIN_INSTALL_DIR=${QT_PLUGIN_INSTALL_DIR}?
Yes, if you're making something more like a distro install than a developer install.
In a developer install, everything must be under the install prefix. This allows to
have multiple versions side by side, and it also avoids KF5 trying to install
as a non-root user into a Qt directory owned by root.
In a distro install you can tune install dirs indeed.
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5
More information about the Kde-frameworks-devel
mailing list