https://bugs.kde.org/show_bug.cgi?id=528605

            Bug ID: 528605
           Summary: OpenCV 5.1.0 build problem
    Classification: Applications
           Product: digikam
      Version First 9.1.0
       Reported In:
          Platform: NetBSD pkgsrc
                OS: NetBSD
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Faces-Engine
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
I'm trying to update OpenCV in pkgsrc to 5.1.0, but digikam fails to build.
I found the OpenCV 5 support commit:
https://invent.kde.org/graphics/digikam/-/commit/abcadfdc91601fe410c67f4abba87117e81aad3e
but even with that applied on top of 9.1.0, the build fails.

STEPS TO REPRODUCE
1.  unpack digikam 9.1.0
2. apply
https://invent.kde.org/graphics/digikam/-/commit/abcadfdc91601fe410c67f4abba87117e81aad3e
3. try building against OpenCV 5.1.0
(all dependencies from pkgsrc in case it matters)

OBSERVED RESULT
```
In file included from
/tmp/graphics/digikam/work/digikam-9.1.0/core/libs/facesengine/detection/opencv-dnn/opencvdnnfacedetector.h:26,
                 from
/tmp/graphics/digikam/work/digikam-9.1.0/core/libs/facesengine/detection/facedetector.cpp:26:
/tmp/graphics/digikam/work/digikam-9.1.0/_KDE_build/core/app/utils/digikam_opencv.h:80:10:
fatal error: opencv2/ml.hpp: No such file or directory
   80 | #include <opencv2/ml.hpp>
      |          ^~~~~~~~~~~~~~~~
```
I can't find this header in OpenCV 5.0.0 or 5.1.0. It is still included in the
latest version of the digikam git repository as of today.

EXPECTED RESULT
Build succeeds.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): NetBSD 11.99.10/x86_64
KDE Plasma Version: n/a
KDE Frameworks Version: 26.08.0
Qt Version: 6.11.3

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to