Getting Started/Build/Historic/KDE 3.3: Difference between revisions

From KDE TechBase
(migrate Compile KDE 3.3)
 
 
(5 intermediate revisions by 4 users not shown)
Line 6: Line 6:
* [ftp://ftp.gnu.org/pub/gnu/automake/ Automake 1.5] and [ftp://ftp.gnu.org/pub/gnu/autoconf/ Autoconf 2.5]
* [ftp://ftp.gnu.org/pub/gnu/automake/ Automake 1.5] and [ftp://ftp.gnu.org/pub/gnu/autoconf/ Autoconf 2.5]
* a C++ compiler which supports exceptions, preferably [http://gcc.gnu.org/gcc-2.95/gcc-2.95.3.html gcc-2.95.x] or [http://gcc.gnu.org/gcc-3.2/ gcc-3.2]
* a C++ compiler which supports exceptions, preferably [http://gcc.gnu.org/gcc-2.95/gcc-2.95.3.html gcc-2.95.x] or [http://gcc.gnu.org/gcc-3.2/ gcc-3.2]
* bunzip2 to decompress .bz2 files. You can find it [ftp://sourceware.cygnus.com/pub/bzip2/ here].  Get <code>libbz2</code> while you're at it, it enables reading of .tar.bz2 files in konqueror, and one day, will give access to .bz2 files to all KDE applications.
* bunzip2 to decompress .bz2 files. You can find it [ftp://sourceware.cygnus.com/pub/bzip2/ here].  Get <tt>libbz2</tt> while you're at it, it enables reading of .tar.bz2 files in konqueror, and one day, will give access to .bz2 files to all KDE applications.
* If you want SSL support (for instance for secure web sites in konqueror), make sure you install [http://www.openssl.org openssl], version 0.9.6 or later (versions 0.9.5x are ''not'' supported).
* If you want SSL support (for instance for secure web sites in konqueror), make sure you install [http://www.openssl.org openssl], version 0.9.6 or later (versions 0.9.5x are ''not'' supported).
* For Netscape-plugins support in konqueror, make sure to install [http://www.lesstif.org lesstif].
* For Netscape-plugins support in konqueror, make sure to install [http://www.lesstif.org lesstif].
* For a better regular-expressions support in Javascript, install [http://www.pcre.org libpcre].
* For a better regular-expressions support in Javascript, install [http://www.pcre.org libpcre].
* For the KDE help system, you'll need to install [http://xmlsoft.org libxml2], version 2.3.13 or newer.
* For the KDE help system, you'll need to install [http://xmlsoft.org libxml2], version 2.3.13 or newer.
* There are additional modules that are compiled if the required library is present, but they aren't critical to run KDE. For instance, <code>libldap</code> for the LDAP kioslave, and <code>cdparanoia</code> for the audiocd kioslave. A more detailed list of requirements is available in the [http://www.kde.org/info/requirements/3.3.php KDE 3.3 Requirements List]
* There are additional modules that are compiled if the required library is present, but they aren't critical to run KDE. For instance, <tt>libldap</tt> for the LDAP kioslave, and <tt>cdparanoia</tt> for the audiocd kioslave. A more detailed list of requirements is available in the [http://www.kde.org/info/requirements/3.3.php KDE 3.3 Requirements List]


== Download ==
== Download ==
Line 21: Line 21:


== Installation ==
== Installation ==
Unlike most compiled software, Qt is compiled in the place where it will stay instead of using a <code>make install</code>. Please read the INSTALL instructions in the Qt package.  You need to set the <code>QTDIR</code> and <code>KDEDIR</code> to the locations where Qt and KDE will be installed, respectively. Also, append <code>$QTDIR/bin</code> and <code>$KDEDIR/bin</code> to your <code>$PATH</code> and <code>$LD_LIBRARY_PATH</code>. Alternatively, instead of using $LD_LIBRARY_PATH, you may add your Qt and KDE library paths to <code>/etc/ld.so.conf</code>, but don't forget to run <code>ldconfig</code> as root after installing Qt and kdelibs, otherwise configure scripts will fail to find the newly installed libraries!
Unlike most compiled software, Qt is compiled in the place where it will stay instead of using a <tt>make install</tt>. Please read the INSTALL instructions in the Qt package.  You need to set the <tt>QTDIR</tt> and <tt>KDEDIR</tt> to the locations where Qt and KDE will be installed, respectively. Also, append <tt>$QTDIR/bin</tt> and <tt>$KDEDIR/bin</tt> to your <tt>$PATH</tt> and <tt>$LD_LIBRARY_PATH</tt>. Alternatively, instead of using $LD_LIBRARY_PATH, you may add your Qt and KDE library paths to {{path|/etc/ld.so.conf}}, but don't forget to run <tt>ldconfig</tt> as root after installing Qt and kdelibs, otherwise configure scripts will fail to find the newly installed libraries!


If your distribution sets <code>$XDG_DATA_DIRS</code> and/or <code>$XDG_CONFIG_DIRS</code> you will want to update them to include the correct <code>$KDEDIR/share/</code> resp. <code>$KDEDIR/etc/xdg/</code>
If your distribution sets <tt>$XDG_DATA_DIRS</tt> and/or <tt>$XDG_CONFIG_DIRS</tt> you will want to update them to include the correct <tt>$KDEDIR/share/</tt> resp. <tt>$KDEDIR/etc/xdg/</tt>
  bunzip2 qt-x11-3.3.3.tar.bz2
  bunzip2 qt-x11-3.3.3.tar.bz2
  tar xvf qt-x11-3.3.3.tar
  tar xvf qt-x11-3.3.3.tar
Line 35: Line 35:
  make
  make


Note that <code>-thread</code> is ''required'' (KDE will not run or even compile if you omit it), that <code>-no-xinerama</code> is only if you're not using xinerama, and <code>-no-g++-exceptions</code> is strongly recommended if you're using gcc.
Note that <tt>-thread</tt> is ''required'' (KDE will not run or even compile if you omit it), that <tt>-no-xinerama</tt> is only if you're not using xinerama, and <tt>-no-g++-exceptions</tt> 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.
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.
Line 48: Line 48:


;Note:
;Note:
* If compiling on a system where GNU make is not the default make (that is, most systems other than Linux), please run <code>gmake && gmake install</code> instead of <code>make && make install</code>.
* If compiling on a system where GNU make is not the default make (that is, most systems other than Linux), please run <tt>gmake && gmake install</tt> instead of <tt>make && make install</tt>.
* All packages mentioned here have to be compiled with the ''same'' compiler!
* All packages mentioned here have to be compiled with the ''same'' compiler!


See the [http://www.kde.org/info/3.3.html KDE 3.3 Info Page] for some common encountered problems when running KDE 3.3.
See the [http://www.kde.org/info/3.3.php KDE 3.3 Info Page] for some common encountered problems when running KDE 3.3.

Latest revision as of 19:52, 10 March 2016

This page explains how to download and install KDE 3.3.x from sources.

Requirements

To compile KDE you need:

  • Qt 3.3.0 or newer
  • Automake 1.5 and Autoconf 2.5
  • a C++ compiler which supports exceptions, preferably gcc-2.95.x or gcc-3.2
  • bunzip2 to decompress .bz2 files. You can find it here. Get libbz2 while you're at it, it enables reading of .tar.bz2 files in konqueror, and one day, will give access to .bz2 files to all KDE applications.
  • If you want SSL support (for instance for secure web sites in konqueror), make sure you install openssl, version 0.9.6 or later (versions 0.9.5x are not supported).
  • For Netscape-plugins support in konqueror, make sure to install lesstif.
  • For a better regular-expressions support in Javascript, install libpcre.
  • For the KDE help system, you'll need to install libxml2, version 2.3.13 or newer.
  • There are additional modules that are compiled if the required library is present, but they aren't critical to run KDE. For instance, libldap for the LDAP kioslave, and cdparanoia for the audiocd kioslave. A more detailed list of requirements is available in the KDE 3.3 Requirements List

Download

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.3) at ftp://ftp.trolltech.com/qt/source/

KDE 3.3.x is available from http://download.kde.org/stable/

Installation

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.3.tar.bz2
tar xvf qt-x11-3.3.3.tar
cd qt-x11-3.3.3
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
Note
  • 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 KDE 3.3 Info Page for some common encountered problems when running KDE 3.3.