%general-entities; ]> $LastChangedBy$ $Date$ KDE4 Pre-installation Configuration Dependencies KDE4 is a huge software collection providing a desktop, tools for system and development tasks as well as fun and educational stuff. It makes use of a tremendous amount of non-KDE packages. While nearly all of those packages are optional, some others are are highly recommended like . The following list of packages should give you an overview about those packages and you may want to consider to install them first. Installing this packages will switch on some useful features in the resulting KDE4. Nevertheless the dependencies are shown on each of the following pages. QJSON (http://qjson.sourceforge.net) - Qt library for handling JavaScript objects. Unfortunatly, the release version 0.7.1 is to old to compile. Alternativly use the current SVN sources or apply a patch to bring the release to a usable status. Compile it using cmake -DCMAKE_INSTALL_PREFIX=/usr && make && make install in its own build directory. libgps (http://gpsd.berlios.de/) - interface to GPS devices (kdeedu) Compile it the usual way configure && make && make install. eigen2 (http://eigen.tuxfamily.org/) - a C++ template library for linear algebra Compile it using cmake -DCMAKE_INSTALL_PREFIX=/usr && make && make install. - a few command line utilities for working with desktop entries pySIP (http://www.riverbankcomputing.com/software/sip/intro) - Python Service Integration Platform Compile it python ./configure && make && make install. pyQT4 (http://www.riverbankcomputing.com/software/pyqt/) - Python interface to Qt4 (kdebindings) Compile it python ./configure && make && make install. - Ruby language (kdebindings) - Utility and library to show PDF files (kdegraphics) make sure the --enable-xpdf-headers switch is set - library handling calendar entries (kdepimlibs) pyCUPS (http://cyberelk.net/tim/data/pycups/) - Python interface to CUPS (kdeadmin) Compile it with make && make install. system-config-printer (http://cyberelk.net/tim/data/system-config-printer/) - Printer config (kdeadmin) Compile it the usual way configure && make && make install. - en-/decode internationalized domain names (kdenetwork) - Policy handling (nearly all of KDE) - Runtime dependency of polkit U-tools - udisks and upower instead of HAL and all of its dependencies: , , , , , , , and than and - iODBC library - a Universal Database - Image data processing library RDF tools - Handling of RDF data Including: , and - Text search engine - collection of free C++ libraries - Cryptographic library for Qt platform - Qt interface to D-Bus menue - object-oriented C++/Qt4 framework for RDF data - Desktop indexing engine Grantlee (http://www.grantlee.org) - a template system for Qt Compile it using cmake -DCMAKE_INSTALL_PREFIX=/usr && make && make install in its own build directory. Installing in /usr One option is to put KDE4 into the /usr hierarchy. This creates a simpler setup but is more difficult to try multiple versions of KDE4. export &kde4-dir-var;=/usr Installing in /opt A method of building multiple versions installs KDE4 in the /opt hierarchy: export &kde4-dir-var;=/opt/kde4 If you are not installing KDE4 in /usr, you will need to make some additional configuration changes. Best practice is to add those to your system or personal profile: cat > /etc/profile.d/kde4.sh <<"EOF" # Begin /etc/profile.d/kde4.sh &kde4-dir-var;=/opt/kde4 KDE4DIR=&kde4-dir; KDEDIR=&kde4-dir; pathappend &kde4-dir;/bin PATH pathappend &kde4-dir;/lib/pkgconfig PKG_CONFIG_PATH pathappend &kde4-dir;/share/pkgconfig PKG_CONFIG_PATH pathappend &kde4-dir;/share XDG_DATA_DIRS pathappend /etc/kde4/xdg XDG_CONFIG_DIRS export KDE4_PREFIX KDE4DIR KDEDIR export PATH PKG_CONFIG_PATH XDG_DATA_DIRS XDG_CONFIG_DIRS # End /etc/profile.d/kde4.sh EOF Add to your /etc/ld.so.conf: cat >> /etc/ld.so.conf << "EOF" # Begin kde4 addition to /etc/ld.so.conf /opt/kde4/lib # End kde4 addition EOF /etc/ld.so.conf Add to your /etc/man_db.conf: cat >> /etc/man_db.conf << "EOF" # Begin kde4 addition to man_db.conf MANDATORY_MANPATH /opt/kde4/man # End kde4 addition to man_db.conf EOF /etc/man_db.conf Sometimes, the installation pathes are patched into installed files. This is the reason why /opt/kde4 is used as installation prefix instead of /opt/kde-&kde4-version;. After installing KDE4, you may consider to rename the directory and create a symlink: mv /opt/kde{4,-&kde4-version;} && ln -v -sf kde-&kde4-version; /opt/kde4 Later on, you may want to install other versions of KDE4. To do that, just remove the symlink and use /opt/kde4 as prefix again (KDE4 must not be started). Which version of KDE4 you use depends only on where the symlink points to. No other reconfiguration will be needed. The QT4DIR variable Some additional packages which are based on Qt4 will be installed. One of them is Phonon, a direct replacement of the implementation which comes with Qt4. It's recommended to place such libraries in the same hierarchy where Qt4 itself resides. Later on, it is refered to QT4DIR. If you have placed Qt4 in /usr, set QT4DIR: export QT4DIR=/usr Alternativly, Qt4 is often placed in the /opt hierarchy: export QT4DIR=/opt/qt-&qt4-version; export PATH=$QT4DIR/bin:$PATH