aboutsummaryrefslogtreecommitdiff
path: root/graphics/nomacs/opencv4.diff
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2018-12-10 15:01:50 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-15 20:44:27 +0700
commit936054a1ec01d10635a2b363967084ec1c4cfa8f (patch)
treeaf497be133810b9db6bb28d59fef79e37c130153 /graphics/nomacs/opencv4.diff
parent0880326f7cebb30e8334b82b72aa430e03e55f51 (diff)
graphics/nomacs: Patch for the newer opencv.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/nomacs/opencv4.diff')
-rw-r--r--graphics/nomacs/opencv4.diff33
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/nomacs/opencv4.diff b/graphics/nomacs/opencv4.diff
new file mode 100644
index 000000000000..7bd2969bcc59
--- /dev/null
+++ b/graphics/nomacs/opencv4.diff
@@ -0,0 +1,33 @@
+--- plugins/FakeMiniaturesPlugin/src/DkFakeMiniaturesDialog.h.orig 2018-06-05 18:21:41.000000000 +1000
++++ plugins/FakeMiniaturesPlugin/src/DkFakeMiniaturesDialog.h 2018-11-28 23:01:53.711000000 +1000
+@@ -44,8 +44,9 @@
+ #pragma warning(disable: 4996)
+ #endif
+
+-#include "opencv2/core/core.hpp"
+-#include "opencv2/imgproc/imgproc.hpp"
++#include "opencv4/opencv2/core/core.hpp"
++#include "opencv4/opencv2/imgproc/imgproc.hpp"
++#include "opencv4/opencv2/imgproc/types_c.h"
+
+ using namespace cv;
+ #endif
+@@ -263,4 +264,4 @@
+ ~DkSaturation();
+ };
+
+-};
+\ No newline at end of file
++};
+--- plugins/PageExtractionPlugin/src/DkPageSegmentationUtils.h.orig 2018-11-28 23:15:54.600000000 +1000
++++ plugins/PageExtractionPlugin/src/DkPageSegmentationUtils.h 2018-11-28 23:20:57.093000000 +1000
+@@ -27,7 +27,8 @@
+ #include "DkMath.h"
+
+ #pragma warning(push, 0) // no warnings from includes - begin
+-#include <opencv2/core/core.hpp>
++#include <opencv4/opencv2/core/core.hpp>
++#include <opencv4/opencv2/imgproc/imgproc_c.h>
+ #include <QString>
+ #pragma warning(pop) // no warnings from includes - end
+