Wednesday, July 25, 2007

playground/base/plasma/

i've posted all this to panel-devel and keep repeating it in #plasma, perhaps if i blog it more people will read it and know what's up.

so, most of the plasma add-ons are in svn://svn.kde.org/home/kde/trunk/playground/base/plasma. if you install plasma from kdebase you get something very vanilla without a lot of visible add ons. two, to be exact ;)

we'll be moving over a bunch of the stuff from playground later to various places (kdebase/workspace, extragear, kdeaddons?,...) but this gives us a place to experiment and play. it also helps keep me concentrated on the canvas-that-is-plasma without being distracted in kdebase by all those plugins (while still offering a growing set of use cases from playground/ that push and pull on things)

and if you are having a hard time building playground/base/plasma, you need to make sure you have the latest FindPlasma.cmake from kdelibs/cmake/modules installed.

that is all. *hugs*

9 comments:

Treviño said...

I've already the latest version of the cmake module you mentioned, but when I tried to compile most of these files I get something like:

CMake Error: Error in cmake code at
/tmp/twitter/CMakeLists.txt:7:
Unknown CMake command "kde4_add_plugin".

Treviño said...

Well, I've found that if I add to the CMakeLists.txt file these lines I got all compiled:

find_package(KDE4 REQUIRED)
include(KDE4Defaults)

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})


Maybe this isn't completely correct btw it works, so why don't add these (or more correct) lines to the default CMakeLists.txt files?

Aaron J. Seigo said...

that is in the default top level CMakeLists.txt files. if you using this to build at the top level of your tree, then you need to do the KDE4 stuff too.

Elv13 said...

I am getting:
/home/kde-devel/kde/src/plasma/appletbrowser/main.cpp: In function ‘int main(int, char**)’:
/home/kde-devel/kde/src/plasma/appletbrowser/main.cpp:128: error: invalid initialization of reference of type ‘const KPluginInfo&’ from expression of type ‘KPluginInfo* const’
make[2]: *** [appletbrowser/CMakeFiles/plasmaappletbrowser.dir/main.o] Error 1
make[2]: Leaving directory `/home/kde-devel/kde/build/plasma'
make[1]: *** [appletbrowser/CMakeFiles/plasmaappletbrowser.dir/all] Error 2
make[1]: Leaving directory `/home/kde-devel/kde/build/plasma'
make: *** [all] Error 2
makeobj[0]: Leaving directory `/home/kde-devel/kde/build/plasma'


when i try cmakekde (using the guide), did i forgot a .h somewhere? I got kdelibs, kdebase, kdeedu and kdegames installed

Aaron J. Seigo said...

@Elv13: you need to update your kdelibs. the last manic monday was a bit of a boat rocker =)

superstoned said...

I can't get it to build either. I try 'kdesvn-build playground/base/plasma', then it errors out at build.

It complains that it has nothing to do, no makefiles found... :(

Aaron J. Seigo said...

@superstoned:

perhaps manually cd into your build dir for playgroumd/base/plasma and do cmak $PATH_TO_SRCDIR (etc..) there.

Jon Severinsson said...

@superstoned:
You need to check out the entire component even if you only want to build part of it.

rm -rf ${source-dir}/playground
kdesvn-build --svn-only playground
kdesvn-build playgroumd/base/plasma

Anonymous said...

I have the same problem as superstoned. Tried Jon Severinsson's solution, but with no luck: it still complains about no makefile. Did I miss something? (I did check out the the entire Playground).

Well, if anyone finds a "easy" solution, I would be really happy you shared it here. Thanks.