<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Łukasz,<br/>
hi everybody else,<br/>
<br/>
maybe I can clarify some things here. Starting with version 5 KMyMoney will look in the environment variable QT_PLUGIN_PATH for plugins. It is usually set to something like /usr/lib(64)/plugins. Of course the distribution will not require the user to set this variable.<br/>
<br/>
If you run cmake with the variable CMAKE_PREFIX_PATH you change the install dir of the plugins and have to adopt QT_PLUGIN_PATH accordingly (and the other variables Cristian mentioned for other purposes). Note QT_PLUGIN_PATH ≠ CMAKE_PREFIX_PATH. You may need to rerun kbuildsycoca5 after setting this variable.<br/>
<br/>
If you have multiple versions of KMyMoney or plugins installed, you have to set this variable before starting KMyMoney. There are no compile time options for this, the location is always read at runtime from the environment variable (maybe there is a Qt default if the variable is not set). Again you may need to rerun kbuildsycoca5. However, it is totally fine to have multiple versions installed.<br/>
<br/>
There is no additional trouble if you have KF5 and KDE 4 based versions of KMyMoney on your system. Just the variable names differ and of course you have to take care that the install folders of the different versions of KMyMoney do not clash. Some time ago I wrote a longer mail about the KDE 4 variables – that information is still valid. For KMyMoney 5 these variables are not used anymore.<br/>
<br/>
Currently I am rewriting the plugin loader to make it simpler (and to get rid of all the warnings). Then the cache won't be used anymore (for most plugins). You just have to install the plugin into the correct path (it will be QT_PLUGIN_PATH/kmymoney/gui-plugins/). KBuildsycoca5 is not required then. I hope to push this change within the next two weeks. Thanks to the Randa meeting to make this possible!<br/>
<br/>
Greetings<br/>
Christian<br/>
<br/>
> Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> hat am 18. Juni 2016 um 19:41 geschrieben:<br/>
><br/>
><br/>
> Hello community,<br/>
><br/>
> I need some wise person to set path to KMM plugins correctly.<br/>
><br/>
> Recently, I compiled master branch and was missing CSV importer plugin.<br/>
> Following output in terminal:<br/>
><br/>
> The environment variable QT_PLUGIN_PATH might be not correctly set<br/>
> Error loading plugin "kmm_csvimport" "Shared library not available."<br/>
> Plugin search paths are ("/usr/lib64/qt5/plugins", "/usr/bin")<br/>
><br/>
> I do:<br/>
><br/>
> export QT_PLUGIN_PATH=/usr/lib64/plugins/<br/>
><br/>
> and CSV importer plugin is available again. I could fix it in code by myself<br/>
> but what is the right approach:<br/>
> 1) changing installation path of kmm_csvimport.so,<br/>
> 2) changing search path of kmm_csvimport.so,<br/>
><br/>
> I hope someone knows better.<br/>
><br/>
> Cheers<br/>
> Łukasz</div></div></body></html>