gst-plugins-bad: fix compilation with opencv 4.3

This commit is contained in:
Luka Blaskovic 2020-04-30 13:26:42 +00:00
parent 2092ed1be3
commit e7d3d3b51f
2 changed files with 15 additions and 0 deletions

View File

@ -104,6 +104,8 @@ in stdenv.mkDerivation rec {
sha256 = "0l1f6kqcl04q7w12a2b4qibcvjz6gqhs0csdv2wbvfd6zndpjm6p";
})
./fix_pkgconfig_includedir.patch
# https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1235
./opencv-4.3.patch
];
nativeBuildInputs = [

View File

@ -0,0 +1,13 @@
diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build
index f38b55d..05b142e 100644
--- a/ext/opencv/meson.build
+++ b/ext/opencv/meson.build
@@ -65,7 +65,7 @@ if opencv_found
endif
endforeach
else
- opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.2.0'], required : false)
+ opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.4.0'], required : false)
opencv_found = opencv_dep.found()
if opencv_found
foreach h : libopencv4_headers