'''NOTE: This page was a totally out of date. The instructions in the BLFS book are now what I would recommend you use. So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10'''|

HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS. So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.

+

−

+

−

Some of these libraries are dependent on:

+

−

+

−

::<b>Linux-PAM-1.1.1

+

−

::Shadow-4.1.4.2</b>

+

−

+

−

which should be installed and configured according to the BLFS instructions.

+

−

+

−

===DocBook DTD===

+

−

+

−

KDE-4 still requires version 4.2 of:

+

−

+

−

::DocBook SGML DTD

+

−

::DocBook XML DTD.

+

−

+

−

See the instructions in this old version of BLFS:

+

−

+

−

::http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/

+

−

+

−

===Boost C++ Libraries===

+

−

+

−

Get the current release (e.g. boost_1_42_0.tar.gz) here:

+

−

+

−

::http://sourceforge.net/projects/boost/files/boost/

+

−

+

−

=====Build=====

+

−

+

−

The current release eliminates the arcane naming issues. Although not the same as using autotools, it is now simple to build and install.

+

−

+

−

Remove the includes from previous versions:

+

−

+

−

::/usr/include/boost_<version>

+

−

+

−

and if you have a link:

+

−

+

−

::/usr/include/boost

+

−

+

−

remove that also.

+

−

+

−

Then:

+

−

+

−

::./bootstrap.sh --prefix=/usr

+

−

::./bjam install

+

−

+

−

===CLucene===

+

−

The CLucene developers suggest using the GIT repository since there are no recent releases. However, KDE-4 currently depends on the last (old) release:

This installs as Qt-<version>, so when it updates to the next version, it won't install in the same place. This means that you will need to change the <version> any place where it is specified. You will also have to install QCA (and its plugins) again when the version changes.

+

−

+

−

=====KDE >= 4.4=====

+

−

+

−

You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.6.x from Nokia:

+

−

+

−

::http://qt.nokia.com/downloads/linux-x11-cpp

+

−

+

−

=====BRANCH up to 4.3 or a release up to 4.3.x=====

+

−

+

−

Use 4.5.3:

+

−

+

−

::http://qt.nokia.com/downloads/downloads#lgpl

+

−

+

−

Or a newer release (see above). A newer release may have issues.

+

−

+

−

=====Build=====

+

−

+

−

You will probably need to use some options for configuring Qt. Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed. Run:

+

−

+

−

./configure --help

+

−

+

−

to see the options. There are a lot of them, but the defaults work for most of them.

Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version. Remove it from KDESupport SVN:

+

−

+

−

::svn rm taglib

+

−

+

−

And install the current release from:

+

−

+

−

::http://developer.kde.org/~wheeler/taglib.html

+

−

+

−

NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:

+

−

+

−

::HAVE_CXX="yes"

+

−

+

−

before you run: "configure".

+

−

+

−

=====QCA=====

+

−

+

−

The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:

+

−

+

−

::svn rm qca

+

−

+

−

=====Phonon=====

+

−

+

−

For KDE Support >= 4.5:

+

−

+

−

The Phonon TRUNK has moved to Gitorious. To use the GIT TRUNK instead of the version in KDE Support first remove if from KDE Support:

+

−

+

−

::svn rm phonon

+

−

+

−

See below

+

−

+

−

=====Build=====

+

−

+

−

The current KDESupport may not be compatible with LFS installed FFmpeg. Use this patch:

You need to install this with the same prefix as KDE4 (even if you already have it installed in "/usr") to eliminate missing MIME type errors. Currently, KDELibs won't build unless you do this. And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.

+

−

+

−

This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.

+

−

+

−

===KIPI Plugins===

+

−

+

−

Get the current release from:

+

−

+

−

::http://sourceforge.net/projects/kipi/

+

−

+

−

This package is dependent on KDEGraphics. The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built. You should install it in the same directory where you installed KDE-4.x.y.

+

−

+

−

Be sure that you updated your: "PKG_CONFIG_PATH" to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):

+

−

+

−

::/opt/KDE-4/lib/pkgconfig

+

−

+

−

===Oxygen Icons===

+

−

+

−

If you checked out KDESupport from TRUNK or the TAG: "kdesupport-for-<version>", you have them.

+

