How to compile KDE connect under Open Suse

KDE Connect is a great little tool to connect your Android phone (Hello Google!) to your KDE file browser and back-end (mouse / multimedia) routines.

One thing I don't like is people telling you not to compile their software and, instead, rely on your OS provider to compile and package a given software for you.

So here we go -- the following applies to Open Suse 13.1 and KDE Connect v0.7.1, please make sure you adapt the following to your installation:

1. Make sure dependencies are installed:

This is what I did to install everything that was needed:

$ sudo zypper install libjson-devel
$ sudo zypper install libkde4-devel
$ sudo zypper install libqjson-devel
$ sudo zypper install libqca2-devel
$ sudo zypper install gettext-tools

If you do not install the libraries and tools mentioned above, your whole process will be messed up and fail at different stages. You have been warned.

2. Prepare the build directory

Important step, and one that I did not do (being a complete n00bie with CMake) :

$ cd kdeconnect-kde-0.7.1/
$ mkdir -v build
$ cd build

3. Start the make!!

This is a a two-step process, started in the build cirectory you just created:

$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
$ make
$ sudo make install

And... You should be done!

Now, test:

$ which kdeconnect-cli

$ kdeconnect-cli -v
Qt: 4.8.5
KDE Development Platform: 4.11.5
kdeconnect-cli: 1.0

Now, to test the whole thing, you need to install the Android utility on your device and connect the two... I'll update this page once I have done that!

Feel free to let me know how it worked for you at my email address: g i l @ p a n i x . c o m

Have fun!

See Also: