Registered Member
|
Guys, I get a
this is my code and substituting kwordpart with katepart works OK which means that my application integrates the katepart in the mainwindow (KParts::MainWindow). I have build the whole koffice 2.1 without any errors and the libkwordpart.so resides in ~/koffice-2.1/src/lib/. Is there a way to make the location clear to the plugin loader?
|
KDE Developer
|
I guess your ~/koffice-2.1/src/lib/ is the koffice build directory, right?
You always need: a) to install in some prefix the plugins, to be able to find and use them b) ensure ALL the prefixes where you have kde software/plugins are in the KDEDIRS environment variable; eg. KDEDIRS=/home/myuser/somelocalroot:/usr
Pino Toscano
|
Registered Member
|
pinotree,
you're right that is my build directory and now I installed it in ~/koffice-2.1/install. I can see a bin, include, lib and share directory. In the lib directory I can see the libkwordpart.so ( and also in the lib/kde4 directory ). I've added the install/lib directory to KDEDIRS ( sourced the bashrc file again and checked the KDEDIRS variable ). But the message still remains the same. Can you explain me what happens during an install, I assume the libkwordpart.so is the same file in my src directory as in my install directory? |
KDE Developer
|
Of course, if you set KDEDIRS in the wrong way You don't add the lib directories to KDEDIRS, but the installation prefixes.
Nothing special, just everything is placed in the correct structure which is used by the kde libraries.
Pino Toscano
|
Registered Member
|
Unfortunately that didn't help. My KDEDIRS reads
what could go wrong I've even rebuilt whole koffice (again without any errors) and did an install. Please advice..... there is not much hair left to pull out anymore. |
Registered Member
|
I uninstalled koffice and rebuilt it and installed it again and I saw that libkwordpart only resides in ~/koffice-2.1/install/lib/kde4 and not also in ~/koffice-2.1/install/lib.
I don't know wether this matters but this is what I get for kde-config --path lib : "/home/user/.kde/lib/:/home/user/koffice-2.1/install/lib/:/opt/kde3/lib/" |
KDE Developer
|
Did you run `kbuildsycoca4 --noincremental` after having set KDEDIRS?
Pino Toscano
|
Registered Member
|
|
KDE Developer
|
Are you running your application from the same console where you export'ed the KDEDIRS environment variable?
Also, note kde-config is for KDE 3 stuff, kde4-config is for KDE 4. Furthermore, what do you get if in a consol you run: $ ktraderclient --servicetype 'KParts/ReadWritePart' --constraint "Library == 'libkwordpart'" ?
Pino Toscano
|
Registered Member
|
Indeed I'm running it in the same console ( before starting my app I check wether the variable is properly set )
OK, thanks for that I didn't know that. This is the output of the command:
what's with the kwordpart.desktop? I don't recall having one, where should it be located? |
KDE Developer
|
Ok, in your code now try:
instead of
and see whether it makes any difference.
Pino Toscano
|
Registered Member
|
This is what I get:
the last message should be ignored if it doesn't ring any bells, that might be unrelated to our error since it's myapp specific. |
KDE Developer
|
Nothing else, and always no service being created?
Also try to set the LD_LIBRARY_PATH environemnt variable, adding /yourinstallationprefix/lib to it.
Pino Toscano
|
Registered Member
|
The LD_LIBRARY_PATH variable already contained the ~/koffice-2.1/install/lib and the ~/koffice-2.1/install/lib/kde4 directories.
I really appreciate you helping me out, please bear with me. |
KDE Developer
|
I'm starting to run out of ideas...
what if you execute kdebugdialog and enable the debug areas 0, 150, and 180, and after that try again your application? Any further debug output?
Pino Toscano
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]