KDE TechBase
  • Page
  • Discussion
  • Edit
  • History
KDE TechBase is a Wiki - You can help! Please contribute! Questions?
Please ask development related questions in the KDE Community Forum.

Getting Started/Build/KDE4/LFS

< Getting Started | Build | KDE4
Revision as of 10:53, 27 October 2009 by JRT (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenščina | српски | Українська | 简体中文 | 繁體中文

Building KDE4 From Source (LFS or to build from sources)
Tutorial Series   Getting Started
Prerequisites   Build KDE4.x
What's Next   Build KDE4.x
Further Reading   Introduction to CMake

Contents

  • 1 CMake
  • 2 Library Requirements
    • 2.1 DBus
    • 2.2 Qt
    • 2.3 QCA-2.0.2 (crypto add on for Qt)
    • 2.4 GMM
    • 2.5 Qzion and Qedjie
    • 2.6 Eigen2
    • 2.7 KDESupport
  • 3 Other Useful Libraries
    • 3.1 shared-mime-info
    • 3.2 Boost C++ Libraries
    • 3.3 KIPI Plugins
    • 3.4 {More to be added}

CMake

KDE-4 and many supporting libraries use CMake.

Install the latest version from cmake.org

Library Requirements

DBus

Install the latest version from freedesktop.org

http://www.freedesktop.org/wiki/Software

Qt

Use kde-qt for TRUNK:

git clone git://gitorious.org/+kde-developers/qt/kde-qt.git

Use 4.5.3 for BRANCH or a 4.x.y release.

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

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.

QCA-2.0.2 (crypto add on for Qt)

Do not use the one in KDESupport or KDE's SVN.

Download the current release of qca from:

http://delta.affinix.com/download/qca/2.0/

and the plugins:

qca-cyrus-sasl
qca-gnupg
qca-ossl

from:

http://delta.affinix.com/download/qca/2.0/plugins/

NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:

http://home.earthlink.net/~tyrerj/kde/KDE-4/qca-ossl.patch

GMM

If you don't have Getfem++ installed, get the current release of GMM from:

http://home.gna.org/getfem/download.html

Qzion and Qedjie

Get them:

http://code.openbossa.org/projects/qedje/pages/Home

and the the dependency EET here:

http://download.enlightenment.org/releases/

PROBLEM: The current KDE-4.3 BRANCH requires QEdje >= 0.4.0 which depends on QZion >= 0.4.0 and the 0.4.0 release of QZion will not build.

If it won't build, check line 13 of the file:

... /qzion-mainline/python/qzion/qzionobject.sip

It should be:

const char *name;

Eigen2

Get the current 2.0.x release from:

http://eigen.tuxfamily.org

KDESupport

For TRUNK, use:

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

For 4.x BRANCH or release:

Use the SVN tag that matches your KDE version. E.G. for 4.3:

svn co svn://anonsvn.kde.org/home/kde/tags/kdesupport-for-4.3/kdesupport

NOTE: You may need to add variables to the CMake command:

-DENABLE_FAM:BOOL=ON
-DENABLE_EXPAT:BOOL=ON
-DENABLE_INOTIFY:BOOL=ON
-DGAIM_LIBS:STRING=<path>/lib
-DGAMIN_LIBRARIES:STRING=<path>/lib

Other Useful Libraries

shared-mime-info

Get the current release from:

http://www.freedesktop.org/wiki/Software/shared-mime-info

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 needs to be looked into, but this workaround does seem to work.

Boost C++ Libraries

Instructions to build from source are here:

http://cblfs.cross-lfs.org/index.php/Boost

Remember to install BJam first:

http://cblfs.cross-lfs.org/index.php/BJam

Now you will have links of the form:

libboost_<library_name>-gcc<version>-mt.so

These will not be found by KDE packages when building against the boost library. You need to either rename them or make coppies of them without the GCC version:

libboost_<library_name>-gcc-mt.so
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.

There are issues building version 0.7.0. To get it to build, you need to add these paramaters to the "cmake" command line:

-DKEXIV2_LOCAL_FOUND:FILEPATH=<prefix>/include/libkexiv2/kexiv2.h
-DKDCRAW_LOCAL_FOUND:FILEPATH=<prefix>/include/libkdcraw/kdcraw.h
-DKDCRAW_LOCAL_FOUND_IN_LIBS:FILEPATH=<prefix>/lib/libkdcraw.so
-DKIPI_LOCAL_FOUND:FILEPATH=<prefix>/include/libkipi/plugin.h

where <prefix> is the $KDEDIR -- where you installed KDE.

{More to be added}
Retrieved from "http://techbase.kde.org/Getting_Started/Build/KDE4/LFS"
Category: Tutorial

Navigation

  • Home
  • Help
  • Recent changes

Sections

  • Getting started
  • Development
  • Schedules
  • Policies
  • Contribute
  • Projects

Toolbox

  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link

Personal tools

  • 38.107.191.98
  • Talk for this IP
  • Log in / create account
  • Login with OpenID
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