With the release of Digikam 0.10.0 for KDE4 it is possible to compile Digikam for Mac OS X. There are remaining some minor bugs and, maybe, it does not run as stable as under Linux, but it runs! The steps to compile Digikam for Mac OS X are as follows:
- Install MacPorts. Download and installation instructions can be found at the homepage.
- Open a Terminal.
- Execute sudo port install kdegraphics4 kdeedu4 libusb. "kdeedu4" can be skipped. As far as I know, it provides only the libmarblewidget library which is used by Digikam to display Geotags. The execution of this command may take several hours because the whole KDE4 basis software and libraries have to be downloaded and compiled. However, it is possible to cancel the process by typing Ctrl+C and to continue it with the same command afterwards.
- Execute sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
- Execute sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
- Download libgphoto2 from the homepage. The version which is available by MacPorts is too old for Digikam.
- In a Terminal change into the directory with the downloaded file. Extract it with tar xf libgphoto2-2.4.5.tar.bz2 and change into the newly created directory with cd libgphoto2-2.4.5. (The file and directory name may differ in the version number. In this case you need to adapt them of course.)
- Execute ./configure --prefix=/opt/local The setting of the prefix ensures that the library will be installed in the same path as the other MacPorts programs.
- sudo make install
- Download the Digikam source code.
- In a Terminal change to the directory with the downloaded file. Extract it with tar xf digikam-0.10.0.tar.bz2 and change into the directory with cd digikam-0.10.0.
- Execute cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/local/bin/qmake-mac .. The dot at the end of the command should really be there and tells cmake to process the current directory. (The second dot is not part of the command, it ends the sentence.) Again the prefix setting ensures that Digikam will be installed in the MacPorts path. Moreover, the paht to the Qt qmake command is passed manually because otherwise the library wouldn't be found.
- sudo make install
With this Digikam is installed. To start it the following commands have to be executed:
- open /Applications/MacPorts/KDE4/kdeinit4.app
- open /Applications/MacPorts/KDE4/knotify4.app
- open /Applications/MacPorts/KDE4/kded4.app
- open /Applications/KDE4/digikam.app
The best is probably to create a small script, which executes these commands in a row. If you do not start these programs before launching Digikam you won't see any thumbnails or pictures.