Need help with "This module still uses K_EXPORT_COMPONENT_FACTORY"
Fabrice MENARD
menard.fabrice at orange.fr
Tue Dec 28 09:51:04 GMT 2010
> Message du 27/12/10 17:19
> De : "Andriy Rysin"
> A : kde-core-devel at kde.org
> Copie à :
> Objet : Need help with "This module still uses K_EXPORT_COMPONENT_FACTORY"
>
> I need some help with KCModuleLoader: when I try to load kcm_keyboard in
> 4.6 I get this warning
>
> $ kcmshell4 kcm_keyboard
> kcmshell(946)/kcontrol KCModuleLoader::loadModule: This module still
> uses K_EXPORT_COMPONENT_FACTORY. Please port it to use KPluginFactory
> and K_EXPORT_PLUGIN.
>
> so it fails to load the module if I compile kdebase with Mobile platform
> (as loader code which produces this warning is deprecated and not
> compiled for Mobile)
>
> I tried to compare kcm_keyboard to other modules (which don't have this
> problem) and it does not look much different:
>
> K_PLUGIN_FACTORY(KeyboardModuleFactory, registerPlugin();)
> K_EXPORT_PLUGIN(KeyboardModuleFactory("kcmkeyboard"))
>
> I'd appreciate any help on how to fix it right.
>
> Thanks,
> Andriy
>
Delete the following line in kcm_keyboard.desktop:
X-KDE-PluginKeyword=keyboard
There seems to be a mismatch between this keyword and the K_* macros.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20101228/4d1457c2/attachment.htm>
More information about the kde-core-devel
mailing list