Tips for compiling KDE 4.1 from FreeBSD ports

KDE I'm planning on doing a more comprehensive review of the KDE 4.1 desktop for Unix-like systems at some point in the next few weeks, but I thought I'd pass on a helpful hint to those trying to compile it from the FreeBSD ports system. If you see the following within the lines of errors it halts with:

gmake: *** [] Error 1*** Error code 2

Stop in /usr/ports/devel/gio-fam-backend.

… it's probably a good indication you're running with an older version of glib installed; if you're running a system with the base ports system, this is quite normal. As far as I know, gio-fam-backend needs glib 1.6 or higher to build properly.

To fix it, navigate to the latest version of the glib C libraries in /usr/ports/devel/glib20 and do the usual make install clean. Now you should be able to build KDE 4.1 without trouble.