−

+

−

If you checked out KDESupport from a tag "kdesupport-<version>" up to 4.3, you need to get them. If you are using SVN, that would be:

TRUNK and KDE-4.4 require libssh. Get the current release >= 0.4.0 from:

+

−

+

−

::http://www.libssh.org/

+

−

+

−

===Dependencies for specific KDE modules===

+

−

+

−

====KDEBindings====

+

−

+

−

=====SIP and PyQt=====

+

−

+

−

To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:

+

−

+

−

::http://www.riverbankcomputing.com/software/sip/download

+

−

::http://www.riverbankcomputing.com/software/pyqt/download

+

−

+

−

Install: "SIP" first and then: "PyQt". These are both Python add-ons so they install with:

+

−

+

−

::python configure.py

+

−

::make

+

−

::make install

+

−

+

−

=====Build Notes for PyQt=====

+

−

+

−

Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings. If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.

+

−

+

−

PyQt will find Qt based on your environment variables. So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:

+

−

+

−

::QTDIR

+

−

::QT_PLUGIN_PATH

+

−

+

−

KDEBindings is dependent on KDEGraphics (specifically Okular).

+

−

+

−

Other language dependencies are optional. If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.

+

−

+

−

=====QScintilla2=====

+

−

+

−

QScintilla2 is optional. If you are installing it, get it here:

+

−

+

−

::http://www.riverbankcomputing.com/software/qscintilla/download

+

−

+

−

Install it after SIP & PyQt. It has a Qt build system, so install for Qt4 it with:

+

−

+

−

::cd Qt4

+

−

::qmake qscintilla.pro

+

−

::make

+

−

::make install

+

−

+

−

====KDEEdu====

+

−

+

−

KDEEdu might be dependent on KDEBindings.

+

−

+

−

====KDENetwork====

+

−

+

−

<b>LibV4l</b>

+

−

+

−

Only required for KDE >= 4.4 and TRUNK

+

−

+

−

Get the current release here:

+

−

+

−

::http://people.fedoraproject.org/~jwrdegoede/

+

−

+

−

and follow the build instructions in the README file.

+

−

=====Optional Dependencies=====

+

==KDE-4.10.x==

+

===What to build===

−

<b>Telepathy-Qt4</b> is the Qt bindings for Telepathy. Since this has general usage, you should probably install it along with its semi-optional dependency <b>telepathy-glib</b>.

+

I will presume that you are at: '''Further KDE packages'''

−

Get the current releases here:

+

The first thing to note is that KDE is being broken up into individual packages. At least part of it is. BLFS from scratch hasn't quite kept up with that. So, you will find that there are no monolithic packages for:

−

::http://telepathy.freedesktop.org/releases/telepathy-glib/

+

:: Kdeaccessability

−

::http://telepathy.freedesktop.org/releases/telepathy-qt4/

+

:: Kdeartwork

+

:: Kdeedu

+

:: Kdegames

+

:: Kdegraphics

+

:: Kdemultimedia

+

:: Kdeutils

−

Install: "telepathy-glib" first and then: 'telepathy-qt4".

+

So, you are going to be installing individual packages based on what you want.

−

The output from CMake lists several other optional dependencies. It appears that these are needed to support specific functions in KDENetwork. So, if you need those functions, you need to install them. You will probably also need to install the corresponding Telepathy addons from here:

+

====Dependencies that BLFS missed====

−

::http://telepathy.freedesktop.org/releases/

+

=====XDG User Dirs=====

−

TO DO: more information needed.

+

=====PyXDG=====

Latest revision as of 07:23, 24 April 2013

Building KDE4 From Source (Linux From Scratch requirements)
NOTE: This page was a totally out of date. The instructions in the BLFS book are now what I would recommend you use. So, the old material has been deleted and will be replaced with notes on going beyond the BLFS book organized by minor KDE release number starting with KDE-4.10

Contents

The first thing to note is that KDE is being broken up into individual packages. At least part of it is. BLFS from scratch hasn't quite kept up with that. So, you will find that there are no monolithic packages for:

Kdeaccessability

Kdeartwork

Kdeedu

Kdegames

Kdegraphics

Kdemultimedia

Kdeutils

So, you are going to be installing individual packages based on what you want.