GNOME Bugzilla – Bug 702297
opencv: build broken - c++ header indirectly included into c code (gstsegmentation.h contains a .hpp)
Last modified: 2013-06-18 11:49:48 UTC
Created attachment 246861 [details] [review] move c++ header include from c header to c++ implementation ext/opencv/gstsegmentation.h include a c++ header (thus failure to build since gcc fails to find c++ list container) . since commit c313e1d3 . moving #include <opencv2/video/background_segm.hpp> from the header to the implementation of gstsegmentation fixes the issue 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.
LGTM, sorry I missed it.
commit 90b51562ab7956c4fe7893ebb45f8cf44772901b Author: Alban Browaeys <prahal@yahoo.com> Date: Sat Jun 15 00:12:18 2013 +0200 opencv: fixes build by moving the c++ header to gstsegmentation.cpp 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
Also needed this here: commit 67e71d7931b3573663ff31ae0e4ffff225f2b163 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Tue Jun 18 12:46:07 2013 +0100 opencv: fix CFLAGS order and add plugins base libs includes to CXXFLAGS https://bugzilla.gnome.org/show_bug.cgi?id=702297