Download and Install SVN KDE4 along stable version

One benefit of this guide is that you can install the svn-version alongside your distro provided digikam & kipi-plugins packages and operate on a different database with it. This howto applies primary to (k)ubuntu, but other distribution are expected to work too with slight modifications.

First you have to install the needed dependencies:

# sudo aptitude install build-essential kdelibs5-dev kdepimlibs5-dev libboost-dev libcv-dev libcvaux-dev libexpat1-dev libglib2.0-dev libgphoto2-2-dev libhighgui-dev libjasper-dev libkipi7-dev liblcms1-dev liblensfun-dev liblqr-1-0-dev libmarble-dev libqca2-dev libtiff4-dev libxml2-dev libxslt1-dev zlib1g-dev

Now create your development folder:

# mkdir trunk
# cd trunk

Please consider updating to exiv2-svn too, as this version fixes speed issues and added full sony markernote support among other things:

# svn checkout svn://dev.exiv2.org/svn/trunk exiv2
# cd exiv2
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local ..
# make
# sudo make install
# cd ../..

For digikam & kipi-plugins version 1.3 you need newer versions if libkdcraw and libkexiv, so check out and build them:

# svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics/libs/libkdcraw
# cd libkdcraw
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local ..
# make
# sudo make install
# cd ../..


# svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics/libs/libkexiv2
# cd libkexiv2

Patch CMakeLists.txt to be able to build standalone. Download appended patch and place it in your development folder.

# wget http://www.digikam.org/drupal/system/files/libkexiv2cmake.diff_.txt -O ../libkexiv2cmake.diff
# patch < ../libkexiv2cmake.diff
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local ..
# make
# sudo make install
# cd ../..

Get latest digikam, build and install it:

# svn checkout svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/digikam
# cd digikam
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local ..
# make
# sudo make install
# cd ../..

Get latest kipi-plugins, build and install it:

# svn checkout svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/kipi-plugins
# cd kipi-plugins
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local ..
# make
# sudo make install
# cd ../..

Create a script named 'env_svn.sh' and place it in your development dir. This script create the necessary environment variables and switches also your kde-home to let you create a new database and different settings for the svn version. Insert the following content:

#!/bin/bash
export DIGIKAMDEST=/usr/local
export KDEDIR=$DIGIKAMDEST
export KDEDIRS="$DIGIKAMDEST:/usr"
export KDEHOME="$HOME/.kde-svn"
export LD_LIBRARY_PATH="$DIGIKAMDEST/lib/kde4:$DIGIKAMDEST/lib:$LD_LIBRARY_PATH"
export LDPATH="$DIGIKAMDEST/lib/kde4:$DIGIKAMDEST/lib:$LD_LIBRARY_PATH"
# update KDE's system configuration cache
kbuildsycoca4
# start app
$@

Make the script executable:

# chmod u+x env_svn.sh

Now you can launch your compiled version with:

# ./env_svn digikam
# ./env_svn showfoto
# ./env_svn dngconverter

On start of digikam, first run wizard will appear where you can set a new database path on bottom of first page.

AttachmentSize
libkexiv2cmake.diff.txt1.01 KB