Alpha Kate & KWrite Application Bundles


with my latest changes in kate.git, icons work, too, on windows and mac, without any qt patch, if you put some qt resource file containing breeze inside your share or Resources folder (one up from the application binary).

mac.txt contains the rcc calls needed to create such a package and all others things you need to run to get .dmg files. (you need Qt 5.5.0 + a recent CMake + XCode with command line stuff enabled)

Kate plugins should work, too, if you have a qt.conf that points to the local plugins (like macdeployqt will create for you in the mac.txt run).

Things not working ATM without patched Qt or more work: KIO slaves and all dbus related stuff.

With that in place, I consider Kate/KWrite on Mac at least of alpha quality. Still some plugins are missing, optimizations for the .dmg generation could be done like removing stuff we don’t use like QtWebKit from the bundle, but besides, the programs do something and don’t crash immediately, at least not on my Mac OS 10.10 installation.

Mandatory Screenshot :=)

Kate on Mac with some plugins

Links to Kate & KWrite .dmg files: (ALPHA quality still, only tested on Mac OS 10.10, now just with icons and some plugins and too many Qt libraries and plugins to make the .dmg large 🙂



P.S. Testers are welcome, but help of any other kind even more 😉 Given Kate/KWrite are trivial to build on a Mac with just XCode around and the stuff described in mac.txt it would be really GREAT if somebody could step up to help to fine tune this to have some more usable beta or even “real” release for Mac in the future. I will continue to work on this, but my Mac isn’t my main working machine nor what I use for my daily company work, therefore, this is not my highest priority.

KWrite on Mac – Application Bundle


after one week of patching frameworks (and KWrite/Kate), the first success can be seen: a kind of working application bundle for KWrite.

Still no icons, need to set icon theme + search paths right and bundle that, too, but need to investigate more how the icon lookup works.

KWrite on Mac

You can build the stuff on your own just following kate.git/mac.txt and calling once the macdeployqt tool afterwards on the /Applications/KDE/ bundle (with -dmg to get the disk image file).

For Kate, the macdeployqt still misses an additional switch to deploy own plugins in addition, will add that in the next days, I hope. Have already some local hack, but want to have some patch I can hand in to Qt Company.

Here a link to the version you see above in the screenshot (not tested below Mac OS 10.10):

A colleague tested it for me on a Mac without any dbus/macports/homebrew/co. stuff installed and it seems to work and not eat all his data ;=) But this is ALPHA quality,  this means all things can happen, I didn’t test it that much beside using it for my last kate.git commit and starting it up for that screenshot above, not more ;=)

The good things: This stuff needs no patched Qt nor any patches to any KF5 stuff, this uses plain Qt 5.5.0 from the Qt Company installer and all modifications for frameworks are inside our master branch of framworks already.

The bad things: e.g. KIO doesn’t work atm (even if the io slaves would be in the bundle), therefore only local file support.

Kate on Mac, HiDPI

Kate runs ;=)

Kate on Mac HiDPI

But as you can see, we have no icons, but that is as no work was invested into it and not even any icons are installed ;=)

I will maintain a guide how to build it on mac in the kate.git/mac.txt file. At the moment, this is all not that nice. Kate is able to open files via file dialog and it renders OK, modulo some glitches.

Still a long way to go, ATM the application bundle contains just the application binary + plist + icons. The libraries are still found only because of they are were they were compiled & installed. Plugins are not found either, need to take a look if that is just missing env vars or more.

At least, this is far better than at the beginning of the year, were all I had was instant segfaults.

Kate runs here btw. without any dbus server running, which means file opening in that window via command line won’t work, but still, compared to KWrite, which crashs on open dialog because of dbus missing, that is nice ;=)

KWrite on Mac

After some hacking on frameworks, I have the first running KWrite version on Mac that uses an unpatched Qt from the offline installer:
KWrite on Mac
It is still ugly, as scaled on my HiDPI display as the plist file is missing and it crashs on everything (aka open dialog) and has no icons.

But beside that, it works.

No magic, just the xcode clang toolchain + stock qt + stock cmake + gettext + KDE Frameworks 5 😉

Script that did the job (still some patches to frameworks missing in master that remove optional deps and fixes linking), it is available in updated form in kate.git:

The changes will benefit Windows builds, too, as they made the dependencies a bit smaller. You for example need no longer phonon to get this running, nor do you need to hassle around with the xslt/xml doctools on Windows.

Patches that are needed t to be applied to have this working: