Bug 401306

Summary: digikam doesn't compile with Opencv 4
Product: [Applications] digikam Reporter: maderios <leoutation>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: arojas, aspotashev, caulier.gilles, metzpinguin
Priority: NOR    
Version: 6.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:
Attachments: full digikam r41326 compilation with opencv 4
digikam r41327 full compilation with Arch opencv-4.0.0-4

Description maderios 2018-11-22 14:06:48 UTC
Created attachment 116471 [details]
full digikam r41326 compilation with opencv 4

SUMMARY
digikam-git r41326 doesn't compile with Opencv 4
STEPS TO REPRODUCE
1. git clone
2. compile Arch Aur package
OBSERVED RESULT
compilation error 
full compilation here https://pastebin.com/fRTcVBXn or/and attachment
Otherwise, I compiled digikam git r41326 successfully with opencv 3.4.4-1
ADDITIONAL INFORMATION
Opencv 4.0.0-4 is now in Arch Linux testing
Packagers compiled successfully digikam 5.9 with opencv 4
https://www.archlinux.org/packages/testing/x86_64/digikam/
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/digikam&id=a2f3ee4b26a6529d47816cfc0eeed925f6474a04
Comment 1 maderios 2018-11-22 14:13:23 UTC
Comment on attachment 116471 [details]
full digikam r41326 compilation with opencv 4

