<div dir="ltr"><div dir="ltr"><div>Hi there,</div><div><br></div><div>I'm trying to recompile Digikam  to enable the RAW metadata writing. My first step in Digikam development. If this is a success, why not contribute?</div><div>Unfortunately, I'm not able to do it.<br><br>My laptop is an Ubuntu 18.04.<br><br><i><b>uname -a</b><br>Linux laptop 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux</i><br><br>Here's the output command of the bootstrap.linux:<br><br><i>Qt5     Install Path : /usr<br>digiKam Install Path : /usr<br>CMake binary         : cmake<br>Build Directory      : /opt/digikam/git/build<br>-- ----------------------------------------------------------------------------------<br>-- Starting CMake configuration for: digikam-software-collection<br>-- Documentation translations directory is missing.<br>-- You can use DIGIKAMSC_CHECKOUT_DOC option to extract doc i18n files from git repositories.<br>-- ----------------------------------------------------------------------------------<br>-- Compilation configuration for: digikam-software-collection<br>-- digiKam core will be compiled.................. YES<br>-- Extract application translations files......... NO<br>-- Extract documentation translations files....... NO<br>-- Translations will be compiled.................. NO<br>-- Handbooks will be compiled..................... YES<br>-- Tests code will be compiled.................... YES<br>-- ----------------------------------------------------------------------------------<br>-- Starting CMake configuration for: digikam<br>-- Could not set up the appstream test. appstreamcli is missing.<br>-- Could NOT find KF5Sane: found neither KF5SaneConfig.cmake nor kf5sane-config.cmake <br>-- Could NOT find KF5Vkontakte: found neither KF5VkontakteConfig.cmake nor kf5vkontakte-config.cmake <br>-- KF5::KIOWidgets include dirs: /usr/include/KF5/KIOWidgets;/usr/include/KF5<br>-- Libjpeg version: 84<br>-- Using libjpeg sub-directory: libjpeg/84<br>-- Boost version: 1.65.1<br>-- Found lcms version 2.09, /usr/lib/x86_64-linux-gnu/liblcms2.so<br>-- 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)<br>-- Could NOT find FFmpeg (missing: AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS) <br>-- FFMPEG_FOUND        = FALSE<br>-- FFMPEG_INCLUDE_DIRS = /usr/include/x86_64-linux-gnu<br>-- FFMPEG_LIBRARIES    = /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so<br>-- FFMPEG_DEFINITIONS  = <br>-- QtAV search path: /usr/lib/x86_64-linux-gnu/cmake<br>-- Found QtAV version 1.12.0<br>-- QtAV_FOUND       = TRUE<br>-- QtAV_INCLUDE_DIR = /usr/include/x86_64-linux-gnu/qt5/QtAV /usr/include/x86_64-linux-gnu/qt5/QtAVWidgets<br>-- QtAV_LIBRARIES   = /usr/lib/x86_64-linux-gnu/libQtAV.so;/usr/lib/x86_64-linux-gnu/libQtAVWidgets.so<br>-- QtAV_VERSION     = 1.12.0<br>-- ENABLE_MEDIAPLAYER option is enabled but FFMpeg cannot be found. Media player support is disabled.<br>-- First try at finding OpenCV...<br>-- OpenCV Root directory is: /usr/share/OpenCV<br>-- OpenCV: Found version 3.2.0 (required: 3.1.0)<br>-- OpenCV headers: /usr/include;/usr/include/opencv<br>-- OpenCV libs   : opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs<br>-- Marble_FOUND       = TRUE<br>-- MARBLE_INCLUDE_DIR = /usr/include<br>-- MARBLE_LIBRARIES   = /usr/lib/x86_64-linux-gnu/libmarblewidget-qt5.so<br>-- ASTRO_LIBRARIES    = /usr/lib/x86_64-linux-gnu/libastro.so<br>-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) <br>-- libgphoto2 found    : TRUE<br>-- libgphoto2 version  : 2.5.16<br>-- libgphoto2 includes : /usr/include/gphoto2<br>-- libgphoto2 libraries: /usr/lib/x86_64-linux-gnu/libgphoto2.so;/usr/lib/x86_64-linux-gnu/libgphoto2_port.so<br>-- libgphoto2 API version >= 2.5<br>-- liblensfun: Found version 0.3.2.0 (required: 0.2.6.0)<br>-- <br>-- --------------------------------------------------<br>-- digiKam RawEngine dependencies checks:<br>-- <br>-- RawEngine will not be compiled with RedCine codec<br>-- Looking for LibJpeg<br>-- RawEngine will be compiled with DNG lossy codec<br>-- Looking for PThreads<br>-- --------------------------------------------------<br>-- <br>-- <br>-- ----------------------------------------------------------------------------------<br>--  digiKam 6.0.0-beta1 dependencies results   <<a href="http://www.digikam.org">http://www.digikam.org</a>><br>-- <br>--  MySQL Database Support will be compiled.. YES (optional)<br>--  MySQL Internal Support will be compiled.. YES (optional)<br>--  DBUS Support will be compiled............ YES (optional)<br>--  App. Style Support will be compiled...... YES (optional)<br>--  QWebEngine Support will be compiled...... NO  (optional)<br>--  libboostgraph found...................... YES<br>--  libexiv2 found........................... NO<br>CMake Error at core/cmake/modules/MacroUtils.cmake:44 (message):<br>   libexiv2 is needed. You need to install the libexiv2 (version >= 0.26 development package.<br>Call Stack (most recent call first):<br>  core/CMakeLists.txt:559 (PRINT_LIBRARY_STATUS)<br><br><br>--  libexiv2 website is at <a href="http://www.exiv2.org">http://www.exiv2.org</a><br>-- <br>--  libexpat found........................... YES<br>--  libjpeg found............................ YES<br>--  libkde found............................. YES<br>--  liblcms found............................ YES<br>--  libopencv found.......................... YES<br>--  libpng found............................. YES<br>--  libpthread found......................... YES<br>--  libqt found.............................. YES<br>--  libtiff found............................ YES<br>--  bison found.............................. YES (optional)<br>--  doxygen found............................ YES (optional)<br>--  flex found............................... YES (optional)<br>--  libakonadicontact found.................. YES (optional)<br>--  libeigen3 found.......................... YES (optional)<br>--  libgphoto2 found......................... YES (optional)<br>--  libjasper found.......................... NO  (optional)<br>--  digiKam will be compiled without JPEG2000 support.<br>--  Please install the libjasper (version >= 1.7.0) development package.<br>-- <br>--  libkcalcore found........................ YES (optional)<br>--  libkvkontakte found...................... NO  (optional)<br>--  digiKam will be compiled without libkvkontakte support.<br>--  Please install the libkvkontakte (version >= 4.70.0) development package.<br>-- <br>--  libkfilemetadata found................... YES (optional)<br>--  libkiconthemes found..................... YES (optional)<br>--  libkio found............................. YES (optional)<br>--  libknotifications found.................. YES (optional)<br>--  libknotifyconfig found................... YES (optional)<br>--  libksane found........................... NO  (optional)<br>--  digiKam will be compiled without flat scanners support.<br>--  Please install the libksane (version >= 5.0.0) development package.<br>-- <br>--  liblensfun found......................... YES (optional)<br>--  liblqr-1 found........................... YES (optional)<br>--  libmarble found.......................... YES (optional)<br>--  libqtav found............................ YES (optional)<br>--  libthreadweaver found.................... YES (optional)<br>--  libxml2 found............................ YES (optional)<br>--  libxslt found............................ YES (optional)<br>--  OpenGL found............................. YES (optional)<br>CMake Error at core/CMakeLists.txt:616 (message):<br>   digiKam will be compiled.................. NO  (See the README file for more details about dependencies)<br><br><br>-- Configuring incomplete, errors occurred!<br>See also "/opt/digikam/git/CMakeFiles/CMakeOutput.log".<br>See also "/opt/digikam/git/CMakeFiles/CMakeError.log".</i><br><br>I don't want to install Digikam in /usr, but this is another problem.<br>The problem is related to libexiv2.<br><br><i><b>git status</b><br>On branch master<br>Your branch is up-to-date with 'origin/master'.<br><br>Files not followed:<br>  (utilisez "git add <fichier>..." pour inclure dans ce qui sera validé)<br><br>    CMakeCache.txt<br>    CMakeDoxyfile.in<br>    CMakeDoxygenDefaults.cmake<br>    CMakeFiles/<br>    CMakeTmp/<br>    DartConfiguration.tcl<br>    app/<br>    build/<br>    core/app/utils/digikam_config.h<br>    core/app/utils/digikam_opencv.h<br>    core/libs/rawengine/libraw/libraw_config.h<br>    core/prefix.sh<br>    doc/<br>    ecm_uninstall.cmake<br>    extra/<br>    libs/<br>    prefix.sh<br>    project/bundles/3rdparty/ext_exiv2/CMakeCache.txt<br>    project/bundles/3rdparty/ext_exiv2/CMakeFiles/</i><br><br>libexiv2 as been installed from the latest available sources files with the following command:<br><br><b><i>./configure --prefix=/usr/local --enable-video --without-ssh --disable-static<br>make<br>sudo make install</i></b><br><br>A locate show me that libexiv2 is available.<br><b><br></b><i><b>sudo updatedb && locate libexiv2.so </b><br>/usr/lib/x86_64-linux-gnu/libexiv2.so<br>/usr/lib/x86_64-linux-gnu/libexiv2.so.14<br>/usr/lib/x86_64-linux-gnu/libexiv2.so.14.0.0<br>/usr/local/lib/libexiv2.so<br>/usr/local/lib/libexiv2.so.26<br>/usr/local/lib/libexiv2.so.26.0.0</i><br><b><br></b><i><b>ls -la /usr/local/lib/libexiv2.*</b><br>-rw-r--r-- 1 root root 6869170 Sep  3 11:16 /usr/local/lib/libexiv2.a<br>-rw-r--r-- 1 root root    1038 Sep  4 09:21 /usr/local/lib/<a href="http://libexiv2.la">libexiv2.la</a><br>lrwxrwxrwx 1 root root      18 Sep  4 09:21 /usr/local/lib/libexiv2.so -> libexiv2.so.26.0.0<br>lrwxrwxrwx 1 root root      18 Sep  4 09:21 /usr/local/lib/libexiv2.so.26 -> libexiv2.so.26.0.0<br>-rw-r--r-- 1 root root 3577744 Sep  4 09:21 /usr/local/lib/libexiv2.so.26.0.0</i><br><br><i><b>ldd /usr/local/lib/libexiv2.so</b><br>    linux-vdso.so.1 (0x00007ffdcb699000)<br>    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1b9825a000)<br>    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f1b98028000)<br>    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1b97e24000)<br>    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1b97c05000)<br>    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1b97877000)<br>    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1b974d9000)<br>    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1b970e8000)<br>    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1b96ed0000)<br>    /lib64/ld-linux-x86-64.so.2 (0x00007f1b98980000)</i><br><b><br></b><i><b>cat /etc/ld.so.conf.d/*</b><br>/usr/lib/x86_64-linux-gnu/libfakeroot<br># libc default configuration<br>/usr/local/lib<br># Multiarch support<br>/usr/local/lib/x86_64-linux-gnu<br>/lib/x86_64-linux-gnu<br>/usr/lib/x86_64-linux-gnu<br># Legacy biarch compatibility support<br>/lib32<br>/usr/lib32</i><br><br>I'm not a power user of Linux, nor c++ / cmake /bootstrap process.<br><br>My questions are:<br>- is there something to clean before running bootstrap.linux to ensure that we start off?<br>- is there a specific location to specify to load the local libs?<br>- did I miss something when building libexiv2?<br><br></div><div>Thanks for your help</div><div><br></div><div>Mat<br></div><div><br><br><br></div></div></div>