]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Temporarily patch GEOM on CO6 to compliant with old OpenCV 2.X version
authorQuentin Cozette <quentin.cozette@cea.fr>
Mon, 15 Mar 2021 18:03:10 +0000 (19:03 +0100)
committerQuentin Cozette <quentin.cozette@cea.fr>
Mon, 15 Mar 2021 18:03:10 +0000 (19:03 +0100)
applications/SALOME-master.pyconf
products/patches/opencv_backward_compatibility.patch [new file with mode: 0644]

index b2bb7ff435411da21bd14f5769133f8fbda5132e..066063cd5f906351cce1125af097c0143f783ab9 100644 (file)
@@ -179,6 +179,8 @@ __overwrite__ :
    # 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'
diff --git a/products/patches/opencv_backward_compatibility.patch b/products/patches/opencv_backward_compatibility.patch
new file mode 100644 (file)
index 0000000..870cf04
--- /dev/null
@@ -0,0 +1,13 @@
+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