To use kdesrc-build, you should have a file in your home directory called
.kdesrc-buildrc, which sets the general options and sets the modules
you would like to download and build.
It is possible to use different configuration files for kdesrc-build,
which is described in Chapter 4, Configuring kdesrc-build. If you need to use
multiple configurations, please see that section. Here, we will assume the
configuration is stored in
The easiest way to proceed is to use the
kdesrc-buildrc-sample file as a template, changing global
options to match your wants, and also change the list of modules you want to
The default settings should actually already be appropriate to perform a KDE build. Some settings that you may wish to alter include:
use-stable-kde to change the default version of KDE modules to build. By default kdesrc-build will build the trunk version of KDE. If you want to build the latest stable release of KDE instead of using your distribution packages you would set this option to
Note that this option relies on information available from the KDE project database, so this feature only works for these modules. See also the section called “Automatically finding modules from the official KDE module database”.
kdedir, which changes the destination directory that KDE is installed to. This defaults to
~/kde, which is a single-user installation.
qtdir, which controls the path to the installation of Qt™ to use. The default is to use a Qt™ compiled by kdesrc-build, using the special qt module and the latest available source code. (
This also controls where to install qt.
You will probably want to select different modules to build, which is described in the section called “Selecting modules to build”.