No plugins found when building kate from source

Sven Brauch mail at
Sun Jul 14 19:21:50 BST 2019


On Sunday, 14 July 2019 20:14:01 CEST Daan De Meyer wrote:
> It seems the plugin search directory is hardcoded to /usr/lib/qt/plugins
> and the installation directory of the executable (in my case
> /usr/local/bin/kate). The plugins themselves are located at
> /usr/local/lib/plugins so they are not found by the kde plugin loader as it
> only searches in QCoreApplication::libraryPaths() which returns the earlier
> mentioned directories.

... and the value of the $QT_PLUGIN_PATH environment variable.

I think on Linux, the idea is usually that a package is built such that the 
plugins are installed to the right place for normal installations (i.e. 
prefix=/usr). For development setups, most people tend to install somewhere in 
$HOME and then you just set $QT_PLUGIN_PATH as you see fit. What problem do 
you mean, thus?

If you search the list archives (of kde-core-devel?), I think there was a 
discussion a while back what would be required to make installations 
relocatable, which is I think effectively what you are talking about.
For that, it would IMO make sense to look for plugins in a fixed path relative 
to the executable's location first. That is however something that should 
probably be done on the Qt level.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the KWrite-Devel mailing list