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:
Now create your development folder:
# cd trunk
Please consider updating to exiv2-svn too, as this version fixes speed issues and added full sony markernote support among other things:
# 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:
# cd libkdcraw
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local ..
# make
# sudo make install
# cd ../..
# cd libkexiv2
Patch CMakeLists.txt to be able to build standalone. Download appended patch and place it in your development folder.
# 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:
# 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:
# 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:
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:
Now you can launch your compiled version with:
# ./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.
| Attachment | Size |
|---|---|
| libkexiv2cmake.diff.txt | 1.01 KB |


