[KDE-Kparts]"plugins should not have a 'lib' prefix"(Résolu)
Publié : dim. 02 oct. 2011, 16:49
Bonjour,
J'ai besoin pour un programme Qt d'embarquer un terminal, chose que je viens de réussir est qui marche parfaitement, mis à part ce message qui m'intrigue:
...Ainsi, pourquoi est-ce que ç me dit ça?
voici le code source de la partie chargeant la lib:
voilà, merci d'avance!
J'ai besoin pour un programme Qt d'embarquer un terminal, chose que je viens de réussir est qui marche parfaitement, mis à part ce message qui m'intrigue:
Code : Tout sélectionner
findLibraryInternal: plugins should not have a 'lib' prefix
voici le code source de la partie chargeant la lib:
Code : Tout sélectionner
// fetch the Library..
KLibFactory* factory = KLibLoader::self()->factory( "libkonsolepart.so" );
if ( factory == 0L )
{
// inform the user that he should install konsole..
return;
}
// fetch the part..
KParts::Part* p = static_cast<KParts::Part*>(factory->create(this));
assert( p );
setCentralWidget(p->widget());
// cast the part to the TerminalInterface..
TerminalInterfaceV2* t = static_cast<TerminalInterfaceV2*>(p->qt_metacast("TerminalInterfaceV2"));
if( ! t )
{
// This probably happens because the konsole that is installed
// comes from before KDE 3.2 , and the TerminalInterface is not
// available.. What you can do here is either inform the user
// that he needs a more recent konsole, or try to deliver the
// functionality in some other way...
return;
}