Building Digikam from source in Kubuntu 13.10

The Digikam Logo
The Digikam Logo

 

I’ve been working towards contributing to KDE and Digikam does come under it . Digikam source code is maintained in the kde’s git server [1].

Building Digikam is rather tedious process (that’s my personal opinion) , it has numerous dependencies [2] . While trying to build you will no doubt face multiple “cmake” errors . I’m listing out the set of commands that could do the trick in this regard.

The assumptions being made over here are that you are using a fresh(with no prior builds) Kubuntu 13.10 and that make and cmake are installed in your system .

Type in these commands in the terminal/konsole :


git clone git://anongit.kde.org/digikam-software-compilation dk

cd dk

./download-repos 

After this make a build folder in the source directory , using

 mkdir build

cd ..

Now run the script already present in the source


./bootstrap.linux 

This is where you will most likely encounter the cmake errors . The following are the packages that I was missing and I’m listing the commands that can be used to install the same . Here they are :

sudo apt-get install libsane-dev
sudo apt-get install libksane-dev (optional)
sudo apt-get install libexiv2-dev
sudo apt-get install libraw-dev
sudo apt-get install libqjson-dev
sudo apt-get install libmarble-dev
sudo apt-get install libopencv-dev
sudo apt-get install libqtgstreamer-dev

After installing all these try running

 ./bootstrap.linux 

and hopefully you won’t have any errors this time arround. You can now proceed to complete the installation by typing three more commands .


cd build

make

sudo make install 

Once this is done , you can now try running Digikam that you have successfully built from source !

Cheers

[1] https://projects.kde.org/projects/extragear/graphics/digikam/digikam-software-compilation/repository

[2] http://digikam.org/download?q=download/dependencies

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s