diff --git a/samples/cpp/detect_mser.cpp b/samples/cpp/detect_mser.cpp index 796cfa8046..aa3c59e9fc 100644 --- a/samples/cpp/detect_mser.cpp +++ b/samples/cpp/detect_mser.cpp @@ -1,6 +1,10 @@ #include #include "opencv2/core/opengl.hpp" +#ifndef HAVE_GTK +#include "cvconfig.h" +#else #include "opencv2/cvconfig.h" +#endif #include #include