Strict Standards: Declaration of action_plugin_popularity::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /homez.110/marienoe/www/blog/wiki/lib/plugins/popularity/action.php on line 11

Strict Standards: Declaration of action_plugin_safefnrecode::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /homez.110/marienoe/www/blog/wiki/lib/plugins/safefnrecode/action.php on line 66
wiki:configuration-2:digikam-en [Mon Linux à moi]
 

Digikam - Compilation procedure

NB: be aware that this page is a translation of the original in french and might not completely up-to-date.

First compilation from git

adapted from the procedure on this page and from the procedure sent to the mailing-list by sleepless

Tools implementation

The following packages must have been installed beforehand:

  • git for the management of the versions repository
  • perl to run the script in charge of the downloading/updating from the Digikam versions repository
  • both gcc and gcc-c++ compilers
  • cmake and make to perform the actual compilation

if needed, the missing modules must be installed with the following command:

# yum install module-1 module-2 module-n

Creation of the local versions repository

the very first time, the local repository must be be created:

$ cd ~
$ mkdir digikam-src
$ cd digikam-src
$ git clone git://anongit.kde.org/digikam-software-compilation software-compilation

creates in /~/digikam-src/software-compilation/ the structure that will hosts the local clone of the Digikam git.
Enter the subfolder, and run the script that populates the local git:

$ cd software-compilation
$ perl download-repos

The procedure might be rather long, and should be relaunched if interrupted, so that the whole download is completed normaly without errors.

Standard procedure

synchronization of the local versions repository

If the local repository has not just been created, it must be re-synchronized with the online Digikam repository using the following command:

$ perl gits pull

dependencies retrieval

A simple way to retrieve the Digikam dependencies is to simulate the compilation of a source available in the repositories, then use yum to install the missing packages.
Download a source such as ftp://rpmfind.net/linux/fedora/development/rawhide/source/SRPMS/digikam-2.0.0-4.fc17.src.rpm in the /tmp subfolder, and launch the compilation :

# rpm -ivh /tmp/digikam*.src.rpm
$ rpmbuild -bb ~/rpmbuild/SPECS/digikam.spec

If there is no error messages, the compilation can be interrupted; otherwise, install the missing packages using yum install. The whole ~/rpmbuild subfolder can be deleted after that.

compilation

Create a dedicated subdirectory, and launch the pre-compilation:

$ cd ~/digikam-src/software-compilation
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..

then the compilation

$ make

installation

Then login as root to install:

# make install

Uninstallation

To uninstall a self compilation, go to the /build subfolder where the compilation has been done, and type the following command as root:

# make uninstall

After that, it is possible to install another version from the official repositories with the usual yum install.
Conflicts between different libraries versions might prevent the reinstallation of another Digikam version from the official repositories. In that case, all the libraries causing conflicts have to be removed using:

# rpm -e library-name

When cross-dependencies blocks the uninstallation, use the –nodeps option:

# rpm -e --nodeps library-name

After that, yum install should work as usual.

wiki/configuration-2/digikam-en.txt · Dernière modification: 2011/08/25 21:15 par tosca
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki