Skip to contentSkip to conversation

opencv: Fix build on x86 platform

PATCH New Ricardo Ribalda Delgado 1 participant 1 message Apr 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v8 6/7 opencv: Fix build on x86 platform

OpenCV wrongly assumes that the X86 variable would be set on Intel 32 bit architectures.

This patch adds the missing definition on those cases.

---
v8:
By popular demand, changing += with = " "

Thanks to Andre McCurdy <[email protected]> and Khem Raj <[email protected]>

 meta-oe/recipes-support/opencv/opencv_3.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/opencv/opencv_3.1.bb +1 -0
index 63955a862d4a..0f6fb63e8587 100644
@@ -45,6 +45,7 @@ EXTRA_OECMAKE = "-DPYTHON2_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DI
                  ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
                  ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
 "
+EXTRA_OECMAKE_append_x86 = " -DX86=ON"
 
 PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb \
                    ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \
Signature · 1 line
2.8.0.rc3