# GTK compilation issue
__condition__ : "VARS.dist in ['CO6']"
'APPLICATION.products.opencv' : '2.4.13.5'
+ # Since OpenCV 4.X support, we need additional includes for old 2.X versions
+ 'PRODUCTS.GEOM.default.patches' : ['opencv_backward_compatibility.patch']
'APPLICATION.products.tbb' : '4.4'
'APPLICATION.products.llvm' : '3.9.1-clang'
'APPLICATION.products.mesa' : '13.0.6'
--- /dev/null
+diff --git a/src/ShapeRecognition/ShapeRec_FeatureDetector.hxx b/src/ShapeRecognition/ShapeRec_FeatureDetector.hxx
+index f068387..8c45dac 100644
+--- a/src/ShapeRecognition/ShapeRec_FeatureDetector.hxx
++++ b/src/ShapeRecognition/ShapeRec_FeatureDetector.hxx
+@@ -35,6 +35,8 @@
+ #else
+ #include <opencv2/imgproc/imgproc.hpp>
+ #include <opencv2/highgui/highgui.hpp>
++ #include <opencv2/opencv.hpp>
++ #include <opencv2/legacy/compat.hpp>
+ #endif
+
+ // Qt