diff --git a/configure.ac b/configure.ac index 37d7859d4c..3630a3ab4c 100644 --- a/configure.ac +++ b/configure.ac @@ -1432,16 +1432,12 @@ AG_GST_CHECK_FEATURE(OPENCV, [opencv plugins], opencv, [ AC_LANG_CPLUSPLUS OLD_CPPFLAGS=$CPPFLAGS CPPFLAGS=$OPENCV_CFLAGS - AC_CHECK_HEADER(highgui.h, HAVE_HIGHGUI="yes", HAVE_HIGHGUI="no") - AC_CHECK_HEADER(cvaux.h, HAVE_CVAUX="yes", HAVE_CVAUX="no") + AC_CHECK_HEADERS(highgui.h opencv2/highgui/highgui.hpp, HAVE_HIGHGUI="yes", HAVE_HIGHGUI="no") CPPFLAGS=$OLD_CPPFLAGS AC_LANG_C if test "x$HAVE_HIGHGUI" = "xno"; then AC_MSG_RESULT(highgui.h could not be found.) HAVE_OPENCV="no" - elif test "x$HAVE_CVAUX" = "xno"; then - AC_MSG_RESULT(cvaux.h could not be found.) - HAVE_OPENCV="no" else HAVE_OPENCV="yes" fi diff --git a/ext/opencv/MotionCells.h b/ext/opencv/MotionCells.h index ee84fd6b5b..c5d4b17a5c 100644 --- a/ext/opencv/MotionCells.h +++ b/ext/opencv/MotionCells.h @@ -46,7 +46,11 @@ #define MOTIONCELLS_H_ #include // includes OpenCV definitions +#ifndef __OPENCV_OLD_CV_H__ #include // includes highGUI definitions +#else +#include // includes highGUI definitions +#endif #include #include #include diff --git a/ext/opencv/gsttemplatematch.h b/ext/opencv/gsttemplatematch.h index 7b4b38852c..7e55ac6cf6 100644 --- a/ext/opencv/gsttemplatematch.h +++ b/ext/opencv/gsttemplatematch.h @@ -48,7 +48,11 @@ #include #include -#include +#ifndef __OPENCV_OLD_CV_H__ +#include // includes highGUI definitions +#else +#include // includes highGUI definitions +#endif G_BEGIN_DECLS /* #defines don't like whitespacey bits */