Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593216 - kde-apps/libkface-4.4.0::gentoo failed (configure phase): OpenCV: Found version 2.4.6.1 (required: 2.4.9)
Summary: kde-apps/libkface-4.4.0::gentoo failed (configure phase): OpenCV: Found versi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-08 15:14 UTC by František Soukup
Modified: 2016-09-16 09:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,7.60 KB, text/plain)
2016-09-08 15:14 UTC, František Soukup
Details
emerge --info (emerge--info.txt,5.46 KB, text/plain)
2016-09-08 15:15 UTC, František Soukup
Details
equery -f opencv (equery-f-opencv.txt,12.03 KB, text/plain)
2016-09-08 15:15 UTC, František Soukup
Details
qlist -IUv opencv (qlist-IUv-opencv.txt,97 bytes, text/plain)
2016-09-08 15:16 UTC, František Soukup
Details
emerge -pvt digikam (emerge-pvt-digikam.txt,631 bytes, text/plain)
2016-09-08 15:16 UTC, František Soukup
Details
emerge -pqv libkface-4.4.0 (emerge-pqv-libkface-4.4.0.txt,56 bytes, text/plain)
2016-09-08 15:17 UTC, František Soukup
Details
environment (environment.txt,148.15 KB, text/plain)
2016-09-08 15:17 UTC, František Soukup
Details
CMakeError (CMakeError.log,8.74 KB, text/plain)
2016-09-08 15:18 UTC, František Soukup
Details
CMakeOutput (CMakeOutput.log,47.40 KB, text/plain)
2016-09-08 15:18 UTC, František Soukup
Details
all in tgz (libkface-bug-txt.tgz,49.08 KB, application/gzip)
2016-09-08 15:24 UTC, František Soukup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description František Soukup 2016-09-08 15:14:10 UTC
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";
Comment 1 František Soukup 2016-09-08 15:14:43 UTC
Created attachment 445212 [details]
build.log
Comment 2 František Soukup 2016-09-08 15:15:21 UTC
Created attachment 445214 [details]
emerge --info
Comment 3 František Soukup 2016-09-08 15:15:57 UTC
Created attachment 445216 [details]
equery -f opencv
Comment 4 František Soukup 2016-09-08 15:16:25 UTC
Created attachment 445218 [details]
qlist -IUv opencv
Comment 5 František Soukup 2016-09-08 15:16:59 UTC
Created attachment 445220 [details]
emerge -pvt digikam
Comment 6 František Soukup 2016-09-08 15:17:29 UTC
Created attachment 445222 [details]
emerge -pqv libkface-4.4.0
Comment 7 František Soukup 2016-09-08 15:17:54 UTC
Created attachment 445224 [details]
environment
Comment 8 František Soukup 2016-09-08 15:18:21 UTC
Created attachment 445226 [details]
CMakeError
Comment 9 František Soukup 2016-09-08 15:18:46 UTC
Created attachment 445228 [details]
CMakeOutput
Comment 10 František Soukup 2016-09-08 15:22:35 UTC
I do not know, but may be possible duplicate bug is 591852?
Comment 11 František Soukup 2016-09-08 15:24:09 UTC
Created attachment 445230 [details]
all in tgz
Comment 12 František Soukup 2016-09-08 15:28:10 UTC
May be it is duplicate bug to 591852?
Comment 13 Michael Palimaka (kensington) gentoo-dev 2016-09-08 16:09:30 UTC
Do you have a manual opencv install? It's finding stuff in /usr/local/share/OpenCV/.
Comment 14 František Soukup 2016-09-08 19:29:17 UTC
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()
Comment 15 Michael Palimaka (kensington) gentoo-dev 2016-09-08 19:31:02 UTC
I would suggest to backup and remove these files. Local installations like this are known to interfere with finding libraries.
Comment 16 František Soukup 2016-09-08 21:26:58 UTC
Thank you very much, it solved the problem. How I was supposed know this? Could I read it somewhere in the error log? 

Regards.
Comment 17 Michael Palimaka (kensington) gentoo-dev 2016-09-10 19:03:40 UTC
(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.
Comment 18 František Soukup 2016-09-16 09:08:55 UTC
(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