From 260a82e514b1e2bba271c1c7df3fbbe66bb0027c Mon Sep 17 00:00:00 2001 From: "youngsoo.lee" Date: Wed, 30 Jun 2021 13:56:49 +0900 Subject: [PATCH] opencv: Fix build error on macOS The build fails on macos with the following error: /usr/local/Cellar/opencv/4.5.0_5/include/opencv4/opencv2/core/mat.hpp:2226:15: error: no template named 'initializer_list' in namespace 'std' Mat_(std::initializer_list<_Tp> values); fatal error: too many errors emitted, stopping now [-ferror-limit=] 35 warnings and 20 errors generated. Part-of: --- gst-libs/gst/opencv/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/opencv/meson.build b/gst-libs/gst/opencv/meson.build index 6c6c6a5155..16e0746a7a 100644 --- a/gst-libs/gst/opencv/meson.build +++ b/gst-libs/gst/opencv/meson.build @@ -29,6 +29,7 @@ if opencv_dep.found() opencv_sources, c_args : gst_plugins_bad_args + ['-DBUILDING_GST_OPENCV'], cpp_args : gst_plugins_bad_args + gstopencv_cargs + ['-DBUILDING_GST_OPENCV'], + override_options : ['cpp_std=c++11'], include_directories : [configinc, libsinc], version : libversion, soversion : soversion,