(automoc4 is needed to compile kde4 in kubuntu 8.10) |
(This also works for kubuntu 8.10, added.) |
||
| Line 1: | Line 1: | ||
{{Template:I18n/Language Navigation Bar|Getting_Started/Build/KDE4/Kubuntu and Debian}} | {{Template:I18n/Language Navigation Bar|Getting_Started/Build/KDE4/Kubuntu and Debian}} | ||
| − | This page details installation of kde4 requirements on Kubuntu 7.10 (Gutsy) and Debian (Testing/Unstable). For a basic functioning desktop, the recommended packages are installed with the command: | + | 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> | <code bash> | ||
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 | Українська | 简体中文 | 繁體中文
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:
sudo aptitude install build-essential xorg-dev cdbs debhelper cmake \
kdesdk-scripts subversion ssh xserver-xephyr doxygen dbus-x11 \
libstreamanalyzer-dev libstrigiqtdbusclient-dev \
libxml2-dev libxslt1-dev shared-mime-info libical-dev libgif-dev libssl-dev \
libboost-dev libboost-program-options-dev libgpgme11-dev libxine-dev \
libqimageblitz-dev libbz2-dev libdbus-1-dev libpam0g-dev libpcre3-dev \
libkrb5-dev libsm-dev libclucene0ldbl libclucene-dev libjpeg62-dev \
libxtst-dev xsltproc libxrender-dev libfontconfig1-dev automoc4
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.
To install all the optional packages:
sudo aptitude install build-essential xorg-dev cdbs debhelper cmake \
kdesdk-scripts subversion ssh xserver-xephyr doxygen graphviz libqt4-dev \
dbus-x11 libdbus-1-dev libstreamanalyzer-dev libstrigiqtdbusclient-dev \
libxml2-dev libxslt1-dev shared-mime-info libgif-dev libpcre3-dev \
libclucene0ldbl libclucene-dev libjpeg62-dev libkrb5-dev libsm-dev \
libssl-dev libbz2-dev libical-dev \
libpcre3-dev libxml2-utils libpcre3-dev libopenexr-dev libjasper-dev \
libenchant-dev libavahi-common-dev libaspell-dev libasound2-dev libboost-dev \
libboost-program-options-dev libgpgme11-dev libldap2-dev libsasl2-dev \
libxine-dev libqimageblitz-dev libsmbclient-dev libxkbfile-dev libxcb1-dev \
libxklavier12-dev libxdamage-dev libxcomposite-dev libbluetooth-dev libusb-dev \
libcaptury-dev network-manager-dev libsmbclient-dev libsensors-dev \
libpam0g-dev libnm-util-dev libusb-dev libcfitsio3-dev libnova-dev \
libeigen-dev libopenbabel-dev libfacile-ocaml-dev libboost-python-dev \
libqca2-dev libqca2-dev libqca2-dev libsvn-dev libsvncpp-dev \
libcommoncpp2-dev libidn11 libidn11-dev libxtst-dev librdf-dev xsltproc \
libxrender-dev libfontconfig1-dev libpci-dev libxss-dev libxft-dev
To compile the stable release of kde4 (kde4.0) also install the package libqt4-dev.
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:
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 [ "$QTDIR" = "`pwd`" ]; then \ find . -name '*.o' -delete ; \ else make install; fi;
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:
cs
svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport
cd kdesupport
cmakekde
After installing required and desired packages, proceed to Building KDE4.
In Kubuntu 7.10 (Gutsy) and Debian (Testing/Unstable) the build prerequisites are installed with:
sudo aptitude install build-essential cdbs debhelper cmake \
kdesdk-scripts subversion ssh xserver-xephyr
Optional packages for API documentation generation:
sudo aptitude install doxygen graphviz
Kdelibs dependencies can be installed with:
sudo aptitude install libqt4-dev dbus-x11 \
libstreamanalyzer-dev libstrigiqtdbusclient-dev \
libxml2-dev libxslt1-dev shared-mime-info libgif-dev libpcre3-dev \
libjpeg62-dev
You may also need the automoc and libphonon-dev packages when compiling on *buntu:
sudo aptitude install automoc libphonon-dev
sudo aptitude install libssl-dev libbz2-dev libpcre3-dev
sudo aptitude install libasound2-dev libaspell-dev \
libavahi-common-dev libenchant-dev libjasper-dev libopenexr-dev \
libxml2-utils
kdepimlibs dependencies can be installed with:
sudo aptitude install libboost-dev libboost-program-options-dev libgpgme11-dev
If compiling on *buntu you may need libical-dev:
sudo aptitude install libical-dev
sudo aptitude install libldap2-dev libsasl2-dev
kdebase-runtime dependencies can be installed with:
sudo aptitude install libxine-dev
| 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). |
kdebase-apps dependencies can be installed with:
sudo aptitude install libqimageblitz-dev
sudo aptitude install libsmbclient-dev libxkbfile-dev libxcb1-dev
sudo aptitude install libxklavier11-dev libxdamage-dev libxcomposite-dev \
libbluetooth-dev libusb-dev libcaptury-dev network-manager-dev \
libsmbclient-dev libsensors-dev libpam0g-dev libnm-util-dev
The following packages are recommended if you intend to use kstars:
sudo aptitude install libusb-dev libcfitsio3-dev libnova-dev libeigen-dev \
libopenbabel-dev libfacile-ocaml-dev libboost-python-dev
Requires kdevplatform.
Return to building KDE 4.