Thursday, April 1, 2010

KMid in Mac OSX

This is not an April Fool's joke. KMid is running in Mac OSX, native:


I've developed KMid's Mac native support using Fink, that includes KDE SC 4.4.1

By the way, there are fresh news at Fink web site: "Effective 1 May 2010, we are going to cease work on our Mac efforts, and switch to development for the iPad, iPhone...". Oh, wait! today is April 1st...

Now seriously. You need: Xcode 3.1.4, that provides GCC 4.2
And some dependencies from Fink: kdelibs4-mac-dev, kde4-buildenv, cmake. These packages require some other dependencies.
Recommended: bundle-kde4-mac. This set is very large, and includes everything for a complete KDE environment.

KMid doesn't use Phonon. The native Mac OSX backend uses CoreMIDI and CoreAudio, and the Apple DLS soft synth enabled by default. Everything is included in OSX. Receipt:

1. Get the sources from the repository:
$ svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/kmid/

2. Prepare the build environment:
$ export KDE4_TYPE=mac
$ source /sw/sbin/kde4-buildenv.sh

3. Configure, compile, install:
$ cd kmid
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/sw/opt/kde4/mac -DBUNDLE_INSTALL_DIR=/sw/opt/kde4/mac/bin
$ make
$ sudo make install

Enjoy!

5 comments:

  1. I hav bought a Mac in November and I miss lots of KDE4 apps. I have currently installed (and use it every day) KMyMoney 1.0.3 using MacPorts. The only issue I have is that it uses X11 that isn't well integrated with MacOSX (Exposé, etc...)

    What is the difference between MacPorts and Fink ?
    Is there a way to install easily the new beta of KMyMoney for KDE4 (3.97) on MacOSX ? Will it be native like KMid ?

    ReplyDelete
  2. I am not recommending Fink or MacPorts. KMid is not available on any of them. If you want the latest beta on any software, you have to download the sources and compile.

    Said that, Fink is similar to Debian and MacPorts is like FreeBSD ports or Gentoo. Fink doesn't provide binary KDE4 packages, so you will compile it anyway, even when you use Fink or MacPorts.

    ReplyDelete
  3. Comment puis-je télécharger les sources de KMid pour un Mac OSX et cela d'une façon très simple car je ne connais pas le langage informatique.
    D'avance marci

    ReplyDelete
  4. Helene, the latest version of KMid, containing Mac OSX support can be downloaded from SourceForge:
    http://sourceforge.net/projects/kmid2/files/2.3.1/

    You will need to compile the sources yourself, which is not a trivial task.

    It would be easier if a distribuition like Fink or Macports include a KMid package. Those projects are run by volunteers, like KDE, and maybe they aren't interested on KMid. You may want to ask them, or request KMid for inclusion. For instance in Fink:
    http://sourceforge.net/tracker/?atid=371315&group_id=17203

    ReplyDelete
  5. Thanks, this is still working today under MacOS X 10.6.8 (KDE4, Qt and stuff from current macports).
    I only had to make two very small changes in mac/dlssoftsynth.cpp :
    ==> #include at the beginning
    ==> replace ComponentDescription with AudioComponentDescription on line 142
    After 'make install', I somehow had to reboot because otherwise it would crash on startup with error "fatal : no MIDI backend found".
    After reboot everything was OK, DLS backend was functional.
    Together with the Titanic soundfont, this is the best MIDI/Karaoke player on earth. Thank you so much for creating this gem.

    ReplyDelete