Summary: | media-gfx/shotwell-0.30.10[opencv]: ERROR: Dependency "opencv" not found, tried pkgconfig and cmake ---- | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | Nicolas Bock <nicolasbock> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | foti.giuseppe, gentoo, gentoo, gnome, leonchik1976, mail, phobosk, rossbridger.cc, sam, tanekliang |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=706040 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
meson-log.txt Ebuild for shotwell 0.31.3 with support for opencv 4 |
Description
Sam James
2020-08-30 16:58:25 UTC
Created attachment 657510 [details]
meson-log.txt
Current opencv puts "opencv4.pc" in package config and this breaks mupen64plus-core as it looks for "opencv.pc"; could be your issue, I'm not familiar enough with pkgconfig to know. (In reply to Todd Walter from comment #2) > Current opencv puts "opencv4.pc" in package config and this breaks > mupen64plus-core as it looks for "opencv.pc"; could be your issue, I'm not > familiar enough with pkgconfig to know. you are right the name of the .pc file must match: ln -s /usr/lib64/pkgconfig/opencv4.pc /usr/lib64/pkgconfig/opencv.pc does the workaround. But it's useless as the source code must be updated to works with OpenCV 4 (>3.4). Build will fail with error like: shotwell-facedetect.cpp:37:22: error: ‘CV_BGR2GRAY’ was not declared in this scope CV_BGR2GRAY must be replace by cv::COLOR_BGR2GRAY , CV_LOAD_IMAGE_COLOR by cv::IMREAD_COLOR .... ( https://www.docs.opencv.org/4.0.0/d8/d01/group__imgproc__color__conversions.html ) *** Bug 761565 has been marked as a duplicate of this bug. *** Created attachment 687255 [details]
Ebuild for shotwell 0.31.3 with support for opencv 4
I've attached a new ebuild for the latest version 0.31.3 which supports opencv 4.
# Have:
- media-gfx/shotwell-0.30.11 [-opencv]
- media-libs/opencv-4.5.2-r1 [contrib contribcvv contribdnn contribfreetype contribhdf contribsfm cuda eigen features2d ffmpeg gdal gflags glog gphoto2 gstreamer jpeg jpeg2k lapack opencl opencvapps openexr opengl openmp png python qt5 tesseract testprograms threads tiff v4l vaapi vtk webp xine]
# Need:
- media-gfx/shotwell-0.30.12[opencv]
# Error:
shotwell-0.30.12[opencv] compilation fails with an error:
> Run-time dependency unity found: NO (tried pkgconfig and cmake)
> C++ compiler for the host machine: x86_64-pc-linux-gnu-g++ (gcc 11.1.0 "x86_64-pc-linux-gnu-g++ (Gentoo Hardened 11.1.0-r2 p3) 11.1.0")
> C++ linker for the host machine: x86_64-pc-linux-gnu-g++ ld.bfd 2.35.2
> Run-time dependency opencv found: NO (tried pkgconfig and cmake)
>
> facedetect/meson.build:3:0: ERROR: Dependency "opencv" not found, tried pkgconfig and cmake
media-gfx/shotwell-0.31.3 compiled successfluly from ebuild https://bugs.gentoo.org/attachment.cgi?id=687255 It works! Face detection works too! *** This bug has been marked as a duplicate of bug 702354 *** |