From 92456967d0fbdb57f7bf089b06d930b7d30bc417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 10 Jul 2020 14:56:50 +0100 Subject: [PATCH] opencv: suppress warnings about non-existent include dirs Looks like opencv4 ships with a broken .pc file. Part-of: --- ext/opencv/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build index 8434628e5f..9ee306501a 100644 --- a/ext/opencv/meson.build +++ b/ext/opencv/meson.build @@ -103,6 +103,10 @@ if opencv_found endif if opencv_found + # opencv4 seems to ship with .pc file that references non-existent include dir + # (/usr/include/opencv4/opencv instead of /usr/include/opencv4/opencv2) + gstopencv_cargs += cxx.get_supported_arguments(['-Wno-missing-include-dirs']) + gstopencv = library('gstopencv', gstopencv_sources, cpp_args : gst_plugins_bad_args + gstopencv_cargs + [ '-DGST_USE_UNSTABLE_API' ],