Required Third Party Tools

The following third party tools are required for successfully building KDE on OSX.

AGG

bzip2

giflib or libungif

libart_lgpl

libidn

libjpeg

libmng

libpng

libxml2

libxslt

libusb

OpenEXR

PCRE

Strigi

shared-mime-info

pkgconfig

subversion (to check out the kde sources)

dbus

Verify Compiler Version

Fink: If your Distribution line in /sw/etc/fink.conf is 10.4-transitional, instead of 10.4, make sure you run sudo gcc_select 3.3 before proceeding with any compiling, or you will end up with binary-incompatible c++ code!

Manual: run sudo gcc_select 4.0 if you want to be compatible with the pre-made installers.

Building kdelibs

kdelibs must be checked out of svn locally to be built:
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs
And then compiled by performing the following:
mkdir kdelibs.build
cd kdelibs.build
cmake ../kdelibs -DCMAKE_INSTALL_PREFIX=/opt/kde4
make all install