Last modified: 05 Feb 2002 Contact: Stefan Hundhammer

Building KDirStat for KDE 2.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.

Normal Build (no Treemap support)

That's it.

Building with Treemap Support

Since June, 2001, KDirStat supports a fancy new way of displaying disk usage: Treemaps. This is still work in progress and to be considered experimental - use at your own risk.

Some time in August 2001, Alexander Rawass, the author of KDirStat's treemap part, decided to move a large part of this out to a separate project. He split off a generic part QTreeMap which became a separate project at SourceForge.

The problem with this decision is that from now on you need that separate QTreeMap lib (i.e. you need to download it from SourceForge and build and install it separately) - and you need versions of QTreeMap and its counterpart in KDirStat, KTreeMap, that are compatible with one another - which they more often than not are not, causing weird linker errors.

Because of that, I decided to make this part optional and exclude it by default.

Thus, if you wish to include that part, you need to explicitly request treemap support at configure time:

    ./configure --enable-treemaps

or (for SuSE Linux systems):

    ./configure --prefix=/opt/kde2 --enable-treemaps

All the rest is just like described above.

The --enable-treemaps option creates some symbolic links to the treemaps/ subdirectory, so you will need to remove them if you ever choose to build without treemaps. You can either remove those links manually or explicitly configure without treemaps:

    ./configure --disable-treemaps

or (for SuSE Linux systems):

    ./configure --prefix=/opt/kde2 --disable-treemaps

Troubleshooting

If you get weird linker errors, especially after enabling / disabling treemap support, try


	cd kdirstat
	./fix-linker-trouble
	cd ..
	make

This may or may not work. If it doesn't after enabling treemap support, most likely your versions of QTreeMap and KDirStat's KTreeMap are incompatible. In this case, disable treemap support.