[Digikam-users] How to build Digikam?

Arnd Baecker arnd.baecker at web.de
Tue Jul 8 23:05:13 BST 2008


Maybe the following private notes for my installation on a kubuntu
machine are  helpful (or maybe not ;-):
((No claim of completeness ...))

Needed stuff
------------

aptitude install kde4libs-bin kde4-devel
(there is surely more, depending on the packages which
are already isntalled ...)

Environment variables
=====================

# ### Modifiy according to your destination:
DIGIKAMKDE4=$HOME/NBB/SOFTWARE/DEV_digikam4
export PATH=/usr/lib/kde4/bin/:$PATH

export LANG=C
export KDEDIRS=$DIGIKAMKDE4:/usr/lib/kde4/
export LD_LIBRARY_PATH=$DIGIKAMKDE4/lib:$LD_LIBRARY_PATH
export LDPATH=$DIGIKAMKDE4/lib:$LDPATH
export PATH=$DIGIKAMKDE4/bin:$PATH
export PKG_CONFIG_PATH=$DIGIKAMKDE4/lib/pkgconfig

# ### Modify according to your place where marble is located:
export MARBLE_PATH=$HOME/NBB/SOFTWARE/Marble/
export LD_LIBRARY_PATH=$MARBLE_PATH/lib:$LD_LIBRARY_PATH
export LDPATH=$MARBLE_PATH/lib:$LDPATH
export PATH=$MARBLE_PATH/bin:$PATH
export PKG_CONFIG_PATH=$MARBLE_PATH/lib/pkgconfig:$DIGIKAMKDE4/lib/pkgconfig
export INCLUDE_DIR=$MARBLE_PATH/include:$INCLUDE_DIR

export CMAKE_INCLUDE_PATH=$MARBLE_PATH/include:$DIGIKAMKDE4/include
export CMAKE_LIBRARY_PATH=$MARBLE_PATH/lib:$DIGIKAMKDE4/lib


Checkout KDE4 version
=====================

- exiv2
  wget http://www.exiv2.org/exiv2-0.17.1.tar.gz
  tar xzf exiv2-0.17.1.tar.gz
  cd exiv2-0.17.1
  ./configure --prefix=$DIGIKAMKDE4
  make
  make install

- http://lensfun.berlios.de
  svn checkout svn://svn.berlios.de/lensfun/trunk
   ./configure --prefix=$DIGIKAMKDE4
   make install


- kdegraphics libs svn source for KDE4
  (includes libkipi, libkdcraw, libkexiv2, libksane) :

  svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics
  cd kdegraphics
  svn up libs
  svn up cmake

- Checkout the latest digiKam and Kipi-plugins SVN source for KDE4:

  cd ..
  svn co -N svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics
  cd graphics
  svn up digikam
  svn up kipi-plugins
  svn up cmake

- Installation for KDE4 in your system (/opt/kde4)
  cd ..


To compile the source code under linux you have to give these commands
in the source code folders. You should use a seperate build folder to
help cleaning up sources if something goes wrong.

cd ~/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/
rm -rf build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4
../../kdegraphics
make
make install



Now for digikam itself:
-----------------------

cd ~/NBB/INSTALL_SOFTWARE/DIGIKAM4/graphics/
mkdir build
cd build
rm CMakeCache.txt
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4
../../graphics
make
make install





More information about the Digikam-users mailing list