How do I compile and install a plasmoid?

I’d like to install the following plasmoid HDAPS monitor KDE-Look.org. For some reason it is no longer available for openSUSE.

Can someone please explain how I should compile this and then install it.

Thanks.

EDIT: Sorry should have specified I’m using 11.4 and KDE4.6.3

Hi,

look at
Howto build plasmoids on openSUSE 11
and the link in post#2.

HTH

Lenwolf

Thanks but after reading that I think I’m going to need a little more hand holding.
So far I have un zipped the file into a folder in my home directory (/hdaps_plasmoid).
I opened a konsole and cd to the hdaps_plasmoid directory.
Now do I just run cmake?
The following instructions don’t seem clear to me:

If your current Development Environment differs from the Test Installation, you have to run cmake with -DCMAKE_INSTALL_PREFIX=kde-config --prefix. Then run make. If succesfull the applet can be installed by running sudo make install or

cp ./lib/plasma_applet_tutorial1.so $KDEDIR/lib/kde4
cp ./plasma-applet-tutorial1.desktop $KDEDIR/share/kde4/services/ 

and run kbuildsycoca4 (so that KDE apps will know about the new desktop files). In order to test your Applet you can use the plasmoidviewer program:

kbuildsycoca4 #Needed once to let KDE know there is a new plugin
plasmoidviewer applet_name

How do I know if I should use this “run cmake with -DCMAKE_INSTALL_PREFIX=kde-config --prefix" and what is the full syntax? Is it just "cmake -DCMAKE_INSTALL_PREFIX=kde-config --prefix”?

OK, I decided to just run cmake /path to plasmoid sources/ and it created the install files. I then ran sudo make install and it seemed to complete the install without any problems. However the palsmoid does not show up in the tray. Logging out and back didn’t bring the plasmoid up either.

Any suggestions? Where are these plasmoid stored?

On 06/14/2011 04:06 PM, suse tpx60s wrote:
>
> Any suggestions?

i’m probably confused (i’ve not read any KDE docs either) but, is there
a difference between a “plasmoid” and a “widget”?

i ask, because when i add what i think might be called a plasmoid to
the desktop i have to click on the cashew and unlock the widgets, then
click on “add widgets” and hopefully your new “plasmoid” will be listed
among the ‘widgets’ available… or maybe you have to use the “add
from a local file menu” option…it is all very confusing…

what did that cite http://tinyurl.com/3ehn6vx say?


dd
http://is.gd/bpoMD

Yeah, it seems both terms plasmoid or widget are used. I’ve tried unlocking and adding the widget but the one I just compiled is not listed in the list nor a installable file. That is what confuses me. That site says it should appear in the applet list but it doesn’t. I tried the methods stated on the site to get the plasmoid recognised by the KDE system

run kbuildsycoca4 (so that KDE apps will know about the new desktop files). In order to test your Applet you can use the plasmoidviewer program: kbuildsycoca4 #Needed once to let KDE know there is a new plugin
plasmoidviewer applet_name You can even view your Applet in a small desktop using plasmoidviewer:
plasmoidviewer -c desktop applet_name Where applet_name is the value specified into .desktop for the X-KDE-PluginInfo-Name key.

and when I try view the plasmoid in the plasmoidviewer I get this error:

This object could not be created for the following reason:
Could not find requested component: plasma_applet_hdaps_monitor
That is why I was asking where the widgets are kept so I can see if this went to the correct location.

They should be in /usr/lib/kde4 or /usr/lib64/kde4, depending on your version of the OS.
Tyr to copy your widget there.

HTH

Lenwolf