Last modified: 23 Nov 2004 | Contact: Stefan Hundhammer

# Building KDirStat for KDE 3.x

## Note:
If you are using the latest SuSE Linux , you may not have to build it at all. There usually is an RPM package you can use at the download area. See also the KDirStat home page.

- Get the latest sources - either the tarball from the download area or via anonymous CVS from SourceForge.

- Make sure you have a development system up and running.

  You'll need at least:

  - A C++ compiler
  - Header files for the system libs
  - X11 development environment (libs and header files)
  - Qt 3.0 (or later) development environment
  - KDE 3.x development environment

  - maybe more. If you are unsure and you are running SuSE Linux, it might be a good idea to install the development system selection.

  Please understand that I cannot and will not fix everybody's broken development systems any more - this had taken me quite some time with KDirStat 0.8x. Please make sure you can compile simple KDE programs like kless or kexample before contacting me about build problems.

- Unpack the sources:

          tar xjvf kdirstat-2.4.2.tar.bz2

  (or whatever version you downloaded)

- Go to this directory:

          cd kdirstat-2.4.2

- Make sure I didn't accidentially include a config.cache file in the tarball - remove it to make sure. This is a neverending cause of trouble.

          rm -f config.cache

- Let the configure script figure out where everything required is on your system.

  Watch out for error messages and fix them before reporting errors!

  On SuSE Linux systems, KDE 3.x is installed to /opt/trinity which is a good idea if you want to keep some KDE 1.x/2.x programs around. So use that /opt/trinity prefix for KDirStat, too - otherwise it will be installed to /opt/kde and clutter up a working KDE 1.x/2.x environment.

          ./configure --prefix=/opt/trinity

  If you don't care about that or if you set up KDE 3.x in /opt/kde anyway, simply type

          ./configure

- Compile everything:

          make

  Again, watch out for error messages.

- If everything worked out allright, become root and install the program and everything it needs:

          su
          make install

  Don't do this if the previous step reported errors!

That's it.