[Digikam-users] How to build Digikam?

Dotan Cohen dotancohen at gmail.com
Sat Jul 12 13:02:07 BST 2008


2008/7/12 Arnd Baecker <arnd.baecker at web.de>:
> Not much ;-), you just took my notes a bit too serious...
> Namely:
>  ~/NBB/INSTALL_SOFTWARE/DIGIKAM4/graphics/
> is a path on my machine, where I put all software installation
> related stuff (actually, I even forgot, why I used NBB, maybe
> this stands for NotBeingBackupped or so ...).
> So you need to adjust this to  the path where your
> graphics checkout is done. Even better would be
> to just to everything relative (i.e. with cd .. etc.,
> as you did before).
> Then it should hopefully work fine ...
>
> Best, Arnd
>

Thanks, Arnd, I'm learning. I have tons of bash questions that I'll
post to the unix.com forums soon. In the meantime, I've changed the
script to this:

#!/bin/bash

# get sudo permission
sudo ls

# ### Modifiy according to your destination:
DIGIKAMKDE4=$HOME/digikam-notes/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


##Checkout KDE4 version

echo "--kde--"

# 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 && \
sudo make install && \

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


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

echo "--kde-graphics--" && \
svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics && \
cd kdegraphics && \
echo "--kde-graphics-- up libs" && \
svn up libs && \
echo "--kde-graphics-- up cmake" && \
svn up cmake && \

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

echo "--latest digiKam and Kipi-plugins--" && \
cd .. && \
svn co -N svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics && \
cd graphics && \
echo "--latest digiKam and Kipi-plugins-- up digikam" && \
svn up digikam && \
echo "--latest digiKam and Kipi-plugins-- up kipi-plugins" && \
svn up kipi-plugins && \
echo "--latest digiKam and Kipi-plugins-- up cmake" && \
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.

echo "--to compile soure--" && \

#cd ~/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/ && \
#rm -rf build && \
#mkdir build && \
#cd build && \
# next two lines added as per irc conversation:
mkdir -p /home/hardy/digikam-notes/exiv2-0.17.1/kdegraphics/build && \
cd /home/hardy/digikam-notes/exiv2-0.17.1/kdegraphics/build && \
# next line I modified
echo "--to compile soure--cmake" && \
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4
../../kdegraphics && \
echo "--to compile soure--make" && \
make && \
echo "--to compile soure--make install" && \
sudo make install && \



#Now for digikam itself:

echo "--digikam--" && \

#cd ~/NBB/INSTALL_SOFTWARE/DIGIKAM4/graphics/ && \
#mkdir build && \
#cd build && \
#rm CMakeCache.txt && \
# next two lines added as per irc conversation:
mkdir -p /home/hardy/digikam-notes/exiv2-0.17.1/graphics/build && \
cd /home/hardy/digikam-notes/exiv2-0.17.1/graphics/build && \
echo "--digikam--cmake" && \
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4 && \
../../graphics && \
echo "--digikam--make" && \
make && \
echo "--digikam--make install" && \
sudo make install && \

echo "--done!!!--"







Now, I get through the compile source cmake, but it dies on make due
to the lack of CMakeLists.txt. Here is the end of the output of the
"make" command:

-- Installing: /home/hardy/digikam-notes/DEV_digikam4/include/libkexiv2/kexiv2.h
-- Installing: /home/hardy/digikam-notes/DEV_digikam4/include/libkexiv2/libkexiv2_export.h
-- Installing: /home/hardy/digikam-notes/DEV_digikam4/include/libkexiv2/version.h
--digikam--
--digikam--cmake
CMake Error: The source directory
"/home/hardy/digikam-notes/exiv2-0.17.1/graphics/build" does not
appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.



Should I post the whole output? I really appreciate the assistance.

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


More information about the Digikam-users mailing list