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

kdesdk and kde-workspace build errors

Tags: None
(comma "," separated)
Lethys
Registered Member
Posts
3
Karma
0
OS
I'm currently attempting to build kde following these instructions.

When trying to build kdesdk, I get:

/home/no/kde/src/kdebase/kdesdk/dolphin-plugins/git/fileviewgitplugin.cpp: In member function 'virtual bool FileViewGitPlugin::beginRetrieval(const QString&)':
/home/no/kde/src/kdebase/kdesdk/dolphin-plugins/git/fileviewgitplugin.cpp:198:37: error: 'LocallyModifiedUnstagedVersion' was not declared in this scope
/home/no/kde/src/kdebase/kdesdk/dolphin-plugins/git/fileviewgitplugin.cpp:223:41: error: 'LocallyModifiedUnstagedVersion' was not declared in this scope
/home/no/kde/src/kdebase/kdesdk/dolphin-plugins/git/fileviewgitplugin.cpp:226:38: error: 'LocallyModifiedUnstagedVersion' was not declared in this scope
/home/no/kde/src/kdebase/kdesdk/dolphin-plugins/git/fileviewgitplugin.cpp: In member function 'virtual QList<QAction*> FileViewGitPlugin::contextMenuActions(const KFileItemList&)':
/home/no/kde/src/kdebase/kdesdk/dolphin-plugins/git/fileviewgitplugin.cpp:294:57: error: 'LocallyModifiedUnstagedVersion' was not declared in this scope
make[2]: *** [dolphin-plugins/git/CMakeFiles/fileviewgitplugin.dir/fileviewgitplugin.o] Error 1
make[1]: *** [dolphin-plugins/git/CMakeFiles/fileviewgitplugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 20%] Built target lokalize
make: *** [all] Error 2

Since kdesdk didn't seem to be required, I tried to go on ahead and build kde-workspace and got another error. It didn't complain about a missing dependency, but if kdesdk is require, just ignore this part. I ended up with the following error:

[ 51%] Building CXX object plasma/generic/runners/nepomuksearch/CMakeFiles/krunner_nepomuksearchrunner.dir/nepomuksearchrunner.o
Linking CXX shared module ../../../../lib/krunner_powerdevil.so
/home/no/kde/src/kdebase/kde-workspace/plasma/generic/runners/nepomuksearch/nepomuksearchrunner.cpp:29:25: fatal error: nepomuk/nie.h: No such file or directory
compilation terminated.
make[2]: *** [plasma/generic/runners/nepomuksearch/CMakeFiles/krunner_nepomuksearchrunner.dir/nepomuksearchrunner.o] Error 1
make[1]: *** [plasma/generic/runners/nepomuksearch/CMakeFiles/krunner_nepomuksearchrunner.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 51%] Built target krunner_powerdevil
make: *** [all] Error 2

Even after google searches, I can't figure out where 'LocallyModifiedUnstagedVersion' is suppose to come from, and grep didn't come up with anything. nie.h also doesn't seem to appear anywhere, and I don't have a clue where it is suppose to come from.

I'm using slackware 13.37 64.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Ok, the problem here is that the various components probably depend on trunk versions of their counterparts. This means that you essentially need to build everything from kdelibs and up.

If you only want to build a certain part to develop on it, it may be worth checking your distributors beta 1 packages, which should be sufficiently new enough.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Lethys
Registered Member
Posts
3
Karma
0
OS
I've built everything listed here and here. It wasn't until kdesdk that I ended up getting problems.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Ok, try setting the environment variable "CMAKE_PREFIX_PATH" to point towards the location where you installed KDE, then re-run CMake.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Lethys
Registered Member
Posts
3
Karma
0
OS
Eventually I realized that while kdelibs was building, it first complained about not having shared-desktop-ontologies. So after installing a newer version of it, rebuilding kdelibs, and seeing the missing headers in place, I was then able to build kde-workspace. kdesdk still won't build, though I wouldn't be surprised if its from something else not being new enough. :-\
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You probably need a newer version of Dolphin, which is in kde-baseapps.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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