From c931bc6a7a2d25432fc10b7cdef3cf5ad922f6d5 Mon Sep 17 00:00:00 2001 From: Randy MacLeod Date: Tue, 2 May 2017 14:46:55 -0400 Subject: opencv: disable broken Intel FP16 detection With opencv-3.2, the configuration detects if the target supports half-precision floating-point format. This fails to compile for some Intel targets such as skylake with an error such as: error: '_mm_cvtph_ps' was not declared in this scope The configuration used to work in opencv-3.1 so revert two commits to drop the FP16 detection even though it may make opencv slower. The only change in the configure log is: - FP16: Compiler support is available + FP16: Compiler support is not available The patch should be dropped when a newer version of opencv that includes commit: https://github.com/opencv/opencv/commit/e5d9b608c47d54e43496041595025fa282fa9de5 is available. Backporting that fix was complicated. Signed-off-by: Randy MacLeod Signed-off-by: Martin Jansa --- meta-oe/recipes-support/opencv/opencv_3.2.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-oe/recipes-support/opencv/opencv_3.2.bb') diff --git a/meta-oe/recipes-support/opencv/opencv_3.2.bb b/meta-oe/recipes-support/opencv/opencv_3.2.bb index 2cff212ab..98b6b0652 100644 --- a/meta-oe/recipes-support/opencv/opencv_3.2.bb +++ b/meta-oe/recipes-support/opencv/opencv_3.2.bb @@ -27,6 +27,8 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \ file://fixpkgconfig.patch \ file://uselocalxfeatures.patch;patchdir=../contrib/ \ file://useoeprotobuf.patch;patchdir=../contrib/ \ + file://0001-Revert-cuda-fix-fp16-compilation.patch \ + file://0002-Revert-check-FP16-build-condition-correctly.patch \ " PV = "3.2+git${SRCPV}" -- cgit v1.2.3-54-g00ecf