Original von orangejusty
I always seem to get an error message saying something about not having KDE headers in the prefix I chose.
Probably it means just that. You're missing the header files.
They are packaged separately in most distributions. Make sure
you install the development packages for the KDE packages.
E.g., for the package kdelibs it's probably called kdelibs-devel,
for kdebase it's kdebase-devel,
and so on...