>-- The C compiler identification is GNU 8.2.1
>-- The CXX compiler identification is GNU 8.2.1
>-- Check for working C compiler: /usr/bin/cc
>-- Check for working C compiler: /usr/bin/cc -- works
>-- Detecting C compiler ABI info
>-- Detecting C compiler ABI info - done
>-- Detecting C compile features
>-- Detecting C compile features - done
>-- Check for working CXX compiler: /usr/bin/c++
>-- Check for working CXX compiler: /usr/bin/c++ -- works
>-- Detecting CXX compiler ABI info
>-- Detecting CXX compiler ABI info - done
>-- Detecting CXX compile features
>-- Detecting CXX compile features - done
>-- ----------------------------------------------------------------------------------
>-- Starting CMake configuration for: digikam-software-collection
>CMake Deprecation Warning at /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:343 (message):
>  LIB_INSTALL_DIR is deprecated, use KDE_INSTALL_LIBDIR instead.
>Call Stack (most recent call first):
>  /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:437 (_define_relative)
>  CMakeLists.txt:27 (include)
>
>
>-- Looking for __GLIBC__
>-- Looking for __GLIBC__ - found
>-- Performing Test _OFFT_IS_64BIT
>-- Performing Test _OFFT_IS_64BIT - Success
>-- Performing Test HAVE_DATE_TIME
>-- Performing Test HAVE_DATE_TIME - Success
>-- Application translations directory is missing. Compilation of application translations is disabled...
>-- You can use DIGIKAMSC_CHECKOUT_PO option to extract GUI i18n files from git repositories.
>-- Main one documentation directory is missing. Compilation of documentation is disabled...
>-- Documentation translations directory is missing.
>-- You can use DIGIKAMSC_CHECKOUT_DOC option to extract doc i18n files from git repositories.
>-- ----------------------------------------------------------------------------------
>-- Compilation configuration for: digikam-software-collection
>-- digiKam core will be compiled.................. YES
>-- Extract application translations files......... NO
>-- Extract documentation translations files....... NO
>-- Translations will be compiled.................. NO
>-- Handbooks will be compiled..................... NO
>-- Tests code will be compiled.................... NO
>-- ----------------------------------------------------------------------------------
>-- Starting CMake configuration for: digikam
>-- Found KF5XmlGui: /usr/lib64/cmake/KF5XmlGui/KF5XmlGuiConfig.cmake (found version "5.52.0") 
>-- Found KF5CoreAddons: /usr/lib64/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.52.0") 
>-- Found KF5Config: /usr/lib64/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.52.0") 
>-- Found KF5Service: /usr/lib64/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.52.0") 
>-- Found KF5WindowSystem: /usr/lib64/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.52.0") 
>-- Found KF5Solid: /usr/lib64/cmake/KF5Solid/KF5SolidConfig.cmake (found version "5.52.0") 
>-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
>-- Found KF5I18n: /usr/lib64/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.52.0") 
>-- Found KF5: success (found suitable version "5.52.0", minimum required is "5.1.0") found components:  XmlGui CoreAddons Config Service WindowSystem Solid I18n 
>-- Found KF5KIO: /usr/lib64/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.52.0") 
>-- Found KF5IconThemes: /usr/lib64/cmake/KF5IconThemes/KF5IconThemesConfig.cmake (found version "5.52.0") 
>-- Found KF5FileMetaData: /usr/lib64/cmake/KF5FileMetaData/KF5FileMetaDataConfig.cmake (found version "5.52.0") 
>-- Found KF5ThreadWeaver: /usr/lib64/cmake/KF5ThreadWeaver/KF5ThreadWeaverConfig.cmake (found version "5.52.0") 
>-- Found KF5NotifyConfig: /usr/lib64/cmake/KF5NotifyConfig/KF5NotifyConfigConfig.cmake (found version "5.52.0") 
>-- Found KF5Notifications: /usr/lib64/cmake/KF5Notifications/KF5NotificationsConfig.cmake (found version "5.52.0") 
>-- Could NOT find KF5AkonadiContact: found neither KF5AkonadiContactConfig.cmake nor kf5akonadicontact-config.cmake 
>-- Could NOT find KF5Sane: found neither KF5SaneConfig.cmake nor kf5sane-config.cmake 
>-- Could NOT find KF5Vkontakte: found neither KF5VkontakteConfig.cmake nor kf5vkontakte-config.cmake 
>-- Found KF5CalendarCore: /usr/lib64/cmake/KF5CalendarCore/KF5CalendarCoreConfig.cmake (found version "5.9.3") 
>-- KF5::KIOWidgets include dirs: /usr/include/KF5/KIOWidgets;/usr/include/KF5
>-- Found JPEG: /usr/lib/libjpeg.so (found version "80") 
>-- Libjpeg version: 84
>-- Using libjpeg sub-directory: libjpeg/84
>-- Found TIFF: /usr/lib/libtiff.so (found version "4.0.10") 
>-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
>-- Found PNG: /usr/lib/libpng.so (found version "1.6.35") 
>-- Boost version: 1.68.0
>-- Found PkgConfig: /usr/bin/pkg-config (found version "1.5.4") 
>-- Checking for module 'lcms2'
>--   Found lcms2, version 2.9
>-- Found lcms version 2.09, /usr/lib/liblcms2.so
>-- Found EXPAT: /usr/lib/libexpat.so (found version "2.2.6") 
>-- Looking for pthread.h
>-- Looking for pthread.h - found
>-- Looking for pthread_create
>-- Looking for pthread_create - not found
>-- Looking for pthread_create in pthreads
>-- Looking for pthread_create in pthreads - not found
>-- Looking for pthread_create in pthread
>-- Looking for pthread_create in pthread - found
>-- Found Threads: TRUE  
>-- Found Exiv2: /usr/lib/libexiv2.so (found suitable version "0.26.0", minimum required is "0.26") 
>-- EXIV2_FOUND       = TRUE
>-- EXIV2_VERSION     = 0.26.0
>-- EXIV2_INCLUDE_DIR = /usr/include
>-- EXIV2_LIBRARY     = /usr/lib/libexiv2.so
>-- EXIV2_DEFINITIONS = 
>-- Checking for module 'libavcodec'
>--   Found libavcodec, version 58.35.100
>-- Checking for module 'libavfilter'
>--   Found libavfilter, version 7.40.101
>-- Checking for module 'libavformat'
>--   Found libavformat, version 58.20.100
>-- Checking for module 'libavdevice'
>--   Found libavdevice, version 58.5.100
>-- Checking for module 'libavutil'
>--   Found libavutil, version 56.22.100
>-- Checking for module 'libswscale'
>--   Found libswscale, version 5.3.100
>-- Checking for module 'libpostproc'
>--   Found libpostproc, version 55.3.100
>-- Found FFmpeg: /usr/lib/libavcodec.so;/usr/lib/libavfilter.so;/usr/lib/libavformat.so;/usr/lib/libavutil.so;/usr/lib/libswscale.so  
>-- FFMPEG_FOUND        = TRUE
>-- FFMPEG_INCLUDE_DIRS = /usr/include
>-- FFMPEG_LIBRARIES    = /usr/lib/libavcodec.so;/usr/lib/libavfilter.so;/usr/lib/libavformat.so;/usr/lib/libavutil.so;/usr/lib/libswscale.so
>-- FFMPEG_DEFINITIONS  = 
>-- QtAV search path: /usr/lib64/cmake
>-- Found QtAV: /usr/lib64/libQtAV.so;/usr/lib64/libQtAVWidgets.so  
>-- Found QtAV version 1.12.0
>-- QtAV_FOUND       = TRUE
>-- QtAV_INCLUDE_DIR = /usr/include/qt/QtAV /usr/include/qt/QtAVWidgets
>-- QtAV_LIBRARIES   = /usr/lib64/libQtAV.so;/usr/lib64/libQtAVWidgets.so
>-- QtAV_VERSION     = 1.12.0
>-- Media player support is enabled.
>-- First try at finding OpenCV...
>-- Found OpenCV: /usr (found version "4.0.0") found components:  core objdetect imgproc imgcodecs 
>-- OpenCV Root directory is: /usr/lib64/cmake/opencv4
>-- OpenCV: Found version 4.0.0 (required: 3.1.0)
>-- OpenCV headers: /usr/include/opencv4
>-- OpenCV libs   : opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs
>-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
>-- Found BISON: /usr/bin/bison (found version "3.2") 
>-- Found LibXslt: /usr/lib/libxslt.so (found version "1.1.32") 
>-- Found LibXml2: /usr/lib/libxml2.so (found version "2.9.8") 
>-- Could NOT find Marble (missing: MARBLE_INCLUDE_DIR MARBLE_LIBRARIES ASTRO_LIBRARIES) 
>-- Marble_FOUND       = FALSE
>-- MARBLE_INCLUDE_DIR = MARBLE_INCLUDE_DIR-NOTFOUND
>-- MARBLE_LIBRARIES   = MARBLE_LIBRARIES-NOTFOUND
>-- ASTRO_LIBRARIES    = ASTRO_LIBRARIES-NOTFOUND
>-- Found Jasper: /usr/lib/libjasper.so (found version "2.0.14") 
>-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") 
>CMake Warning (dev) at /usr/share/cmake-3.12/Modules/FindOpenGL.cmake:270 (message):
>  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
>  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
>  cmake_policy command to set the policy and suppress this warning.
>
>  FindOpenGL found both a legacy GL library:
>
>    OPENGL_gl_LIBRARY: /usr/lib/libGL.so
>
>  and GLVND libraries for OpenGL and GLX:
>
>    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
>    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so
>
>  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
>  compatibility with CMake 3.10 and below the legacy GL library will be used.
>Call Stack (most recent call first):
>  core/CMakeLists.txt:320 (find_package)
>This warning is for project developers.  Use -Wno-dev to suppress it.
>
>-- Found OpenGL: /usr/lib/libOpenGL.so   
>-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
>-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
>-- Looking for gethostbyname
>-- Looking for gethostbyname - found
>-- Looking for connect
>-- Looking for connect - found
>-- Looking for remove
>-- Looking for remove - found
>-- Looking for shmat
>-- Looking for shmat - found
>-- Looking for IceConnectionNumber in ICE
>-- Looking for IceConnectionNumber in ICE - found
>-- Found X11: /usr/lib/libX11.so
>-- Found Doxygen: /usr/bin/doxygen (found version "1.8.14") found components:  doxygen dot 
>-- Checking for module 'lqr-1'
>--   Found lqr-1, version 0.4.2
>-- Found GLIB2: /usr/lib/libglib-2.0.so  
>-- Performing Test HAVE_LQR_0_4
>-- Performing Test HAVE_LQR_0_4 - Failed
>-- Found Lqr-1: /usr/include/lqr-1;/usr/include/glib-2.0;/usr/lib/glib-2.0/include  
>-- Found Gphoto2: /usr/lib/libgphoto2.so  
>-- libgphoto2 found    : TRUE
>-- libgphoto2 version  : 2.5.19
>-- libgphoto2 includes : /usr/include/gphoto2
>-- libgphoto2 libraries: /usr/lib/libgphoto2.so;/usr/lib/libgphoto2_port.so;/usr/lib/libusb-1.0.so
>-- libgphoto2 API version >= 2.5
>-- Checking for module 'lensfun'
>--   Found lensfun, version 0.3.2.0
>-- Found LensFun: /usr/include/lensfun (found version "0.3.2.0") 
>-- liblensfun: Found version 0.3.2.0 (required: 0.2.6.0)
>-- 
>-- --------------------------------------------------
>-- digiKam RawEngine dependencies checks:
>-- 
>-- RawEngine will be compiled with RedCine codec
>-- Looking for LibJpeg
>-- RawEngine will be compiled with DNG lossy codec
>-- Looking for PThreads
>-- --------------------------------------------------
>-- 
>-- 
>-- ----------------------------------------------------------------------------------
>--  digiKam 6.0.0-beta3 dependencies results   <http://www.digikam.org>
>-- 
>--  MySQL Database Support will be compiled.. YES (optional)
>--  MySQL Internal Support will be compiled.. YES (optional)
>--  DBUS Support will be compiled............ YES (optional)
>--  App. Style Support will be compiled...... YES (optional)
>--  QWebEngine Support will be compiled...... NO  (optional)
>--  libboostgraph found...................... YES
>--  libexiv2 found........................... YES
>--  libexpat found........................... YES
>--  libjpeg found............................ YES
>--  libkde found............................. YES
>--  liblcms found............................ YES
>--  libopencv found.......................... YES
>--  libpng found............................. YES
>--  libpthread found......................... YES
>--  libqt found.............................. YES
>--  libtiff found............................ YES
>--  bison found.............................. YES (optional)
>--  doxygen found............................ YES (optional)
>--  flex found............................... YES (optional)
>--  libakonadicontact found.................. NO  (optional)
>--  digiKam will be compiled without KDE desktop address book support.
>--  Please install the libakonadicontact (version >= 4.89.0) development package.
>-- 
>--  libeigen3 found.......................... YES (optional)
>--  libgphoto2 found......................... YES (optional)
>--  libjasper found.......................... YES (optional)
>--  libkcalcore found........................ YES (optional)
>--  libkvkontakte found...................... NO  (optional)
>--  digiKam will be compiled without libkvkontakte support.
>--  Please install the libkvkontakte (version >= 4.70.0) development package.
>-- 
>--  libkfilemetadata found................... YES (optional)
>--  libkiconthemes found..................... YES (optional)
>--  libkio found............................. YES (optional)
>--  libknotifications found.................. YES (optional)
>--  libknotifyconfig found................... YES (optional)
>--  libksane found........................... NO  (optional)
>--  digiKam will be compiled without flat scanners support.
>--  Please install the libksane (version >= 5.0.0) development package.
>-- 
>--  liblensfun found......................... YES (optional)
>--  liblqr-1 found........................... YES (optional)
>--  libmarble found.......................... NO  (optional)
>--  digiKam will be compiled without geolocation maps support.
>--  Please install the libmarble (version >= 0.22.0) development package.
>-- 
>--  libqtav found............................ YES (optional)
>--  libthreadweaver found.................... YES (optional)
>--  libxml2 found............................ YES (optional)
>--  libxslt found............................ YES (optional)
>--  OpenGL found............................. YES (optional)
>--  digiKam can be compiled.................. YES
>-- ----------------------------------------------------------------------------------
>-- 
>-- Check if the system is big endian
>-- Searching 16 bit integer
>-- Looking for sys/types.h
>-- Looking for sys/types.h - found
>-- Looking for stdint.h
>-- Looking for stdint.h - found
>-- Looking for stddef.h
>-- Looking for stddef.h - found
>-- Check size of unsigned short
>-- Check size of unsigned short - done
>-- Using unsigned short
>-- Check if the system is big endian - little endian
>-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
>-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
>-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
>-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
>-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
>-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
>--  ==> Doxygen is found:          TRUE
>--  ==> Graphviz Dot is found:     YES
>--  To build API documentation use 'make doc'
>-- Configuring done
>-- Generating done
>CMake Warning:
>  Manually-specified variables were not used by the project:
>
>    DIGIKAMSC_COMPILE_LIBKALCORE
>    DIGIKAMSC_COMPILE_LIBKSANE
>    DIGIKAMSC_COMPILE_LIBKVKONTAKTE
>    DIGIKAMSC_COMPILE_LIBMARBLE
>    DIGIKAMSC_COMPILE_LIBMEDIAWIKI
>    ENABLE_OPENCV3
>
>
>-- Build files have been written to: /home/fre/ARCH-AUR/digikam-git/src/build
>[35m[1mScanning dependencies of target dimg_src_autogen[0m
>[35m[1mScanning dependencies of target digikam-gitversion[0m
>[35m[1mScanning dependencies of target digikamdatabasemain_src_autogen[0m
>[35m[1mScanning dependencies of target dmetadata_src_autogen[0m
>[  0%] [34m[1mAutomatic MOC for target dimg_src[0m
>[  0%] [34m[1mAutomatic MOC for target digikamdatabasemain_src[0m
>[  0%] Built target digikam-gitversion
>[  0%] [34m[1mAutomatic MOC for target dmetadata_src[0m
>[35m[1mScanning dependencies of target digikamdatabasecore_src_autogen[0m
>[  0%] [34m[1mAutomatic MOC for target digikamdatabasecore_src[0m
>[  0%] Built target dmetadata_src_autogen
>[35m[1mScanning dependencies of target digikamdatabase_src_autogen[0m
>[  0%] [34m[1mAutomatic MOC for target digikamdatabase_src[0m
>[  0%] Built target digikamdatabasecore_src_autogen
>[35m[1mScanning dependencies of target baloowrap_autogen[0m
>[  0%] [34m[1mAutomatic MOC for target baloowrap[0m
>[  0%] Built target baloowrap_autogen
>[35m[1mScanning dependencies of target baloowrap_src_autogen[0m
>[  0%] Built target digikamdatabasemain_src_autogen
>[  0%] [34m[1mAutomatic MOC for target baloowrap_src[0m
>[35m[1mScanning dependencies of target libmd5_autogen[0m
>[  0%] [34m[1mAutomatic MOC for target libmd5[0m
>[  0%] Built target libmd5_autogen
>[35m[1mScanning dependencies of target dngwriter_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target dngwriter_src[0m
>[  1%] Built target baloowrap_src_autogen
>[35m[1mScanning dependencies of target digikamfacesengine_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target digikamfacesengine_src[0m
>[  1%] Built target digikamfacesengine_src_autogen
>[35m[1mScanning dependencies of target jpegutils_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target jpegutils_src[0m
>[  1%] Built target dngwriter_src_autogen
>[  1%] Built target jpegutils_src_autogen
>[35m[1mScanning dependencies of target pgfutils_src_autogen[0m
>[35m[1mScanning dependencies of target threadimageio_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target pgfutils_src[0m
>[  1%] [34m[1mAutomatic MOC for target threadimageio_src[0m
>[  1%] Built target pgfutils_src_autogen
>[35m[1mScanning dependencies of target digikamwidgetscore_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target digikamwidgetscore_src[0m
>[  1%] Built target threadimageio_src_autogen
>[35m[1mScanning dependencies of target itemproperties_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target itemproperties_src[0m
>[  1%] Built target itemproperties_src_autogen
>[35m[1mScanning dependencies of target progressmanager_src_autogen[0m
>[  1%] Built target digikamdatabase_src_autogen
>[  1%] [34m[1mAutomatic MOC for target progressmanager_src[0m
>[35m[1mScanning dependencies of target dthread_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target dthread_src[0m
>[  1%] Built target dthread_src_autogen
>[35m[1mScanning dependencies of target versionmanager_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target versionmanager_src[0m
>[  1%] Built target versionmanager_src_autogen
>[35m[1mScanning dependencies of target notificationmanager_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target notificationmanager_src[0m
>[  1%] Built target notificationmanager_src_autogen
>[35m[1mScanning dependencies of target digikamgenericmodels_src_autogen[0m
>[  1%] [34m[1mAutomatic MOC for target digikamgenericmodels_src[0m
>[  1%] Built target progressmanager_src_autogen
>[35m[1mScanning dependencies of target digikamdialogscore_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target digikamdialogscore_src[0m
>[  2%] Built target digikamgenericmodels_src_autogen
>[35m[1mScanning dependencies of target kmemoryinfo_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target kmemoryinfo_src[0m
>[  2%] Built target kmemoryinfo_src_autogen
>[35m[1mScanning dependencies of target rawengine_srcs_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target rawengine_srcs[0m
>[  2%] Built target dimg_src_autogen
>[35m[1mScanning dependencies of target digikamlibtransitionmngr_src_autogen[0m
>[  2%] Built target rawengine_srcs_autogen
>[  2%] [34m[1mAutomatic MOC for target digikamlibtransitionmngr_src[0m
>[35m[1mScanning dependencies of target imageeditor_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target imageeditor_src[0m
>[  2%] Built target digikamlibtransitionmngr_src_autogen
>[35m[1mScanning dependencies of target slideshow_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target slideshow_src[0m
>[  2%] Built target digikamdialogscore_src_autogen
>[35m[1mScanning dependencies of target presentation_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target presentation_src[0m
>[  2%] Built target slideshow_src_autogen
>[35m[1mScanning dependencies of target assistants_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target assistants_src[0m
>[  2%] Built target assistants_src_autogen
>[35m[1mScanning dependencies of target expoblending_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target expoblending_src[0m
>[  2%] Built target presentation_src_autogen
>[35m[1mScanning dependencies of target calendar_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target calendar_src[0m
>[  2%] Built target calendar_src_autogen
>[35m[1mScanning dependencies of target sendbymail_src_autogen[0m
>[  2%] Built target expoblending_src_autogen
>[  2%] [34m[1mAutomatic MOC for target sendbymail_src[0m
>[35m[1mScanning dependencies of target printcreator_src_autogen[0m
>[  2%] [34m[1mAutomatic MOC for target printcreator_src[0m
>[  2%] Built target digikamwidgetscore_src_autogen
>[35m[1mScanning dependencies of target webservices_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target webservices_src[0m
>[  3%] Built target sendbymail_src_autogen
>[35m[1mScanning dependencies of target htmlgallery_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target htmlgallery_src[0m
>[  3%] Built target printcreator_src_autogen
>[35m[1mScanning dependencies of target videoslideshow_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target videoslideshow_src[0m
>[  3%] Built target htmlgallery_src_autogen
>[35m[1mScanning dependencies of target panorama_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target panorama_src[0m
>[  3%] Built target videoslideshow_src_autogen
>[35m[1mScanning dependencies of target metadataedit_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target metadataedit_src[0m
>[  3%] Built target panorama_src_autogen
>[35m[1mScanning dependencies of target mediaserver_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target mediaserver_src[0m
>[  3%] Built target mediaserver_src_autogen
>[35m[1mScanning dependencies of target timeadjust_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target timeadjust_src[0m
>[  3%] Built target imageeditor_src_autogen
>[35m[1mScanning dependencies of target dtrash_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target dtrash_src[0m
>[  3%] Built target timeadjust_src_autogen
>[35m[1mScanning dependencies of target digikamfacesengine_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target digikamfacesengine[0m
>[  3%] Built target digikamfacesengine_autogen
>[  3%] Built target dtrash_src_autogen
>[35m[1mScanning dependencies of target digikamfacesenginedatabase_src_autogen[0m
>[35m[1mScanning dependencies of target digikamfacesenginedatabase_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target digikamfacesenginedatabase_src[0m
>[  3%] [34m[1mAutomatic MOC for target digikamfacesenginedatabase[0m
>[  3%] Built target digikamfacesenginedatabase_autogen
>[35m[1mScanning dependencies of target iojobs_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target iojobs_src[0m
>[  3%] Built target digikamfacesenginedatabase_src_autogen
>[35m[1mScanning dependencies of target imagehistorywidgets_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target imagehistorywidgets_src[0m
>[  3%] Built target iojobs_src_autogen
>[35m[1mScanning dependencies of target itempropertiesdigikam_src_autogen[0m
>[  3%] [34m[1mAutomatic MOC for target itempropertiesdigikam_src[0m
>[  3%] Built target imagehistorywidgets_src_autogen
>[35m[1mScanning dependencies of target digikammodels_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target digikammodels_src[0m
>[  4%] Built target metadataedit_src_autogen
>[35m[1mScanning dependencies of target digikamtemplate_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target digikamtemplate_src[0m
>[  4%] Built target itempropertiesdigikam_src_autogen
>[35m[1mScanning dependencies of target digikamdeletedialog_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target digikamdeletedialog_src[0m
>[  4%] Built target digikammodels_src_autogen
>[35m[1mScanning dependencies of target digikamdialogs_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target digikamdialogs_src[0m
>[  4%] Built target digikamtemplate_src_autogen
>[35m[1mScanning dependencies of target fileactionmanager_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target fileactionmanager_src[0m
>[  4%] Built target digikamdeletedialog_src_autogen
>[35m[1mScanning dependencies of target filters_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target filters_src[0m
>[  4%] Built target filters_src_autogen
>[35m[1mScanning dependencies of target digikamsettings_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target digikamsettings_src[0m
>[  4%] Built target fileactionmanager_src_autogen
>[35m[1mScanning dependencies of target digikamalbum_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target digikamalbum_src[0m
>[  4%] Built target digikamdialogs_src_autogen
>[35m[1mScanning dependencies of target digikamtags_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target digikamtags_src[0m
>[  4%] Built target digikamsettings_src_autogen
>[35m[1mScanning dependencies of target advancedrename_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target advancedrename_src[0m
>[  4%] Built target digikamtags_src_autogen
>[35m[1mScanning dependencies of target queuemanager_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target queuemanager_src[0m
>[  4%] Built target digikamalbum_src_autogen
>[35m[1mScanning dependencies of target imageeditorgui_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target imageeditorgui_src[0m
>[  4%] Built target imageeditorgui_src_autogen
>[35m[1mScanning dependencies of target lighttable_src_autogen[0m
>[  4%] [34m[1mAutomatic MOC for target lighttable_src[0m
>[  4%] Built target advancedrename_src_autogen
>[35m[1mScanning dependencies of target importui_src_autogen[0m
>[  5%] [34m[1mAutomatic MOC for target importui_src[0m
>[  5%] Built target lighttable_src_autogen
>[35m[1mScanning dependencies of target importuibackend_src_autogen[0m
>[  5%] [34m[1mAutomatic MOC for target importuibackend_src[0m
>[  5%] Built target importuibackend_src_autogen
>[35m[1mScanning dependencies of target firstrun_src_autogen[0m
>[  5%] [34m[1mAutomatic MOC for target firstrun_src[0m
>[  5%] Built target firstrun_src_autogen
>[35m[1mScanning dependencies of target setupshowfoto_src_autogen[0m
>[  5%] [34m[1mAutomatic MOC for target setupshowfoto_src[0m
>[  5%] Built target webservices_src_autogen
>[35m[1mScanning dependencies of target setup_src_autogen[0m
>[  5%] [34m[1mAutomatic MOC for target setup_src[0m
>[  5%] Built target setupshowfoto_src_autogen
>[35m[1mScanning dependencies of target fuzzysearch_src_autogen[0m
>[  5%] [34m[1mAutomatic MOC for target fuzzysearch_src[0m
>[  5%] Built target fuzzysearch_src_autogen
>[35m[1mScanning dependencies of target maintenance_src_autogen[0m
>[  5%] [34m[1mAutomatic MOC for target maintenance_src[0m
>[  5%] Built target importui_src_autogen
>[35m[1mScanning dependencies of target searchwindow_src_autogen[0m
>[  6%] [34m[1mAutomatic MOC for target searchwindow_src[0m
>[  6%] Built target searchwindow_src_autogen
>[  6%] Built target setup_src_autogen
>[  6%] Built target maintenance_src_autogen
>[35m[1mScanning dependencies of target facemanagement_src_autogen[0m
>[35m[1mScanning dependencies of target metadataedit_autogen[0m
>[35m[1mScanning dependencies of target digikamgui_src_autogen[0m
>[  6%] [34m[1mAutomatic MOC for target facemanagement_src[0m
>[  6%] [34m[1mAutomatic MOC for target digikamgui_src[0m
>[  6%] [34m[1mAutomatic MOC for target metadataedit[0m
>[  6%] Built target metadataedit_autogen
>[35m[1mScanning dependencies of target dimg_src[0m
>[  6%] Built target queuemanager_src_autogen
>[35m[1mScanning dependencies of target dmetadata_src[0m
>[  6%] Built target facemanagement_src_autogen
>[35m[1mScanning dependencies of target digikamdatabasemain_src[0m
>[  6%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/widgets/dbstatdlg.cpp.o[0m
>[  6%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine.cpp.o[0m
>[  6%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_p.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/widgets/dbsettingswidget.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/dimgloader.cpp.o[0m
>[  7%] Built target digikamgui_src_autogen
>[  7%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_data.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/pngloader.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_data_p.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/widgets/dbmigrationdlg.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_exif.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_fileio.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/jpegloader.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/ifaces/dbinfoiface.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_item.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/tiffloader.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_comments.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_iptc.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/rawloader.cpp.o[0m
>[  7%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/ifaces/syncjob.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_gps.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/ifaces/dio.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/ppmloader.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_xmp.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/qimageloader.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_previews.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/scan/scancontroller.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/pgfloader.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaengine_rotation.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaenginesettings.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/scan/scancontroller_p.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/jpegsettings.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/engine/metaenginesettingscontainer.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/pngsettings.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/scan/scancontroller_start.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_video.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_fileio.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/tiffsettings.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/scan/scancontroller_progress.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_comments.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/pgfsettings.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/jp2kloader.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_template.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/utils/scan/scancontroller_stop.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_exif.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/loaders/jp2ksettings.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/database/CMakeFiles/digikamdatabasemain_src.dir/digikamdatabasemain_src_autogen/mocs_compilation.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_iptc.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_labels.cpp.o[0m
>[  8%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/filters/dimgbuiltinfilter.cpp.o[0m
>[  8%] Built target digikamdatabasemain_src
>[  9%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/filters/dimgthreadedfilter.cpp.o[0m
>[  9%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_faces.cpp.o[0m
>[  9%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/filters/dimgthreadedanalyser.cpp.o[0m
>[  9%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_history.cpp.o[0m
>[  9%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/filters/dimgfiltermanager.cpp.o[0m
>[  9%] [32mBuilding CXX object core/libs/dimg/CMakeFiles/dimg_src.dir/filters/dimgfiltergenerator.cpp.o[0m
>In file included from [01m[K/home/fre/ARCH-AUR/digikam-git/src/digikam/core/libs/dimg/filters/redeye/redeyecorrectionfilter.h:33[m[K,
>                 from [01m[K/home/fre/ARCH-AUR/digikam-git/src/digikam/core/libs/dimg/filters/dimgfiltermanager.cpp:77[m[K:
>[01m[K/home/fre/ARCH-AUR/digikam-git/src/build/core/app/utils/digikam_opencv.h:58:13:[m[K [01;31m[Kfatal error: [m[Kopencv/cv.h: No such file or directory
> #   include [01;31m[K<opencv/cv.h>[m[K
>             [01;31m[K^~~~~~~~~~~~~[m[K
>compilation terminated.
>make[2]: *** [core/libs/dimg/CMakeFiles/dimg_src.dir/build.make:284: core/libs/dimg/CMakeFiles/dimg_src.dir/filters/dimgfiltermanager.cpp.o] Error 1
>make[2]: *** Waiting for unfinished jobs....
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_tags.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_photo.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_generic.cpp.o[0m
>make[1]: *** [CMakeFiles/Makefile2:1923: core/libs/dimg/CMakeFiles/dimg_src.dir/all] Error 2
>make[1]: *** Waiting for unfinished jobs....
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadata_xmp.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadatasettings.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/dmetadatasettingscontainer.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata/geodetictools.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/containers/metadatainfo.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/containers/photoinfocontainer.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/containers/videoinfocontainer.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/containers/template.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/containers/captionvalues.cpp.o[0m
>[ 10%] [32mBuilding CXX object core/libs/metadataengine/CMakeFiles/dmetadata_src.dir/dmetadata_src_autogen/mocs_compilation.cpp.o[0m
>[ 10%] Built target dmetadata_src
>make: *** [Makefile:130: all] Error 2
Comment 2 Maik Qualmann 2018-11-22 17:38:06 UTC
Git commit 4cb2d62df23af09da60992004bf30c6607043672 by Maik Qualmann.
Committed on 22/11/2018 at 17:37.
Pushed by mqualmann into branch 'master'.

add patch from Arch Linux project to fix compile with OpenCV >= 4.0.0
This patch is not tested, please report if it works.

M  +14   -2    core/app/utils/digikam_opencv.h.cmake.in
M  +1    -1    core/libs/facesengine/detection/opencvfacedetector.cpp

https://commits.kde.org/digikam/4cb2d62df23af09da60992004bf30c6607043672
Comment 3 Antonio Rojas 2018-11-22 17:57:12 UTC
Please note that, even after this patch is applied, compilation will fail with unpatched opencv 4.0.0 due to https://github.com/opencv/opencv/issues/13201
Comment 4 maderios 2018-11-22 18:31:52 UTC
After reinstalling Arch Aur opencv-4.0.0-4, I could compile successfully digikam-git r41327 with this patch.
Now, DK works "normally" for me. Wait and see...
Comment 5 maderios 2018-11-22 18:54:02 UTC
Mistake, sorry:
I didn't install opencv-4 Arch Aur package BUT official Arch opencv 4.0.0-4 package from testing Arch repository.
Comment 6 maderios 2018-11-22 19:03:38 UTC
Created attachment 116473 [details]
digikam r41327 full compilation with Arch opencv-4.0.0-4
Comment 7 Maik Qualmann 2018-11-22 19:09:59 UTC
A lot of compile warnings, we leave this bug report open until we officially support OpenCV-4.x.x. For digiKam-6.0.0 it will be OpenCV-3.x.x.

Maik
Comment 8 caulier.gilles 2019-03-07 10:51:22 UTC
Maderios,

With current implementation from git/master (next 6.1.0) this kind of broken compilation with OpenCV must be fixed.

Can you confirm ?

Gilles Caulier
Comment 9 maderios 2019-03-07 19:09:13 UTC
(In reply to caulier.gilles from comment #8)
> Maderios,
> 
> With current implementation from git/master (next 6.1.0) this kind of broken
> compilation with OpenCV must be fixed.
> 
> Can you confirm ?
> 
> Gilles Caulier

> With current implementation from git/master (next 6.1.0) this kind of broken
> compilation with OpenCV must be fixed.
> 
> Can you confirm ?
> 
> Gilles Caulier
Last time I compiled digikam, it was digikam-git r41548 with opencv 4.0.1-5 arch package without any problem. I use this digikam version every day. I'll tell you if it works with current git when i'll have time to compile.
Comment 10 caulier.gilles 2019-03-08 07:21:22 UTC
Maderios,

Question : Here under Linux i compiled and installed the git/master code from OPenCV, and the install is well done at right place but Cmake configuration shared by the library indicate an install path at / of the system instead /usr. Of course digiKAm cannot be compiled in this case...

With OpenCV 3.4.5, all work as expected. I used the same configure script with git/master :

https://cgit.kde.org/digikam.git/tree/project/scripts/bootstrap.opencv-minimal-linux.sh

Which Cmake configuration did you set to compile and install OpenCV 4 ?

Gilles Caulier
Comment 11 maderios 2019-03-08 10:02:44 UTC
Gilles
I use official opencv 4.0.1-5 Arch package. It is patched.
https://www.archlinux.org/packages/extra/x86_64/opencv/
PKGBUILD and patch here
https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/opencv
Comment 12 caulier.gilles 2019-03-08 10:33:36 UTC
Wonderful...

How a project as OpenCV can release the library with this kind of bug....

Gilles
Comment 13 caulier.gilles 2019-03-08 10:34:08 UTC
There is an UPSTREAM bug for this problem ?
Gilles
Comment 14 Antonio Rojas 2019-03-08 11:57:44 UTC
(In reply to maderios from comment #11)
> Gilles
> I use official opencv 4.0.1-5 Arch package. It is patched.
> https://www.archlinux.org/packages/extra/x86_64/opencv/
> PKGBUILD and patch here
> https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/opencv

This patch only concerns the pkgconfig file so it's completely irrelevant for digikam (which uses cmake)
Comment 15 caulier.gilles 2019-03-08 16:11:09 UTC
Ahah, and how to you think that your digiKam compiled in your computer has found the right OpenCV4 install path ? By Cmake of course, not pkgconfig.

So i ask again my question: how your OpenCV4 is configured from your system to be found properly with digiKam/cmake script ? From your trace, your OpenCV4 install path is right...

Gilles Caulier
Comment 16 Antonio Rojas 2019-03-09 21:05:18 UTC
(In reply to caulier.gilles from comment #15)
> Ahah, and how to you think that your digiKam compiled in your computer has
> found the right OpenCV4 install path ? By Cmake of course, not pkgconfig.

...which is exactly what I said

> So i ask again my question: how your OpenCV4 is configured from your system
> to be found properly with digiKam/cmake script ? From your trace, your
> OpenCV4 install path is right...

medeiros gave you this information in comment 11 already.

With opencv 4.0.1, digikam 6.0 builds correctly, but git master is broken since eeab1c8220e8ffa9987ce032c1a65536e1a333f4 - which makes it use deprecated headers again regardless of the opencv version.
Comment 17 caulier.gilles 2019-03-10 09:39:10 UTC
No. this commit remove the dependency to obsolete OpenCV header. It's the oposite :

https://cgit.kde.org/digikam.git/commit/?id=eeab1c8220e8ffa9987ce032c1a65536e1a333f4

Deprecated headers are like : #include <opencv/...>

We only use headers from opencv2/ directory.

Also with this commit, i simplify the dependencies from OpenCV modules. We require less modules than before : 

https://cgit.kde.org/digikam.git/tree/core/CMakeLists.txt#n295

"core objdetect imgproc imgcodecs"

That all. of course, some OpenCV modules requires extra internal modules as objdetect which need :

- "calib3d" and "features2d" for OpenCV version 3
- "flann" for OpenCV version 4

I'm sure, i take a look in deep into OpenCV code which is a big monter.

So, if i'm wrong here, i would to know why exactly...

Gilles Caulier
Comment 18 Antonio Rojas 2019-03-10 09:50:42 UTC
To start with: you are unconditionally including  <opencv2/imgcodecs/imgcodecs_c.h>

This immediately throws an error with openCV 4:

/usr/include/opencv4/opencv2/imgcodecs/imgcodecs_c.h:1:2: error: #error "This header with legacy C API declarations has been removed from OpenCV. Legacy contants are available from legacy/constants_c.h file."
Comment 19 caulier.gilles 2019-03-10 09:59:46 UTC
Ah. This one is deprecated with OpenCV 4 only, not OpenCV 3.

As i never configured successfully digiKam with OpenCV4, i never seen this warning, i will take a look.

Gilles Caulier
Comment 20 caulier.gilles 2019-03-15 14:56:01 UTC
Git commit a38c26bbc57291172404b84e05ac2b82c6db9808 by Gilles Caulier.
Committed on 15/03/2019 at 14:52.
Pushed by cgilles into branch 'master'.

This header is deprecated with openCV4

M  +0    -1    core/app/utils/digikam_opencv.h.cmake.in

https://commits.kde.org/digikam/a38c26bbc57291172404b84e05ac2b82c6db9808
Comment 21 caulier.gilles 2019-03-15 16:17:03 UTC
Git commit 7a5af66d8fc7ab8e78f05016eaf3e94de66951b3 by Gilles Caulier.
Committed on 15/03/2019 at 16:16.
Pushed by cgilles into branch 'master'.

fix broken compilation with OpenCV4 in Test::FaceEngine

M  +7    -1    core/tests/facesengine/preprocess.cpp

https://commits.kde.org/digikam/7a5af66d8fc7ab8e78f05016eaf3e94de66951b3
Comment 22 maderios 2019-03-15 16:52:28 UTC
Fixed for me
Comment 23 caulier.gilles 2019-03-15 20:38:13 UTC
Git commit 08423e488df2dc0346d9e18fd84c528354fe27bd by Gilles Caulier.
Committed on 15/03/2019 at 20:37.
Pushed by cgilles into branch 'master'.

fix broken compilation with OpenCV 3

M  +4    -0    core/app/utils/digikam_opencv.h.cmake.in

https://commits.kde.org/digikam/08423e488df2dc0346d9e18fd84c528354fe27bd
Comment 24 caulier.gilles 2019-12-23 14:28:53 UTC
7.0.0-beta1 is ale to compile with OpenCV 4.2