This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Kparts] plugins should not have a 'lib' prefix

Tags: None
(comma "," separated)
hl037
Registered Member
Posts
1
Karma
0
OS
[EDIT] resolve, see at bottom [/EDIT]

Hi,
I'm learning to code KDE applications using the Kparts.
I tried to embed a terminal in a Qt application (which works fine) but when I load the library, I've the following message:

Code: Select all
proManage(7251)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkonsolepart.so"

Why?

(this is my code:)
Code: Select all
// 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;
};
t->showShellInDir( QDir::home().path() );


thank you in advance!

(I'm French, so accept my apologies for my low english^^)


[EDIT]
Ok, I've resolve the probleme creating a symbolic link to the library:
Code: Select all
ln -s /usr/lib/kde4/libkonsolepart.so /usr/lib/kde4/konsolepart.so

[/EDIT]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]