Need help with "This module still uses K_EXPORT_COMPONENT_FACTORY"

Raphael Kubo da Costa kubito at gmail.com
Mon Dec 27 17:45:36 GMT 2010


On Mon, Dec 27, 2010 at 2:18 PM, Andriy Rysin <arysin at gmail.com> wrote:
> 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<KCMKeyboard>();)
> K_EXPORT_PLUGIN(KeyboardModuleFactory("kcmkeyboard"))
>
> I'd appreciate any help on how to fix it right.

You might want to give the convert-kgenericfactory.pl script in
kdesdk/scripts/qt4 a try and see if it helps.




More information about the kde-core-devel mailing list