Results 1 to 7 of 7

Thread: How do I compile and install a plasmoid?

  1. #1
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default 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
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  2. #2

    Default Re: How do I compile and install a plasmoid?

    Hi,

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

    HTH

    Lenwolf

  3. #3
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: How do I compile and install a plasmoid?

    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"?
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  4. #4
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: How do I compile and install a plasmoid?

    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?
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: How do I compile and install a plasmoid?

    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

  6. #6
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: How do I compile and install a plasmoid?

    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.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  7. #7

    Default Re: How do I compile and install a plasmoid?

    Quote Originally Posted by suse_tpx60s View Post
    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 systemand when I try view the plasmoid in the plasmoidviewer I get this error:
    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •