Latest Release:: The development version of kdesrc-build is currently recommended, and can be downloaded from KDE's git server by running:
$ git clone git://anongit.kde.org/kdesrc-buildThis command will download kdesrc-build (the script and its associated modules) and sample configuration files suitable for KDE Frameworks 5 and Plasma Desktop 5. Afterwards, you can run
kdesrc-build --metadata-onlyto have kdesrc-build download the current information about the KDE source configuration. From there you can try
kdesrc-build --pretendto see what kdesrc-build would do, or something like
kdesrc-build --include-dependencies plasma-desktopto build Plasma Desktop 5 and its associated kde.org-based dependencies.
- Will automatically checkout and update the KDE source code from its source repository. Both Subversion and git repository types are supported.
- Integrates with the KDE source code infrastructure to automatically build modules in the required order, and using the appropriate branch.
- Easily supports building specific branches, tags, or even revisions of a module (or all of KDE).
- Supports many build systems. It's even possible to build many non-KDE software projects in a pinch (for instance, CMake can be built from its own git sources if your distribution does not have CMake packages).
- Supports speedy initial checkouts of modules (KDE Git projects only) by using the snapshots already available on the KDE project network.
- Supports a "dry run" mode (the --pretend) option so that you can experiment with different settings non-destructively.
- kdesrc-build can download modules (both initial checkout and updates) even while building modules that have already been updated.
- kdesrc-build supports uninstalling modules (manually, or prior to installing an already-installed module) in order to keep the install directory clean. Note that this feature requires CMake support and is still experimental.
- kdesrc-build logs everything for easy perusal later, that way you can determine why things went wrong if a build fails. kdesrc-build automatically creates symlinks for easy access to the last log (log/latest).
- color-coding of the output (which can be turned off)
- Has support for building the Qt Project's Qt library, which is a prerequisite for KDE software.
- kdesrc-build is very customizable. You can control most options down to a module-by-module basis if you so desire, including configure-flags, CMake flags, and your C++ flags during compilation. Instead of trying to remember what configure line you used, you can set it once and forget it.
- Extensive documentation. Feel free to let me know if you need something explained (e-mail address at bottom), or contact the kde-devel mailing list.
- A detailed sample configuration file is included, usually you can just copy it to ~/.kdesrc-buildrc and be done with it.
- Much more!