Please ask development related questions in the KDE Community Forum.
Getting Started/Build/KDE4/LFS
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 | српски | Українська | 简体中文 | 繁體中文
| Tutorial Series | Getting Started |
| Prerequisites | Build KDE4.x |
| What's Next | Build KDE4.x |
| Further Reading | Introduction to CMake |
Contents |
CMake
KDE-4 and some supporting libraries use CMake.
Install the latest version from cmake.org
Library Requirements
DBus and HAL
You need:
- DBus
- DBus-Glib
- HAL
- HAL-Info
- PolicyKit
- EggDBus
- polkit
- ConsoleKit
installed on your system with proper configuration.
See: BLFS for build and configure instructions.
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.
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:
and the plugins:
- qca-cyrus-sasl
- qca-gnupg
- qca-ossl
from:
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:
GMM
If you don't have Getfem++ installed, get the current release of GMM from:
Qzion and Qedjie
Get them:
and the the dependency EET here:
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:
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 these parameters to the CMake command line:
- -DENABLE_FAM:BOOL=ON
- -DENABLE_EXPAT:BOOL=ON
- -DENABLE_INOTIFY:BOOL=ON
- -DGAIM_LIBS:STRING=<path>/lib
- -DGAMIN_LIBRARIES:STRING=<path>/lib
shared-mime-info
Get the current release from:
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:
Remember to install BJam first:
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:
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.
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.
