Archive:Getting Started/Build/Requirements
Getting_Started/Build/Requirements
Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenčina | Slovenščina | српски | Türkçe | Tiếng Việt | Українська | 简体中文 | 繁體中文
Tutorial Series | Getting Started |
Previous | Getting Started |
What's Next | Qt |
Further Reading | n/a |
Introduction
This page details the software requirements that need to be installed on your system before you can start building kdelibs and the KDE applications. For most of these requirements it is preferable to use your distribution supplied packages, however in some case you will need to build some requirements yourself and this page will also explain how to do so.
Build Recipes
Two different recipes are provided for building KDE and its prerequisites.
The Easy Recipe relies on you setting up your environment according to the KDE recommendations. This will give you many shortcuts to save on typing. See Setting Up The Environment section to do this.
The Full Recipe is provided for those who wish to control their build environment or to see the full steps required and who don't mind lots of typing.
System Prerequisites
NOTE: This section needs a major update! Update to include all dependencies and the correct version. In the Build KDE page include this table for each module but with just the module requirements listed. Perhaps make this list just for kdelibs/kdebase?
All of these packages should be installed from your distribution. If you cannot meet these requirements from your distribution, it is recommended to either update to a more recent distribution or to build KDE in a virtual machine.
The 'Stable' column shows the required version for the current Stable branch while the 'Master' column shows the required version for the current development version (aka 'trunk'). On most distributions you will also need to install the matching -devel packages for some of the software, this is indicated in the Devel column of the table.
Requirements as at 2011-03-02, Stable Branch currently KDE Release 4.6, Master currently targeting KDE Release 4.7.
Requirement | Stable | Master | Devel? | Details |
---|---|---|---|---|
GCC / G++ | >= 4.2 | >= 4.2 | No | |
Git | No | |||
SVN | No | |||
pkg-config | >= | >= | No | |
CMake | >= 2.6.4 | >= 2.6.4 | No | |
DBus | >= 1.4.0 | >= 1.4.0 | Yes | Also dbus-glib |
X11 | >= | >= | Yes | |
Mesa | >= | >= | Yes | mesa-common-dev and libglu1-mesa-dev |
libjpeg | >= | >= | Yes | |
libpng | >= | >= | Yes | |
libungif | >= | >= | Yes | |
librdf | >= | >= | Yes | |
libbz2 | >= | >= | Yes | |
libxml2 | >= | >= | Yes | |
libxslt | >= | >= | Yes | |
Boost | >= | >= | Yes | |
libmysqlclient | >= | >= | Yes | |
shared-mime-info | >= | >= | Yes | |
DocBook XML DTD's | >= 4.2 | >= 4.2 | No | Required for the KDE documentation and help |
DocBook XSl Stylesheets | >= 4.2 | >= 4.2 | No | Required for the KDE documentation and help |
Hardware Libraries
HAL (Hardware Abstraction Layer) is required by KDE 4.5 and earlier for interfacing with your hardware. Your distribution supplied packages should be sufficient for this.
From KDE 4.6 onwards HAL has been deprecated in favor of uDisk, uPower and related projects, but all but the most recent distributions will still require HAL.
Distributions
Many distributions provide shortcut meta-packages or install commands to simplify installing all the KDE requirements. Check the Distributions page first to see if your distribution provides a simple way to install the requirements.
Requirements as at 2011-03-02, Stable Branch currently KDE Release 4.6, Master currently targeting KDE Release 4.7.
Requirement | Stable | Master | Devel? | Details |
---|---|---|---|---|
Shared-Desktop-Ontologies | >= | >= | No |
The ontologies are a shared resource required for the semantic desktop. Your distribution packages should be sufficient for this package but some older distributions may not have them.
Easy Recipe
This recipe assumes you have set up the recommended KDE scripts, environment variables, and git configuration.
cd <your source root directory> svn checkout https://oscaf.svn.sourceforge.net/svnroot/oscaf/trunk/ontologies cd ontologies cmakekde
Full Recipe
This recipe assumes you are not using the recommended scripts and have properly set up your own environment.
cd <your source root directory> svn checkout https://oscaf.svn.sourceforge.net/svnroot/oscaf/trunk/ontologies cd <your build root directory, or the module source dir> mkdir <your module build dir> cd <your module build dir> cmake <path to your module source dir> \ -DCMAKE_INSTALL_PREFIX=$KDEDIR \ -DCMAKE_BUILD_TYPE=debugfull nice make -j2 # for faster compiles use -j(X+1)' where X is your number of processor cores make install
Next Step
Once all requirements have been installed it is time to install Qt