opencv: fixes build by moving the c++ header to gstsegmentation.cpp
authorAlban Browaeys <prahal@yahoo.com>
Fri, 14 Jun 2013 22:12:18 +0000 (00:12 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 18 Jun 2013 11:37:26 +0000 (13:37 +0200)
Fixes:
In file included from gstsegmentation.h:51:0,
                 from gstopencv.c:42:
/usr/include/opencv2/video/background_segm.hpp:47:16: fatal error: list:
No such file or directory
 #include <list>
                ^
compilation terminated.

https://bugzilla.gnome.org/show_bug.cgi?id=702297

ext/opencv/gstsegmentation.cpp
ext/opencv/gstsegmentation.h

index 880313e12a0975f0dc3d24e868278f9af085a558..a6b3b10ed7be2121c45be2508d4824d180c7b062 100644 (file)
@@ -93,6 +93,7 @@
 #include <gst/gst.h>
 
 #include "gstsegmentation.h"
+#include <opencv2/video/background_segm.hpp>
 
 GST_DEBUG_CATEGORY_STATIC (gst_segmentation_debug);
 #define GST_CAT_DEFAULT gst_segmentation_debug
index 146ae6cc4f82a2d0706c16a461f901a1513f132e..03577702c025429c1a636bd42ea0641e466377a6 100644 (file)
@@ -48,7 +48,6 @@
 #include <gst/video/gstvideofilter.h>
 
 #include <cv.h>
-#include <opencv2/video/background_segm.hpp>
 
 G_BEGIN_DECLS
 /* #defines don't like whitespacey bits */