Guidelines and HOWTOs/Build from source

< Guidelines and HOWTOs
Revision as of 18:23, 18 June 2012 by Jignesh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Build requirements

This section provides information about hard (required) and optional software packages needed to build the KDE Framework.

Hard dependencies

Kdelibs packages

  • deb-based distributions (Debian, Ubuntu...): All the dependencies used for the packages can be installed by running
$ apt-get build-dep {packagename}
  • for instance on Ubuntu:
$ sudo apt-get build-dep kdelibs5
  • OpenSuSE: All the dependencies used for building Calligra can be installed by running:
$ zypper si -d kdelibs5
  • Fedora: All the dependencies used for building Calligra can be installed by running:
$ yum-builddep kdelibs5

CMake 2.8.8

You need CMake 2.8.8 for KDE Frameworks 5. If you are already using 2.8.8 you can move on to next step else download it from

Alternative for CMake 2.8.8 using Git.

  • Choose an install prefix, for instance
 $ export KF5=$HOME/kf5

To avoid repetition of command you can append ~/.bashrc file with above line and execute,

 $ source ~/.bashrc  
  • Checkout and install Latest version of CMake using Git.
 $ git clone git://
 $ cd cmake
 $ ./configure --prefix $KF5
 $ make
 $ make install

Extra CMake Modules

  • Checkout and build extra-cmake-modules
 $ git clone git://
 $ cd extra-cmake-modules
 $ make 
 $ make install

Build framework

Current state of KDE framework exist in frameworks branch of kdelibs.

To retrieve the source code from Git you have to use the following setup.Add the following text to your ~/.gitconfig:

 [url "git://"]
    insteadOf = kde:
 [url "ssh://[email protected]/"]
    pushInsteadOf = kde:

Then execute

 $ git clone kde:kdelibs
 $ cd kdelibs
 $ git checkout frameworks
 $ mkdir build 
 $ cd build
 $ make
 $ make install

Content is available under Creative Commons License SA 4.0 unless otherwise noted.