This page is accurate as of 2006-08-08 for building KDE stable 3.5.4. Other pages contain similar information are are being consolidated to here. Similar pages include:
The current version of KDE stable is 3.5.4. You will want to build KDE stable if you are a maintainer for an OS distribution. Otherwise, you may want to install KDE stable using the tools provided by your OS distribution or vendor.
The current recommended way to install KDE stable is Konstruct, a build system which helps you to install KDE releases and applications on your system. It downloads defined source tarballs, checks their integrity, decompresses, patches, configures, builds and installs them. A complete KDE installation should be as easy as "cd meta/kde;make install".
By default "Konstruct" installs to your home directory which means you don't have to possess root privileges or risk to damage your system or affect another KDE.
Currently it gives a complete KDE 3.5.4 installation. Optionally you can install additional applications like KOffice 1.5.2 or KDevelop 3.3.4.
The following instructions describe how to build KDE 3.5.x yourself, e.g. without using Konstruct or kdesvn-build.
To compile KDE you need:
In order to run KDE applications, you need the Qt, arts, and kdelibs packages. For a simple desktop (with a window manager, panel, etc), you will also need kdebase. The other packages contain many other applications by topic: networking, graphics, multimedia, games, utilities, toys, software development, etc.
You can find the Qt library (version 3.3.6) at ftp://ftp.trolltech.com/qt/source/
KDE 3.5.x is available from ftp://download.kde.org/pub/kde/stable/
Unlike most compiled software, Qt is compiled in the place where it will stay instead of using a 'make install'. Please read the INSTALL instructions in the Qt package. You need to set the QTDIR and KDEDIR to the locations where Qt and KDE will be installed, respectively. Also, append $QTDIR/bin and $KDEDIR/bin to your $PATH and $LD_LIBRARY_PATH. Alternatively, instead of using $LD_LIBRARY_PATH, you may add your Qt and KDE library paths to /etc/ld.so.conf, but don't forget to run ldconfig as root after installing Qt and kdelibs, otherwise configure scripts will fail to find the newly installed libraries!
If your distribution sets $XDG_DATA_DIRS and/or $XDG_CONFIG_DIRS you will want to update them to include the correct $KDEDIR/share/ resp. $KDEDIR/etc/xdg/
bunzip2 qt-x11-3.3.6.tar.bz2 tar xvf qt-x11-3.3.6.tar cd qt-x11-3.3.6 less INSTALL (Set up QTDIR, KDEDIR, PATH, LD_LIBRARY_PATH, XDG_DATA_DIRS and XDG_CONFIG_DIRS) cd $QTDIR ./configure -system-zlib -qt-gif -system-libpng \ -system-libjpeg -plugin-imgfmt-mng -thread -no-stl \ -no-xinerama -no-g++-exceptions make
Note that -thread is required (KDE will not run or even compile if you omit it), that -no-xinerama is only if you're not using xinerama, and -no-g++-exceptions is strongly recommended if you're using gcc.
Make sure to compile and install first arts, and afterwards kdelibs before any other packages. Also, if you want to use kdeaddons, it should be compiled last as it requires kdebase, kdemultimedia, etc.
For each KDE package:
bunzip2 <package>.tar.bz2 tar xvf <package>.tar cd <package> ./configure make make install
* If compiling on a system where GNU make is not the default make (that is, most systems other than Linux), please run 'gmake && gmake install' instead of 'make && make install'. * All packages mentioned here have to be compiled with the same compiler! * See the 3.5 Info Page for some common encountered problems when running KDE 3.5.