summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/opencv
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2022-02-14 18:53:37 +0800
committerKhem Raj <raj.khem@gmail.com>2022-02-14 08:33:23 -0800
commit3f26c46cbd236263ccf332c4357f9e52047e83f7 (patch)
treea4d33a4bb08e0cb1ff0d916361b614605ad6fcc1 /meta-oe/recipes-support/opencv
parent2cfaa708187a8cd0bf15c638565b386f8b96414c (diff)
downloadmeta-openembedded-3f26c46cbd236263ccf332c4357f9e52047e83f7.tar.gz
opencv: disable sse4.1 and sse4.2 on x86
Disable sse4.1 and sse4.2 on x86 to fix the below build failure [1]. | ./opencv-4.5.5/git/modules/gapi/src/backends/fluid/gfluidcore_simd_sse41.hpp:387:47: error: '_mm_insert_epi64' was not declared in this scope; did you mean '_mm_insert_epi8'? 387 | val_0 = _mm_unpacklo_epi8(_mm_insert_epi64(val_0, reinterpret_cast<const int64_t>(&tmp[4 * (chanNum * mapsx[x + 1] + 1)]), 0), zero); | ^~~~~~~~~~~~~~~~ | _mm_insert_epi8 [1] https://github.com/opencv/opencv/issues/21597 Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/opencv')
-rw-r--r--meta-oe/recipes-support/opencv/opencv_4.5.5.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv_4.5.5.bb b/meta-oe/recipes-support/opencv/opencv_4.5.5.bb
index 9627190bd9..a3affa701d 100644
--- a/meta-oe/recipes-support/opencv/opencv_4.5.5.bb
+++ b/meta-oe/recipes-support/opencv/opencv_4.5.5.bb
@@ -100,6 +100,9 @@ EXTRA_OECMAKE = "-DOPENCV_EXTRA_MODULES_PATH=${WORKDIR}/contrib/modules \
100 ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)} \ 100 ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)} \
101" 101"
102EXTRA_OECMAKE:append:x86 = " -DX86=ON" 102EXTRA_OECMAKE:append:x86 = " -DX86=ON"
103# disable sse4.1 and sse4.2 to fix 32bit build failure
104# https://github.com/opencv/opencv/issues/21597
105EXTRA_OECMAKE:remove:x86 = " -DENABLE_SSE41=1 -DENABLE_SSE42=1"
103 106
104PACKAGECONFIG ??= "gapi python3 eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 \ 107PACKAGECONFIG ??= "gapi python3 eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 \
105 ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \ 108 ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \