Logged In: YES
user_id=575030
Originator: NO

For KDE, you'd install:
qt3-dev-tools kdelibs-dev
and possibly:
libqt3-mt-dev kdebase-dev

When I tried to compile from source on Kubuntu Hardy Heron RC, the other packages I installed were:
build-essential
xlibs-dev xorg-dev
And, if build-essential doesn't include them:
autoconf automake1.8 gcc-3.4 gpp
(er, automake probably doesn't need to specifically be 1.8)

One other I installed that I'm not sure I needed was:
xserver-xorg-dev

After installing, if you're compiling 2.0.5 or earlier, need to edit "admin/cvs.sh" to recognize autoconf 2.6* and autoheader 2.6*.