| Warning |
|---|
| This page is yet to be reviewed for changes required by the migration to Git. Information and commands on this page may no longer be valid and should be used with care. Please see the KDE Git hub page for more details. |
Contents |
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 | Requirements |
| What's Next | KDE |
| Further Reading | n/a |
The kdesupport module contains a number of KDE developed and supported packages that the main KDE modules depend upon. Your distribution packages may be sufficient for these requirements when building a KDE stable branch, but master may sometimes require the latest versions of some of these to be built from source.
Most kdesupport packages have now migrated to Git as separate modules and must be built individually, although some are still left in svn and can be built as a single unit. The modules are listed below in a rough dependency order.
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 |
|---|---|---|---|---|
| Automoc | No | |||
| Attica | Yes | |||
| Polkit Qt | Yes | |||
| Strigi | Yes | |||
| Soprano | Yes | |||
| Akonadi | Yes | |||
| Cagibi | Yes | |||
| Phonon | Yes | |||
| Phonon | N/A | Yes | ||
| Oxygen Icons | No | |||
| QImageBlitz | Yes | |||
| TagLib | Yes | |||
| cpp2xml | No |
Two different recipes are provided for building kdesupport. All the Git modules can be built using one of the the following recipes, except where noted.
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 the Build Environment section to do this.
cd <your source root directory> git clone kde:<module>.git cd <module> cmakekde
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.
cd <your source root directory> git clone git://anongit.kde.org/<module>.git 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 \ -DKDE4_BUILD_TESTS=TRUE nice make -j2 # for faster compiles use -j(X+1)' where X is your number of processor cores make install
Automoc is a tool to automate Qt moc file creation.
Please see the Automoc project page for details.
Automoc MUST be built first as other kdesupport modules depend on it.
Easy: git clone kde:automoc.git Full: git clone git://anongit.kde.org/automoc.git
Attica is a library for accessing the Open Collaboration Services.
Please see the Attica project page for details.
Easy: git clone kde:attica.git Full: git clone git://anongit.kde.org/attica.git
Polkit Qt is a library for accessing the PolKit authorization framework.
Please see the Polkit Qt project page for details.
It is recommended to have polkit >= 0.98 installed on your system, however Polkit-Qt-1 will build with any polkit-1 version.
Easy: git clone kde:polkit-qt-1.git Full: git clone git://anongit.kde.org/polkit-qt-1.git
Strigi is a library for indexing files.
Please see the Strigi project page for details.
Strigi itself has a few dependencies as well: you will need the libraries and headers for libz, libbz2, openssl (libcrypto or libssl), libclucene (>=0.9.16a but watch out: version 0.9.17 does not work), and either libxml2 or libexpat.
Easy: git clone kde:libstreamanalyzer git clone kde:libstreams git clone kde:strigi git clone kde:strigiclient git clone kde:strigidaemon git clone kde:strigiutils
Full: git clone git://anongit.kde.org/libstreamanalyzer git clone git://anongit.kde.org/libstreams git clone git://anongit.kde.org/strigi git clone git://anongit.kde.org/strigiclient git clone git://anongit.kde.org/strigidaemon git clone git://anongit.kde.org/strigiutils
Soprano is a library for storing RDF data for the Nepomuk semantic desktop.
Please see the Soprano project page for details.
Soprano must be built BEFORE Akonadi.
Easy: git clone kde:soprano.git Full: git clone git://anongit.kde.org/soprano.git
Akonadi is a library for caching PIM data.
Please see the Akonadi project page for details.
Akonadi must be built AFTER Soprano.
Easy: git clone kde:akonadi.git Full: git clone git://anongit.kde.org/akonadi.git
Cagibi is a cache/proxy daemon for SSDP, the discovery part of UPnP.
Please see the Cagibi project page for details.
Easy: git clone kde:cagibi.git Full: git clone git://anongit.kde.org/cagibi.git
Phonon is a sound system abstraction layer. This is usually packaged with Qt, but the Phonon version from Qt is not recent enough for KDE sound to work so you will need to build the required version yourself.
Please see the Phonon project page for details.
You need to install this Phonon in the same location as Phonon from Qt i.e. in $QTDIR and NOT in $KDEDIR.
This recipe assumes you have set up the recommended KDE scripts, environment variables, and git configuration.
cd <your source root directory>
git clone kde:phonon.git
cd phonon
cb
cmake $KDE_SRC/phonon
\ -DCMAKE_INSTALL_PREFIX=$QTDIR
\ -DCMAKE_BUILD_TYPE=debugfull
\ -DKDE4_BUILD_TESTS=TRUE
make
make install
Note that make install may require root access.
This recipe assumes you are not using the recommended scripts and have properly set up your own environment.
cd <your source root directory> git clone git://anongit.kde.org/phonon.git 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=$QTDIR \ -DCMAKE_BUILD_TYPE=debugfull \ -DKDE4_BUILD_TESTS=TRUE make make install
Building the main Phonon module is sufficient for building KDE. If you also want to play sound then you need to build a backend. Choose a suitable backend from those available below:
git clone git://anongit.kde.org/phonon-gstreamer.git git clone git://anongit.kde.org/phonon-xine.git git clone git://anongit.kde.org/phonon-directshow.git git clone git://anongit.kde.org/phonon-mmf.git git clone git://anongit.kde.org/phonon-quicktime.git git clone git://anongit.kde.org/phonon-waveout.git
Note that DirectShow is for Windows only.
If you get an error like
designer: symbol lookup error: /path/to/kde/lib/kde4/plugins/phonon_backend/phonon_xine.so:
undefined symbol: _ZN6Phonon12PulseSupport11getInstanceEv
while running Qt Designer you need to:
rm $QTDIR/lib/libphonon.so.4
Prison is a barcode library.
Please see the Prison project page for details.
Additional Requirements
QRencode REQUIRED Dmtx REQUIRED
Easy: git clone kde:prison.git Full: git clone git://anongit.kde.org/prison.git
A number of kdesupport packages are still in svn:
These packages can be checked out and built together with a single recipe.
Note that QCA lives in kdesupport svn but is not built by default. It is recommended that you use your system QCA packages and only checkout the kdesupport svn version if you are going to develop QCA.
This recipe assumes you have set up the recommended KDE scripts, environment variables, and git configuration.
cd <your source root directory> svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/ cd kdesupport cmakekde
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 svn://anonsvn.kde.org/home/kde/trunk/kdesupport/ 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 \ -DKDE4_BUILD_TESTS=TRUE make make install
If you get a message related to
target libQtTest.so not found
you may need to recompile qt-kde. This time you should take out
-nomake demos -nomake examples
from the configure command, so that Qt generates library QtTest.
If you get
CMake Error: Qt qmake not found!
Then:
1) uncomment Qt section in .bashrc script (QTDIR, QT_PLUGINS_DIR,
PKG_CONFIG_PATH variable settings).
2) source ~/.bashrc
3) cd && cd qt-kde
4) make confclean
5) repeat steps for installing Qt (from ./configure line).
6) retry building kdesupport
Once all the KDE Support requirements have been installed it is time to install the KDE Development Platform