Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 409524 Details for
Bug 554494
media-plugins/kipi-plugins-4.10.0 fails to build with >=media-libs/opencv-3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to work with OpenCV3
kipicv3.patch (text/plain), 2.25 KB, created by
Adam Stylinski
on 2015-08-20 01:59:12 UTC
(
hide
)
Description:
Patch to work with OpenCV3
Filename:
MIME Type:
Creator:
Adam Stylinski
Created:
2015-08-20 01:59:12 UTC
Size:
2.25 KB
patch
obsolete
>--- digikam-4.12.0/extra/kipi-plugins/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp 2015-08-18 16:06:08.240514617 +0200 >+++ digikam-4.12.0/extra/kipi-plugins/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp 2015-08-18 16:19:07.774476511 +0200 >@@ -89,6 +89,13 @@ const QString HaarClassifierLocator::Pri > const QString HaarClassifierLocator::Private::configClassifierEntry("Classifier"); > > // -------------------------------------------------------- >+#if !(OPENCV_TEST_VERSION(2,5,0)) >+static void cvFillImage( CvArr* mat, double color) >+{ >+ cvSet( mat, cvColorToScalar(color, cvGetElemType(mat)), 0); >+} >+#endif >+ > > int HaarClassifierLocator::findPossibleEyes(double csf, int ngf, const char* classifierFile) > { >--- digikam-4.12.0/extra/kipi-plugins/removeredeyes/plugin/libopencv.h 2015-08-18 13:43:10.380772123 +0200 >+++ digikam-4.12.0/extra/kipi-plugins/removeredeyes/plugin/libopencv.h 2015-08-18 14:18:27.999977347 +0200 >@@ -53,12 +53,13 @@ > > #define OPENCV_MAKE_VERSION(major,minor,patch) (((major) << 16) | ((minor) << 8) | (patch)) > #define OPENCV_VERSION OPENCV_MAKE_VERSION(CV_MAJOR_VERSION,CV_MINOR_VERSION,CV_SUBMINOR_VERSION) >-#define OPENCV_TEST_VERSION(major,minor,patch) ( OPENCV_VERSION >= OPENCV_MAKE_VERSION(major,minor,patch) ) >+#define OPENCV_TEST_VERSION(major,minor,patch) ( OPENCV_VERSION < OPENCV_MAKE_VERSION(major,minor,patch) ) > >-#if OPENCV_TEST_VERSION(2,3,0) >+#include <opencv2/core/core_c.h> >+ >+#if OPENCV_TEST_VERSION(2,5,0) > #include <opencv2/opencv.hpp> > #include <opencv2/highgui/highgui_c.h> >-#include <opencv2/core/core_c.h> > #include <opencv2/legacy/compat.hpp> > #include <opencv/cvaux.h> > #else >--- digikam-4.12.0/extra/kipi-plugins/removeredeyes/test/CMakeLists.txt 2015-08-18 15:08:31.973733608 +0200 >+++ digikam-4.12.0/extra/kipi-plugins/removeredeyes/test/CMakeLists.txt 2015-08-18 15:22:40.113991709 +0200 >@@ -4,7 +4,7 @@ > # Redistribution and use is allowed according to the terms of the BSD license. > # For details see the accompanying COPYING-CMAKE-SCRIPTS file. > >-if(NOT WIN32) >+if(NOT WIN32 AND (${OpenCV_VERSION} VERSION_LESS 3.0.0)) > > include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../plugin > ${CMAKE_CURRENT_SOURCE_DIR}/../libcvblobs
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 554494
:
407006
| 409524