[digiKam-users] Compiling digikam and exiv2

Gilles Caulier caulier.gilles at gmail.com
Wed Jun 26 15:34:58 BST 2019


Yes, Simon is right. Uninstall the system libexiv2-devel before to
configure, compile and install a new Exiv2 version on your system...

Exiv2 tarball include all devel files and install devel + binaries.

Gilles Caulier

Le mer. 26 juin 2019 à 15:49, Simon Frei <freisim93 at gmail.com> a écrit :

> From your paste:
>
> Could NOT find Exiv2: Found unsuitable version "0.25.0", but required is
> at least "0.26" (found /usr/lib/x86_64-linux-gnu/libexiv2.so)
>
> You probably have the system exiv2 package still installed.
>
> On 26/06/2019 15:41, woenx wrote:
>
> Thank you Gilles,
>
> I've been so far unable to compile it so digikam's bootstrap.linux script
> detects it.
>
> The steps I followed were:
>
> 1) Download the last release of exiv2 (0.27.1) from github.https://github.com/Exiv2/exiv2/releases/tag/0.27.1
> 2) Uncompress the tar.gz file, and copy the bootstrap-exiv2.linux.sh script
> to the main exiv folder (where CMakeLists.txt is).
> 3) Run './bootstrap-exiv2.linux.sh'
> 4) Enter the build directory, and run 'cmake --build .'
> 5) 'sudo make install'
> 6) I update the PATH (as instructed in their github page): 'export
> PATH="/usr/local/bin:$PATH" && export
> LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"'
>
> Exiv's 2 seems to compile without errors, and I can run the exiv2 command in
> the terminal.
>
> digikam at digikam-VirtualBox:~/digikam$ exiv2 --version
> exiv2 0.27.99.0
>
> However, when I try to compile digikam (the lastest version from github),
> libexiv2 cannot be found:
> https://pastebin.com/xQsfWwHb
>
> Is libexiv2 a separate package from exiv2?
>
> I am a bit lost at the moment, and I am not sure how to check if the
> PKGConfig files are correctly created after compiling exiv2. These are the
> files related to exiv2 I find using the locate command:https://pastebin.com/TXTkAa3q
>
> Any advise or guidance would be greatly appreciated!
>
>
> Gilles Caulier-4 wrote
>
> Le mar. 25 juin 2019 à 14:48, woenx <
>
> marcpalaus@
>
> > a écrit :
>
>
> Hello,
>
> First of all, sorry if that has been answered somewhere else. I read
> other
> threads about compiling digikam in this mailing list, but I couldn't
> manage
> to do it myself.
>
> I am trying to compile digikam from source in an Ubuntu 18.04
> installation,
> in order to create up to date .deb packages (and also be able to try
> myself
> the changes introduced by the GSoC2019). However, I seem to be
> experiencing
> some problems, especially regarding the exiv2 package.
>
> I start from a fresh ubuntu 10.04.2 LTS amd64 install in a virtual
> machine.
> I try to follow the instructions athttps://www.digikam.org/download/git/,
> but the problem comes when ./bootstrap.linux can't find the exiv2 package
> installed.
>
> In theory, it needs exiv2 0.26 or newer (the lastest version in their
> repository seems to be 0.27). I first tried using the already compiled
> version of exiv2 and libexiv2-26 for debian (version 0.26-1), but
> Digikam's
> compilation script does not seem to detect them.
>
>
> 0.27 is highly recommended.
>
> The detection of library is in this cmake script :
> https://cgit.kde.org/digikam.git/tree/core/cmake/modules/FindExiv2.cmake
>
>  Under Linux, the PKGConfig files are parsed to detect the library
> installation. Sound like under Ubuntu this standard is not well respected
> (another one, but you must know that i dislike this Linux box, and i wont
> said i 'hate' ubuntu...).
>
> To compile the Exiv2 library, look my script given here :
> https://cgit.kde.org/digikam.git/log/project/scripts/bootstrap-exiv2.linux.sh
>
> This one is optimized to only compile the minimum for digiKam and disable
> the unstable code from the library. I compile current code from Exiv2,
> where API have been broken for next 0.28. digiKam core have been fixed to
> support this API (there is no API transition stage in Exiv2 (:=)))). As
> Exiv2 API are strictly used in limited area in digiKam core, this limit
> the
> maintenance to the minimum.
> I see that another projects using Exiv2 are really perturbed by these
> recent changes.
>
> Best
>
> Gilles Caulier
>
>
>
> --
> Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20190626/3ef297ca/attachment.html>


More information about the Digikam-users mailing list