summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-09-09 15:03:24 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-09-09 15:29:31 +0100
commit960ccc118f69d386933b5383c911b2cc82e9310c (patch)
tree8e0d3603f88bb55a442505f010f9177fe1ef8174 /ext
parent41b9b76fa53c890ed674aa46890b5335edafe602 (diff)
downloadgstreamer-plugins-bad-960ccc118f69d386933b5383c911b2cc82e9310c.tar.gz
opencv: define CV_NO_BACKWARD_COMPATIBILITY to suppress warnings caused by compat header
Compile with -DCV_NO_BACKWARD_COMPATIBILITY for now, so that the compat header doesn't get included, which causes compiler warnings that (it seems) can't be switched off easily. As a result, we also specify a max. version in configure, so the build doesn't break if our code doesn't compile against newer opencv versions any more with that flag.
Diffstat (limited to 'ext')
-rw-r--r--ext/opencv/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/opencv/Makefile.am b/ext/opencv/Makefile.am
index feed68e6a..7ddbe05d1 100644
--- a/ext/opencv/Makefile.am
+++ b/ext/opencv/Makefile.am
@@ -24,7 +24,8 @@ libgstopencv_la_SOURCES = gstopencv.c \
# override CV_INLINE: GLib will take care of defining 'inline' sufficiently and
# OpenCV's define isn't good enough to avoid 'unused' gcc warnings (at v2.1.0)
libgstopencv_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(OPENCV_CFLAGS) \
- $(GST_PLUGINS_BASE_CFLAGS) -DCV_INLINE="static inline"
+ $(GST_PLUGINS_BASE_CFLAGS) -DCV_INLINE="static inline" \
+ -DCV_NO_BACKWARD_COMPATIBILITY
libgstopencv_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(OPENCV_LIBS) \
$(GSTPB_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR)