This page details installation of kde4 requirements on Kubuntu 7.10 (Gutsy), Kubuntu 8.10 (Intrepid Ibex) and Debian (Testing/Unstable). For a basic functioning desktop, the recommended packages are installed with the command:

−

<code bash>

+

= Introduction =

+

+

This page details installation of KDE SC 4 build requirements on any recent Kubuntu or Debian system. That is, if you want to build KDE SC 4 Platform, the required (and some strongly recommended) packages are installed with the commands on this page.

+

+

== Debian Source Builds The Easy Way ==

+

+

For building parts of KDE on Debian using the Debian source packages see [[/Source|Debian the easy way]].

+

+

== KDE 4.x ==

+

Install these for any KDE 4.x release, then add specific packages for point releases as below. Then add any optional packages you like, as described below.

This installs build prerequisites such as build essential, almost all compilation requirements for kde4 (with the exception of qt4) and some recommended packages such as libssl-dev for https support. Further recommended and optional packages are listed below.

+

This (along with the command for 4.x above) installs all compilation requirements for kde4 (with the exception of qt4) and some strongly recommended packages such as libssl-dev for https support. Further recommended and optional packages are listed below.

To compile the stable release of kde4 (kde4.0) also install the package <tt>libqt4-dev</tt>.

+

−

+

−

To compile kde from trunk (soon to be kde4.1) the latest Qt4.4 snapshot must be compiled from source. This is provided conveniently in the kde svn repository as qt-copy. Please read README.qt-copy for the necessary Qt options as well as currently known problems.

+

−

+

−

It may be installed with the following commands:

+

−

+

−

<code bash>

+

−

cs # Note: cs is not a typo.

+

−

svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy

+

−

cd qt-copy

+

−

./apply_patches

+

−

cb # Build Qt in a separate build directory

+

−

../../src/qt-copy/configure <Qt options here> -prefix $QTDIR

+

−

make -j2 # use 'make -j(X+1)' where X is your number of processors, to compile faster

+

−

# if we don't install, we'll just clear obj files to

+

−

# save disk space

+

−

if [ "$QTDIR" = "`pwd`" ]; then \

+

−

find . -name '*.o' -delete ; \

+

−

else make install; fi;

+

−

</code>

+

−

+

−

Further, there is kdesupport (strigi, soprano, etc.) to be compiled.

+

−

+

−

Make sure you have correct version of Java installed (1.5+ from Sun and not GNU Java Compiler aka gcj) in order to be able to build strigi, then follow to building kdesupport:

+

−

+

−

<code bash>

+

−

cs

+

−

svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport

+

−

cd kdesupport

+

−

cmakekde</code>

+

−

+

−

In case it barks at you about not being able to find Taglibs make sure to install libtag1-dev by issueing e.g. on Ubuntu 8.10:

+

−

<code bash>

+

−

sudo apt-get install libtag1-dev

+

−

</code>

+

−

+

−

After installing required and desired packages, proceed to [[Getting_Started/Build/KDE4#kdelibs|Building KDE4]].

+

−

+

−

+

−

== Build prerequisites ==

+

−

In Kubuntu 7.10 (Gutsy) and Debian (Testing/Unstable) the build prerequisites are installed with:

+

−

+

−

<code bash>

+

−

sudo aptitude install build-essential cdbs debhelper cmake \

+

−

kdesdk-scripts subversion ssh xserver-xephyr

+

−

</code>

+

−

+

−

+

−

Optional packages for API documentation generation:

+

−

<code bash>

+

−

sudo aptitude install doxygen graphviz

+

−

</code>

+

== kdelibs dependencies ==

== kdelibs dependencies ==

−

−

Kdelibs dependencies can be installed with:

−

<code bash>

−

sudo aptitude install libqt4-dev dbus-x11 \

−

libstreamanalyzer-dev libstrigiqtdbusclient-dev \

−

libxml2-dev libxslt1-dev shared-mime-info libgif-dev libpcre3-dev \

−

libjpeg62-dev

−

</code>

−

−

You may also need the automoc and libphonon-dev packages when compiling on *buntu:

−

<code bash>sudo aptitude install automoc libphonon-dev</code>

−

−

=== Recommended packages ===

−

* libssl-dev - Needed for https support etc.

−

* libbz2-dev - Needed for bzip support in kio_archive and GHNS packages.

{{Note|Note that libxine1-dev depends on gnome packages due to a kubuntu gutsy packaging bug (fixed in hardy). Also kubuntu packages xinelib version 1.1.8, which has trouble playing short sounds (fixed in xinelib 1.1.9).

To enable XMMS support for the 'Now Playing' plasma data engine in kdebase, you will need to either compile XMMS from source, or install the package from a [http://www.pvv.ntnu.no/~knuta/xmms/ third-party XMMS package repository].

Introduction

This page details installation of KDE SC 4 build requirements on any recent Kubuntu or Debian system. That is, if you want to build KDE SC 4 Platform, the required (and some strongly recommended) packages are installed with the commands on this page.

4.6

This (along with the command for 4.x above) installs all compilation requirements for kde4 (with the exception of qt4) and some strongly recommended packages such as libssl-dev for https support. Further recommended and optional packages are listed below.