Additional macOS installers of KDE applications are available at https://cdn.kde.org/ci-builds/ .
== Building KF5 based software ==
See also https://apps.kde.org/platforms/macos .
* Install Qt (use the official Qt installer, recommended version Qt >= 5.6)
== Install KDE apps on macOS ==
* Install Python >= 3.5 (using the pkg installer from http://python.org)
[[File:MacOS-gatekeeper-warning.jpg|thumb|alt=Message dialog: "Apple can’t check app for malicious software"]]
* Install homebrew and get some basic dependencies (http://brew.sh/)
Apple is very strict about running apps downloaded from the internet. KDE apps are signed, but for technical limitations on the KDE infrastructure not yet notarized. Notarization means that the app is send to Apple to check it.
* Prepare some build directory in your home directory, here we assume:
Hence you will likely see a message "Apple can’t check app for malicious software" when trying to open a KDE app.
mkdir ~/kf
* Switch to this build dir
To open your app anyway follow these steps:
cd ~/kf
* Get the unix3 branch of KDE emerge
# In the Finder on your Mac, locate the app you want to open. Don’t use Launchpad to locate the app.
git clone --branch unix3 kde:emerge
# Open the shortcut menu by right-click to the app icon or by holding the <keycap>Control</keycap> key and left-click.
# Choose <menuchoice>Open</menuchoice> from the shortcut menu.
# A message dialog opens. Click Open.
* Copy Mac OS X config template to right location, should be OK to use out of the box
The app is saved as an exception to your security settings, and from now on you can open it at any time by double-clicking it, just as you do with any registered app.
mkdir etc
cp emerge/kdesettings.mac etc/kdesettings.ini
* Setup environment (path must contain your Qt install, here 5.7 default location and brew's gettext)
For further instructions see Apples support page: https://support.apple.com/guide/mac-help/mchleab3a043/mac
* In this shell, now emerge is usable, e.g. to build Kate with all dependencies:
<br clear=all>
emerge kate
* To create a app bundle (+ dmg file), you need to have the breeze-icons around:
== Getting in Touch ==
emerge breeze-icons
* To do deploy all things, unfortunately at the moment you need a patched macdeployqt. Example scripty for kate can be found on [https://quickgit.kde.org/?p=kate.git&a=blob&f=mac%2Femerge-deploy.sh kate.git/mac/emerge-deploy.sh]
== Installing KDE software via MacPorts/Fink/Homebrew ==
=== Installing using MacPorts ===
* http://www.macports.org/
As of June 2016, the latest available and supported version is KDE SC 4.14.3.
Instructions are provided on TechBase for [https://techbase.kde.org/Getting_Started/Build/Mac_OS_X/MacPorts installing a development environment using MacPorts]. If you want a user installation then just skip the final 'Configure your KDE development environment' section.
Additional information:
* [https://techbase.kde.org/Getting_Started/Build/Mac_OS_X/MacPorts KDE Techbase page on getting started with MacPorts]
* [https://trac.macports.org/wiki/KDE Wiki page on macports.org about KDE software in general]
* [https://trac.macports.org/wiki/KDEProblems Wiki page on macports.org about current problems with KDE software]
=== Installing using Fink ===
* http://www.finkproject.org/
As of June 2016, the latest available and supported version is KDE SC 4.14.6.
The Fink packages allow you to install KDE SC 4 as either Qt/X11 or Qt/Mac (native) packages by selecting either packages ending in "-x11" or "-mac", for example "kdebase4-x11" and "kdebase4-mac".
Additionally, the Fink packages allow the running of the Plasma desktop in X11 mode. Just install "kdebase4-workspace-x11" to install it.
The Fink KDE software packages will be installed in /sw/opt/kde4/x11 or /sw/opt/kde4/mac respectively. They also are able to start D-Bus for you as long as you run "/sw/bin/init.sh" normally, or when you open a terminal, if you have run the path setup script in the Fink installer.
=== Installing using Homebrew ===
==== Installing KDevelop and Kate using Homebrew (KDE4-based) ====
* https://github.com/adymo/homebrew-kde
As of June 2016, the latest available and supported version is KDE SC 4.14.3.
You can tap this repository into your homebrew. It installs the following apps and all their dependencies:
* KDevelop
* Kate
* Konversation
* Massif Visualizer
Please carefully follow installation instructions on that above page.
==== Installing KDE Frameworks 5 using Homebrew ====
* https://github.com/haraldF/homebrew-kf5
As of June 2016, the latest available and supported version is KDE SC 5.22.0.
You can tap this repository into your homebrew. It adds KDE Frameworks 5 packages (and all their dependencies) and some applications that already make use of them (e.g. Kate and Kwrite). As of March 28th, 2014 the repository still is experimental as the developer tries to get them into a working state. Hints and patches are welcome.
* IRC: [irc://irc.libera.chat/kde-mac #kde-mac] on Libera Chat
Please see the distribution notes for MacPorts / Fink / Homebrew formulas you are using. You may need to run the following steps once after installation:
Apple is very strict about running apps downloaded from the internet. KDE apps are signed, but for technical limitations on the KDE infrastructure not yet notarized. Notarization means that the app is send to Apple to check it.
Hence you will likely see a message "Apple can’t check app for malicious software" when trying to open a KDE app.
To open your app anyway follow these steps:
In the Finder on your Mac, locate the app you want to open. Don’t use Launchpad to locate the app.
Open the shortcut menu by right-click to the app icon or by holding the Control key and left-click.
Choose Open from the shortcut menu.
A message dialog opens. Click Open.
The app is saved as an exception to your security settings, and from now on you can open it at any time by double-clicking it, just as you do with any registered app.