Difference between revisions of "Getting Started/Build/Distributions/Debian"

Jump to: navigation, search
m (changed 'ssh' to 'openssh-client')
 
(86 intermediate revisions by 44 users not shown)
Line 1: Line 1:
{{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:
 
  
<code bash>
+
= Introduction =
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 libgif-dev libssl-dev \
+
libboost-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
+
</code>
+
  
 +
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.
  
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.
+
== Debian Source Builds The Easy Way ==
  
To install all the optional packages:
+
For building parts of KDE on Debian using the Debian source packages see [[/Source|Debian the easy way]].
  
<code bash>
+
== KDE 4.x ==
sudo aptitude install build-essential xorg-dev cdbs debhelper cmake \
+
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.
kdesdk-scripts subversion ssh xserver-xephyr doxygen graphviz libqt4-dev \
+
<syntaxhighlight lang="bash">
dbus-x11 libdbus-1-dev libstreamanalyzer-dev libstrigiqtdbusclient-dev \ libxml2-dev libxslt1-dev shared-mime-info libgif-dev libpcre3-dev \
+
sudo aptitude install build-essential xorg-dev cdbs debhelper cmake \
libclucene0ldbl libclucene-dev libjpeg62-dev libkrb5-dev libsm-dev\
+
kdesdk-scripts subversion openssh-client xserver-xephyr doxygen dbus-x11 \
libssl-dev libbz2-dev \
+
libxml2-dev libxslt1-dev shared-mime-info libical-dev libgif-dev libssl-dev \
libpcre3-dev libxml2-utils libpcre3-dev libopenexr-dev libjasper-dev \
+
libboost-dev libboost-program-options-dev libboost-graph-dev libgpgme11-dev \
libenchant-dev libavahi-common-dev libaspell-dev libasound2-dev libboost-dev \
+
libvlccore-dev libxine-dev libqimageblitz-dev libbz2-dev libdbus-1-dev libpam0g-dev \
libgpgme11-dev libldap2-dev libsasl2-dev libxine-dev libqimageblitz-dev \
+
libpcre3-dev libkrb5-dev libsm-dev libclucene0ldbl libclucene-dev \
libsmbclient-dev libxkbfile-dev libxcb1-dev libxklavier12-dev libxdamage-dev \
+
libxtst-dev xsltproc libxrender-dev libfontconfig1-dev automoc librdf0-dev \
libxcomposite-dev libbluetooth-dev libusb-dev libcaptury-dev \
+
libdbusmenu-qt-dev docbook-xsl docbook-xml libattica-dev libqtwebkit-dev \
network-manager-dev libsmbclient-dev libsensors-dev \
+
shared-desktop-ontologies libphonon-dev libqt4-dev dbus-x11 \
libpam0g-dev libnm-util-dev libusb-dev libcfitsio3-dev libnova-dev \
+
libstreamanalyzer-dev libstrigiqtdbusclient-dev libxml2-dev libxslt1-dev \
libeigen-dev libopenbabel-dev libfacile-ocaml-dev libboost-python-dev \
+
librdf0-dev libjasper-dev libopenexr-dev libacl1-dev libsasl2-dev
libqca2-dev libqca2-dev libqca2-dev libsvn-dev libsvncpp-dev \
+
</syntaxhighlight>
libcommoncpp2-dev libidn11 libidn11-dev libxtst-dev librdf-dev xsltproc \
+
libxrender-dev libfontconfig1-dev libpci-dev libxss-dev libxft-dev
+
</code>
+
  
To compile the stable release of kde4 (kde4.0) also install the package <tt>libqt4-dev</tt>.
+
=== 4.10 ===
 +
This (along with the command for 4.x above) installs all compilation requirements for kde 4.10. Some additional packages may be required for 4.10. See the sections below for other packages to install.
  
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.
+
<syntaxhighlight lang="bash">
 +
sudo aptitude install libx11-xcb-dev libxcb-composite0-dev libxcb-damage0-dev \
 +
libxcb-xfixes0-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync0-dev \
 +
libxcb-image0-dev libxcb-render-util0-dev libqjson-dev virtuoso-minimal \
 +
libavcodec-dev libavformat-dev libavdevice-dev libavutil-dev \
 +
libswscale-dev libpostproc-dev libtag1-dev  libgstreamer0.10-dev \
 +
libgstreamer-plugins-base0.10-dev
 +
</syntaxhighlight>
  
It may be installed with the following commands:
+
=== 4.6 ===
  
<code bash>
+
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.
cs # Note: cs is not a typo.
+
<syntaxhighlight lang="bash">
svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy
+
sudo aptitude install graphviz libxml2-utils libopenexr-dev libjasper-dev libenchant-dev \
cd qt-copy
+
libavahi-common-dev libaspell-dev libasound2-dev libldap2-dev libsasl2-dev \
./apply_patches
+
libsmbclient-dev libxkbfile-dev libxcb1-dev libxklavier-dev libxdamage-dev \
cb # Build Qt in a separate build directory
+
libxcomposite-dev libbluetooth-dev libusb-dev network-manager-dev \
../../src/qt-copy/configure <Qt options here> -prefix $QTDIR
+
libsensors4-dev libnm-util-dev libcfitsio3-dev libnova-dev libeigen2-dev \
make -j2 # use 'make -j(X+1)' where X is your number of processors, to compile faster
+
libopenbabel-dev libfacile-ocaml-dev libboost-python-dev libsvn-dev libsvncpp-dev \
# if we don't install, we'll just clear obj files to
+
libqt4-dev libqca2-dev libstreamanalyzer-dev libstrigiqtdbusclient-dev \
# save disk space
+
libcommoncpp2-dev libidn11 libidn11-dev libpci-dev libxss-dev libxft-dev \
if [ "$QTDIR" = "`pwd`" ]; then \
+
libpolkit-agent-1-dev libpolkit-backend-1-dev libpolkit-gobject-1-dev git libpoppler-qt4-dev \
find . -name '*.o' -delete ; \
+
libspectre-dev
else make install; fi;
+
</syntaxhighlight>
</code>
+
  
Further, there is kdesupport (strigi, soprano, etc.) to be compiled:
+
=== 4.5 ===
 +
<syntaxhighlight lang="bash">
 +
sudo aptitude install libv4l-dev # for kdenetworks
 +
sudo aptitude install liblcms1-dev # for kdegraphics
 +
</syntaxhighlight>
  
<code bash>
+
=== 4.4 ===
cs
+
(Nothing extra needed)
svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport
+
cd kdesupport
+
cmakekde</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 package when compiling on *buntu:
 
<code bash>sudo aptitude install automoc</code>
 
 
=== Recommended packages ===
 
* libssl-dev - Needed for https support etc.
 
* libbz2-dev - Needed for bzip support in kio_archive and GHNS packages.
 
* libpcre3-dev - regular expression library. Recommended for Javascript support.
 
 
<code bash>
 
sudo aptitude install libssl-dev libbz2-dev libpcre3-dev
 
</code>
 
  
 
=== Optional packages ===
 
=== Optional packages ===
Line 111: Line 71:
 
* libopenexr-dev - image processing library
 
* libopenexr-dev - image processing library
 
* libxml2-utils - used to validate generate doc files
 
* libxml2-utils - used to validate generate doc files
<code bash>
+
<syntaxhighlight lang="bash">
 
sudo aptitude install libasound2-dev libaspell-dev \
 
sudo aptitude install libasound2-dev libaspell-dev \
 
libavahi-common-dev libenchant-dev libjasper-dev libopenexr-dev \
 
libavahi-common-dev libenchant-dev libjasper-dev libopenexr-dev \
 
libxml2-utils
 
libxml2-utils
</code>
+
</syntaxhighlight>
  
 
== kdepimlibs dependencies ==
 
== kdepimlibs dependencies ==
kdepimlibs dependencies can be installed with:
+
There are no additional optional dependencies
<code bash>
+
sudo aptitude install libboost-dev libgpgme11-dev
+
</code>
+
 
+
=== kdepimlibs recommended ===
+
* libldap2-dev - For ldap support in kde4.
+
* libsasl2-dev - Required for imap and sieve kioslaves
+
<code bash>
+
sudo aptitude install libldap2-dev libsasl2-dev
+
</code>
+
 
+
 
== kdebase dependencies ==
 
== kdebase dependencies ==
kdebase-runtime dependencies can be installed with:
 
<code bash>
 
sudo aptitude install libxine-dev
 
</code>
 
 
{{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:
 
<code bash>
 
sudo aptitude install libqimageblitz-dev
 
</code>
 
  
 
=== kdebase-apps optional ===
 
=== kdebase-apps optional ===
Line 149: Line 87:
 
* libsmbclient-dev - for samba support in kde4
 
* libsmbclient-dev - for samba support in kde4
  
<code bash>
+
<syntaxhighlight lang="bash">
 
sudo aptitude install libsmbclient-dev libxkbfile-dev libxcb1-dev
 
sudo aptitude install libsmbclient-dev libxkbfile-dev libxcb1-dev
</code>
+
</syntaxhighlight>
  
 
=== kdebase-workspace optional ===
 
=== kdebase-workspace optional ===
 
* libsmbclient-dev - for samba support in kde4
 
* libsmbclient-dev - for samba support in kde4
 
* network-manager-dev - Can be used by solid for network management
 
* network-manager-dev - Can be used by solid for network management
* libcaptury-dev - video capturing tool for screencasts
 
 
* libusb-dev - for usb support in solid
 
* libusb-dev - for usb support in solid
 
* libbluetooth-dev - for bluetooth support in solid
 
* libbluetooth-dev - for bluetooth support in solid
 
* libxcomposite-dev - for compositing support in kwin
 
* libxcomposite-dev - for compositing support in kwin
 
* libxdamage-dev - for compositing support in kwin
 
* libxdamage-dev - for compositing support in kwin
* libxklavier11-dev - virtual keyboard
+
* libxklavier-dev - virtual keyboard
 
* libsensors-dev - Support for hardware sensors (eg, temperature, fans)
 
* libsensors-dev - Support for hardware sensors (eg, temperature, fans)
 
* libpam0g-dev - Authentication module
 
* libpam0g-dev - Authentication module
 
* libnm-util-dev  - needed to build solid with network manager
 
* libnm-util-dev  - needed to build solid with network manager
<code bash>
+
<syntaxhighlight lang="bash">
sudo aptitude install libxklavier11-dev libxdamage-dev libxcomposite-dev \
+
sudo aptitude install libxklavier-dev libxdamage-dev libxcomposite-dev \
 
libbluetooth-dev libusb-dev libcaptury-dev network-manager-dev \
 
libbluetooth-dev libusb-dev libcaptury-dev network-manager-dev \
 
libsmbclient-dev libsensors-dev libpam0g-dev libnm-util-dev
 
libsmbclient-dev libsensors-dev libpam0g-dev libnm-util-dev
</code>
+
</syntaxhighlight>
 +
 
 +
== kdegraphics ==
 +
* libpoppler-qt4-dev - PDF support in Okular
 +
* libspectre-dev - postscript support in Okular
 +
* liblcms1-dev
 +
* libexiv2-dev - to build Gwenview
  
 
== kdeedu ==
 
== kdeedu ==
Line 178: Line 121:
 
* libreadline-dev - Gives kalgebra a console interface.
 
* libreadline-dev - Gives kalgebra a console interface.
 
* libopenbabel-dev - used by kalzium.
 
* libopenbabel-dev - used by kalzium.
* libeigen-dev - used by kalzium.
+
* libeigen2-dev - used by kalzium.
 
* libusb-dev - Provides KStars INDI support.
 
* libusb-dev - Provides KStars INDI support.
 
* libcfitsio3-dev - Gives KStars support for FITS images.
 
* libcfitsio3-dev - Gives KStars support for FITS images.
 
* libnova-dev - A general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library for KStars.
 
* libnova-dev - A general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library for KStars.
  
<code bash>
+
<syntaxhighlight lang="bash">
sudo aptitude install libusb-dev libcfitsio3-dev libnova-dev libeigen-dev \
+
sudo aptitude install libusb-dev libcfitsio3-dev libnova-dev libeigen2-dev \
 
libopenbabel-dev libfacile-ocaml-dev libboost-python-dev  
 
libopenbabel-dev libfacile-ocaml-dev libboost-python-dev  
</code>
+
</syntaxhighlight>
  
 
== koffice ==
 
== koffice ==
Line 198: Line 141:
  
 
== kdevplatform ==
 
== kdevplatform ==
* libsvn-dev - subversion support for the dev platform.
+
* libsvn-dev
* libsvncpp-dev - subversion support for the dev platform.
+
* libboost-serialization-dev
* libcommoncpp2-dev - teamwork integration.
+
  
 
== kdevelop ==
 
== kdevelop ==
Requires kdevplatform.
+
* kdevplatform-dev
 
+
* kdebase-workspace-dev
 
+
  
Return to [[Getting_Started/Build/KDE4#kdelibs|building KDE 4]].
+
== Other ==
 +
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].

Latest revision as of 09:29, 23 December 2013

Contents

[edit] 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.

[edit] Debian Source Builds The Easy Way

For building parts of KDE on Debian using the Debian source packages see Debian the easy way.

[edit] 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.

sudo aptitude install build-essential xorg-dev cdbs debhelper cmake \
kdesdk-scripts subversion openssh-client xserver-xephyr doxygen dbus-x11 \
libxml2-dev libxslt1-dev shared-mime-info libical-dev libgif-dev libssl-dev \
libboost-dev libboost-program-options-dev libboost-graph-dev libgpgme11-dev \
libvlccore-dev  libxine-dev libqimageblitz-dev libbz2-dev libdbus-1-dev libpam0g-dev \
libpcre3-dev libkrb5-dev libsm-dev libclucene0ldbl libclucene-dev \
libxtst-dev xsltproc libxrender-dev libfontconfig1-dev automoc librdf0-dev \
libdbusmenu-qt-dev docbook-xsl docbook-xml libattica-dev libqtwebkit-dev \
shared-desktop-ontologies libphonon-dev libqt4-dev dbus-x11 \
libstreamanalyzer-dev libstrigiqtdbusclient-dev libxml2-dev libxslt1-dev \
librdf0-dev libjasper-dev libopenexr-dev libacl1-dev libsasl2-dev

[edit] 4.10

This (along with the command for 4.x above) installs all compilation requirements for kde 4.10. Some additional packages may be required for 4.10. See the sections below for other packages to install.

sudo aptitude install libx11-xcb-dev libxcb-composite0-dev libxcb-damage0-dev \
libxcb-xfixes0-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync0-dev \
libxcb-image0-dev libxcb-render-util0-dev libqjson-dev virtuoso-minimal \
libavcodec-dev libavformat-dev libavdevice-dev libavutil-dev \
libswscale-dev libpostproc-dev libtag1-dev  libgstreamer0.10-dev \
libgstreamer-plugins-base0.10-dev

[edit] 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.

sudo aptitude install graphviz libxml2-utils libopenexr-dev libjasper-dev libenchant-dev \
libavahi-common-dev libaspell-dev libasound2-dev libldap2-dev libsasl2-dev \
libsmbclient-dev libxkbfile-dev libxcb1-dev libxklavier-dev libxdamage-dev \
libxcomposite-dev libbluetooth-dev libusb-dev network-manager-dev \
libsensors4-dev libnm-util-dev libcfitsio3-dev libnova-dev libeigen2-dev \
libopenbabel-dev libfacile-ocaml-dev libboost-python-dev libsvn-dev libsvncpp-dev \
libqt4-dev libqca2-dev libstreamanalyzer-dev libstrigiqtdbusclient-dev \
libcommoncpp2-dev libidn11 libidn11-dev libpci-dev libxss-dev libxft-dev \
libpolkit-agent-1-dev libpolkit-backend-1-dev libpolkit-gobject-1-dev git libpoppler-qt4-dev \
libspectre-dev

[edit] 4.5

sudo aptitude install libv4l-dev # for kdenetworks
sudo aptitude install liblcms1-dev # for kdegraphics

[edit] 4.4

(Nothing extra needed)

[edit] kdelibs dependencies

[edit] Optional packages

  • libasound2-dev - The Alsa sound system
  • libaspell-dev - spell checking support (in kwrite etc)
  • libavahi-common-dev - avahi/zeroconf service discovery
  • libenchant-dev - spell checking wrapper library
  • libjasper-dev - image processing library
  • libopenexr-dev - image processing library
  • libxml2-utils - used to validate generate doc files
sudo aptitude install libasound2-dev libaspell-dev \
libavahi-common-dev libenchant-dev libjasper-dev libopenexr-dev \
libxml2-utils

[edit] kdepimlibs dependencies

There are no additional optional dependencies

[edit] kdebase dependencies

[edit] kdebase-apps optional

  • libxcb1-dev - X C binding - Used for video widget support in xine
  • libxkbfile-dev - keyboard configuration package
  • libsmbclient-dev - for samba support in kde4
sudo aptitude install libsmbclient-dev libxkbfile-dev libxcb1-dev

[edit] kdebase-workspace optional

  • libsmbclient-dev - for samba support in kde4
  • network-manager-dev - Can be used by solid for network management
  • libusb-dev - for usb support in solid
  • libbluetooth-dev - for bluetooth support in solid
  • libxcomposite-dev - for compositing support in kwin
  • libxdamage-dev - for compositing support in kwin
  • libxklavier-dev - virtual keyboard
  • libsensors-dev - Support for hardware sensors (eg, temperature, fans)
  • libpam0g-dev - Authentication module
  • libnm-util-dev - needed to build solid with network manager
sudo aptitude install libxklavier-dev libxdamage-dev libxcomposite-dev \
libbluetooth-dev libusb-dev libcaptury-dev network-manager-dev \
libsmbclient-dev libsensors-dev libpam0g-dev libnm-util-dev

[edit] kdegraphics

  • libpoppler-qt4-dev - PDF support in Okular
  • libspectre-dev - postscript support in Okular
  • liblcms1-dev
  • libexiv2-dev - to build Gwenview

[edit] kdeedu

The following packages are recommended if you intend to use kstars:

  • libfacile-ocaml-dev - used by kalzuim.
  • libboost-python-dev - optional for kig.
  • libreadline-dev - Gives kalgebra a console interface.
  • libopenbabel-dev - used by kalzium.
  • libeigen2-dev - used by kalzium.
  • libusb-dev - Provides KStars INDI support.
  • libcfitsio3-dev - Gives KStars support for FITS images.
  • libnova-dev - A general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library for KStars.
sudo aptitude install libusb-dev libcfitsio3-dev libnova-dev libeigen2-dev \
libopenbabel-dev libfacile-ocaml-dev libboost-python-dev

[edit] koffice

  • libqca2-dev - qt cryptographic support.

[edit] kdepim

  • libqca2-dev - qt cryptographic support.

[edit] kdenetwork

  • libqca2-dev - qt cryptographic support. Used for jabber protocol.

[edit] kdevplatform

  • libsvn-dev
  • libboost-serialization-dev

[edit] kdevelop

  • kdevplatform-dev
  • kdebase-workspace-dev

[edit] Other

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 third-party XMMS package repository.


This page was last modified on 23 December 2013, at 09:29. This page has been accessed 91,716 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal