If you're interested in just checking things out, binaries for kdelibs and parts of KDE in general are available at http://kde.mac.org and are generated semi-regularly.

+

}}

*Note: You may wish to do all of this inside a directory name that ends in ''.noindex'' or ''.build'' to keep spotlight from indexing all of your temporary build-files as you build them.

*Note: You may wish to do all of this inside a directory name that ends in ''.noindex'' or ''.build'' to keep spotlight from indexing all of your temporary build-files as you build them.

+

+

<syntaxhighlight lang="text">mkdir ~/kde4.build

+

cd ~/kde4.build</syntaxhighlight>

+

+

== MacPorts or Fink ==

+

The best method for currently installing KDE on Mac is to use either Macports or Fink to build at least the system requirements and then also install their stable KDE, or build your own development KDE using on top of their base.

+

+

You can find out more information on the [[/MacPorts| KDE on MacPorts]] page.

+

+

== Setting Up Your Build Environment ==

+

Variables must be set to build KDE successfully, and are noted below

+

*Note: Replace /opt/kde4-deps with the location of your 3rd-party tools, and add your cmake location if you compiled from source

* For Fink users: 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!

+

* For others: run ''sudo gcc_select 4.0'' if you want to be compatible with the pre-made installers.

== Required Third Party Tools ==

== Required Third Party Tools ==

−

The following third party tools are required for successfully building KDE on OSX. Many of these libraries can be found pre-compiled in kdesupport.pkg, stringi.pkg, blitz.pkg and soprano.pkg, which can be found here: http://ranger.users.finkproject.org/kde/index.php/Home.

+

The following third party tools are required for successfully building KDE on OSX. Also, here are some [[Getting_Started/Build/KDE4/LFS| good tips for installing from source]]. I assume you have OS X 10.5 or 10.6 installed, otherwise you would have some more dependencies.

./autogen.sh --prefix=/opt/kde4-deps/ ## THIS IS WHERE I GET STUCK (entriken 2010-08-20)</syntaxhighlight>

+

* shared-mime-info

* AGG

* AGG

−

* bzip2

* giflib or libungif

* giflib or libungif

* libart_lgpl

* libart_lgpl

Line 15:

Line 87:

* libmng

* libmng

* libpng

* libpng

−

* libxml2

−

* libxslt

* libusb

* libusb

* OpenEXR

* OpenEXR

* PCRE

* PCRE

* Strigi

* Strigi

−

* shared-mime-info

* pkgconfig

* pkgconfig

−

* subversion (to check out the kde sources)

* dbus

* 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.

Contents

The best method for currently installing KDE on Mac is to use either Macports or Fink to build at least the system requirements and then also install their stable KDE, or build your own development KDE using on top of their base.

For Fink users: 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!

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

The following third party tools are required for successfully building KDE on OSX. Also, here are some good tips for installing from source. I assume you have OS X 10.5 or 10.6 installed, otherwise you would have some more dependencies.