Reply to topic

Starting Development KDE 4 Application

User avatar dgoemans
Registered Member
Posts
5
Karma
0
Hi, i want to start working on a KDE 4 application ( namely KPackageKit ) and i'm really struggling to start development. I don't have any KDE dev knowledge, but i am a C++ developer by profession. I've downloaded the app source, and followed instructions, but can't get cmake to run succesfully. I have kdelibs-devel but it puts some of the required cmake modules ( FindKDE4Internal.cmake ) in a KDE 4 directory ( /usr/share/kde4/apps/cmake ) and not the cmake directory ( /usr/share/cmake ). This step is probably wrong, but i copied the missing modules from the KDE modules directory into the CMake one, and now i'm getting the following error.
CMake Error at /usr/share/cmake/Modules/FindKDE4Internal.cmake:432 (message):
Couldn't parse KDE version string from the kde4-config output:

sh: ARGS: command not found
Call Stack (most recent call first):
CMakeLists.txt:1 (find_package)

All i want to do is get the app building so i can try and contribute. Thanks in advance.
User avatar bcooksley
Administrator
Posts
19763
Karma
87
OS
Copying the files from /usr/share/kde4/apps/cmake/ to /usr/share/cmake is indeed incorrect.

Do you have kdebase-runtime installed?


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar dgoemans
Registered Member
Posts
5
Karma
0
Yes, it is installed. I'm doing all of this from within KDE 4.1.85 ( as provided by the Fedora 10 kde-testing packages.
User avatar bcooksley
Administrator
Posts
19763
Karma
87
OS
By Fedora 10 kde-testing do you mean this repository?
http://apt.kde-redhat.org/apt/kde-redha ... 86/testing

Does this directory exist? /usr/share/apps/cmake/modules


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar dgoemans
Registered Member
Posts
5
Karma
0
yes, that or a mirror thereof. and the directory does not exist. There are 2 cmake modules folders that i can find, namely:
/usr/share/cmake/Modules
/usr/share/kde4/apps/cmake/modules
thanks
User avatar anda_skoa
KDE Developer
Posts
783
Karma
4
OS
If you run kde4-config manually, what is its output for

% kde4-config --path data

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar dgoemans
Registered Member
Posts
5
Karma
0
The output is:
/home/david/.kde/share/apps/:/usr/share/kde-settings/kde-profile/default/share/apps/:/usr/share/kde4/apps/
thanks
User avatar anda_skoa
KDE Developer
Posts
783
Karma
4
OS
That looks ok, the installation search path is in there.

The "ARGS" string in the output included in the first posting looks like if this is some kind of variable which hasn't been replaced properly.

No idea what could make that happen though, probably a wrong version of cmake?

I am using cmake 2.6.2

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.

 
Reply to topic

Bookmarks



Who is online

Registered users: allanmills, Baidu [Spider], Bing [Bot], cairncrossr, Google [Bot], ipwizard, Sogou [Bot], tymond