Digikam 0.10.0 under Mac OS X

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:

  1. Install MacPorts. Download and installation instructions can be found at the homepage.
  2. Open a Terminal.
  3. 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.
  4. Execute sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
  5. Execute sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
  6. Download libgphoto2 from the homepage. The version which is available by MacPorts is too old for Digikam.
  7. 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.)
  8. 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.
  9. make
  10. sudo make install
  11. Download the Digikam source code.
  12. 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.
  13. 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.
  14. make
  15. sudo make install

With this Digikam is installed. To start it the following commands have to be executed:

  1. open /Applications/MacPorts/KDE4/kdeinit4.app
  2. open /Applications/MacPorts/KDE4/knotify4.app
  3. open /Applications/MacPorts/KDE4/kded4.app
  4. 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.