[Digikam-devel] [digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x
Viktor Jancik
vjancik at redhat.com
Tue Aug 18 17:48:14 BST 2015
https://bugs.kde.org/show_bug.cgi?id=349601
Viktor Jancik <vjancik at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vjancik at redhat.com
--- Comment #6 from Viktor Jancik <vjancik at redhat.com> ---
Created attachment 94096
--> https://bugs.kde.org/attachment.cgi?id=94096&action=edit
libkface-15.04.2-opencv3.patch
I found an additional error,
The haarcascade files are located in /usr/share/OpenCV/haarcascades, which can
be seen by running:
rpm -ql opencv
If you have opencv version 3 installed.
However the original ${OpenCV_DIR} points to the base of the OpenCV library
directory.
As described here: http://code.opencv.org/attachments/196/FindOpenCV.cmake
Specifically /usr/lib64/OpenCV
Instead, {OpenCV_SHARED} should be used which points to /usr/share/OpenCV as
described here:
https://github.com/Itseez/opencv/blob/master/cmake/OpenCVConfig.cmake
The values of these variables can be verified after building by looking at
CMake Cache.txt
Additionally I changed the minimum required version to 3.0.0 because I am not
sure if the changes also build for OpenCV version 2.4, this needs to be
checked.
And lastly I included face.hpp instead of face/facerec.hpp but they include
each other so it's the same.
The successful build with these changes can be seen here:
https://copr.fedoraproject.org/coprs/vjancik/opencv3-deps/build/109623/
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list