Hi, I would like to compile digikam 4.4.0, but there is an compile error in libkface, always regarding OpenCV. So far I have tried these steps with no success. 1. compile digikam ~5.1.0 2. compile libkface versions 4.4.0 ~4.12.0(4/3) ~15.08.3(4/15.08) 16.04.3 3. change plasma from ~5.7.4 to 5.6.5 back and forth 4. compile opencv 2.4.12(0/2.4) ~2.4.12-r1(0/2.4) ~3.0.0(0/3.0) ~3.1.0-r4(0/3.1) 4. update all system, revdep-rebuild, etc... -- Found KDE 4.12 include dir: /usr/include -- Found KDE 4.12 library dir: /usr/lib64 -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler -- Found automoc4: /usr/bin/automoc4 -- First try at finding OpenCV... CMake Warning at /usr/local/share/OpenCV/OpenCVConfig.cmake:208 (message): opencv_contrib is required but was not found Call Stack (most recent call first): cmake/modules/MacroOpenCV.cmake:27 (FIND_PACKAGE) CMakeLists.txt:50 (DETECT_OPENCV) CMake Warning at /usr/local/share/OpenCV/OpenCVConfig.cmake:208 (message): opencv_legacy is required but was not found Call Stack (most recent call first): cmake/modules/MacroOpenCV.cmake:27 (FIND_PACKAGE) CMakeLists.txt:50 (DETECT_OPENCV) -- Great, found OpenCV on the first try. -- OpenCV Root directory is: /usr/local/share/OpenCV -- OpenCV: Found version 2.4.6.1 (required: 2.4.9) CMake Warning at cmake/modules/MacroOpenCV.cmake:51 (MESSAGE): OpenCV: Version is too old. Call Stack (most recent call first): CMakeLists.txt:50 (DETECT_OPENCV) -- OpenCV headers: /usr/local/include/opencv;/usr/local/include -- OpenCV libs : debug;/usr/local/lib/libopencv_imgproc.so;debug;/usr/local/lib/libopencv_objdetect.so;debug;/usr/local/lib/libopencv_highgui.so;debug;/usr/local/lib/libopencv_core.so;optimized;/usr/local/lib/libopencv_imgproc.so;optimized;/usr/local/lib/libopencv_objdetect.so;optimized;/usr/local/lib/libopencv_highgui.so;optimized;/usr/local/lib/libopencv_core.so CMake Error at CMakeLists.txt:118 (MESSAGE): LibKface cannot be compiled. CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.5) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring incomplete, errors occurred! See also "/tmp/portage/kde-apps/libkface-4.4.0/work/libkface-4.4.0_build/CMakeFiles/CMakeOutput.log". See also "/tmp/portage/kde-apps/libkface-4.4.0/work/libkface-4.4.0_build/CMakeFiles/CMakeError.log". * ERROR: kde-apps/libkface-4.4.0::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 3850: Called kde4-base_src_configure * environment, line 2881: Called cmake-utils_src_configure * environment, line 1085: Called _cmake_execute_optionally 'src_configure' * environment, line 474: Called enable_cmake-utils_src_configure * environment, line 1433: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
Created attachment 445212 [details] build.log
Created attachment 445214 [details] emerge --info
Created attachment 445216 [details] equery -f opencv
Created attachment 445218 [details] qlist -IUv opencv
Created attachment 445220 [details] emerge -pvt digikam
Created attachment 445222 [details] emerge -pqv libkface-4.4.0
Created attachment 445224 [details] environment
Created attachment 445226 [details] CMakeError
Created attachment 445228 [details] CMakeOutput
I do not know, but may be possible duplicate bug is 591852?
Created attachment 445230 [details] all in tgz
May be it is duplicate bug to 591852?
Do you have a manual opencv install? It's finding stuff in /usr/local/share/OpenCV/.
Thank you for your quick response. I found there those files: ls -1 haarcascades lbpcascades OpenCVConfig.cmake OpenCVConfig-version.cmake OpenCV # cat OpenCVConfig-version.cmake set(OpenCV_VERSION 2.4.6.1) set(PACKAGE_VERSION ${OpenCV_VERSION}) set(PACKAGE_VERSION_EXACT False) set(PACKAGE_VERSION_COMPATIBLE False) if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) set(PACKAGE_VERSION_EXACT True) set(PACKAGE_VERSION_COMPATIBLE True) endif() if(PACKAGE_FIND_VERSION VERSION_LESS PACKAGE_VERSION) set(PACKAGE_VERSION_COMPATIBLE True) endif()
I would suggest to backup and remove these files. Local installations like this are known to interfere with finding libraries.
Thank you very much, it solved the problem. How I was supposed know this? Could I read it somewhere in the error log? Regards.
(In reply to František Soukup from comment #16) > Thank you very much, it solved the problem. How I was supposed know this? > Could I read it somewhere in the error log? > > Regards. I just happened to notice the paths in the log (eg. OpenCV headers: /usr/local/include/opencv;/usr/local/include), and know from experience with prior bugs that this is a likely cause.
(In reply to Michael Palimaka (kensington) from comment #17) > (In reply to František Soukup from comment #16) > > Thank you very much, it solved the problem. How I was supposed know this? > > Could I read it somewhere in the error log? > > > > Regards. > > I just happened to notice the paths in the log (eg. OpenCV headers: > /usr/local/include/opencv;/usr/local/include), and know from experience with > prior bugs that this is a likely cause. Thank you for your help and info. Frank