* [meta-oe][PATCH v7 1/7] opencv: Fix use before set error on meta package
2016-04-01 21:36 [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Ricardo Ribalda Delgado
@ 2016-04-01 21:36 ` Ricardo Ribalda Delgado
2016-04-01 21:36 ` [meta-oe][PATCH v7 2/7] opencv: Update to version 3.1 Ricardo Ribalda Delgado
` (6 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-04-01 21:36 UTC (permalink / raw)
To: Martin Jansa, Andre McCurdy, Lukas Bulwahn, openembedded-devel
This bug was introducing a loop dependency of opencv->opencv that was
confusing dpkg.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
meta-oe/recipes-support/opencv/opencv_3.0.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/recipes-support/opencv/opencv_3.0.bb b/meta-oe/recipes-support/opencv/opencv_3.0.bb
index 99ca8b35727d..f6c4ca8fac16 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.0.bb
+++ b/meta-oe/recipes-support/opencv/opencv_3.0.bb
@@ -86,8 +86,8 @@ python populate_packages_prepend () {
metapkg_rdepends.append(pkg)
d.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rdepends))
- blacklist = [ metapkg ]
metapkg = pn
+ blacklist = [ metapkg ]
metapkg_rdepends = [ ]
for pkg in packages[1:]:
if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-dbg') and not pkg.endswith('-doc') :
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [meta-oe][PATCH v7 2/7] opencv: Update to version 3.1
2016-04-01 21:36 [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Ricardo Ribalda Delgado
2016-04-01 21:36 ` [meta-oe][PATCH v7 1/7] opencv: Fix use before set error on meta package Ricardo Ribalda Delgado
@ 2016-04-01 21:36 ` Ricardo Ribalda Delgado
2016-04-01 21:36 ` [meta-oe][PATCH v7 3/7] opencv: Fix pkg-config file Ricardo Ribalda Delgado
` (5 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-04-01 21:36 UTC (permalink / raw)
To: Martin Jansa, Andre McCurdy, Lukas Bulwahn, openembedded-devel
The first major update in 3.0 release series
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
meta-oe/recipes-support/opencv/{opencv_3.0.bb => opencv_3.1.bb} | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
rename meta-oe/recipes-support/opencv/{opencv_3.0.bb => opencv_3.1.bb} (97%)
diff --git a/meta-oe/recipes-support/opencv/opencv_3.0.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
similarity index 97%
rename from meta-oe/recipes-support/opencv/opencv_3.0.bb
rename to meta-oe/recipes-support/opencv/opencv_3.1.bb
index f6c4ca8fac16..b8fb6a51376f 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.0.bb
+++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
@@ -10,15 +10,15 @@ ARM_INSTRUCTION_SET_armv5 = "arm"
DEFAULT_PREFERENCE = "-1"
-DEPENDS = "python-numpy libtool swig swig-native python bzip2 zlib glib-2.0"
+DEPENDS = "python-numpy libtool swig swig-native python bzip2 zlib glib-2.0 libwebp"
-SRCREV_opencv = "424c2bddb39dae97dc4639a24eaa0e0c8fbb8e69"
-SRCREV_contrib = "844c30e8b2f2f4b34b96a169fafe9beea3c45e87"
+SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a"
+SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c"
SRCREV_FORMAT = "opencv"
SRC_URI = "git://github.com/Itseez/opencv.git;name=opencv \
git://github.com/Itseez/opencv_contrib.git;destsuffix=contrib;name=contrib"
-PV = "3.0+git${SRCPV}"
+PV = "3.1+git${SRCPV}"
S = "${WORKDIR}/git"
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [meta-oe][PATCH v7 3/7] opencv: Fix pkg-config file.
2016-04-01 21:36 [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Ricardo Ribalda Delgado
2016-04-01 21:36 ` [meta-oe][PATCH v7 1/7] opencv: Fix use before set error on meta package Ricardo Ribalda Delgado
2016-04-01 21:36 ` [meta-oe][PATCH v7 2/7] opencv: Update to version 3.1 Ricardo Ribalda Delgado
@ 2016-04-01 21:36 ` Ricardo Ribalda Delgado
2016-04-01 21:36 ` [meta-oe][PATCH v7 4/7] opencv: Add missing dependencies Ricardo Ribalda Delgado
` (4 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-04-01 21:36 UTC (permalink / raw)
To: Martin Jansa, Andre McCurdy, Lukas Bulwahn, openembedded-devel
Libdir was pointing to the wrong location
also fix for QA Issue: opencv.pc failed sanity test (tmpdir) in path
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
.../opencv/opencv/fixpkgconfig.patch | 29 ++++++++++++++++++++++
meta-oe/recipes-support/opencv/opencv_3.1.bb | 3 ++-
2 files changed, 31 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch
diff --git a/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch b/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch
new file mode 100644
index 000000000000..3aeda7d4439d
--- /dev/null
+++ b/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch
@@ -0,0 +1,29 @@
+diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake
+index b8cb8777c06b..75281ee964fd 100644
+--- a/cmake/OpenCVGenPkgconfig.cmake
++++ b/cmake/OpenCVGenPkgconfig.cmake
+@@ -27,7 +27,7 @@ macro(fix_prefix lst isown)
+ get_filename_component(libdir "${item}" PATH)
+ get_filename_component(libname "${item}" NAME_WE)
+ string(REGEX REPLACE "^lib(.*)" "\\1" libname "${libname}")
+- list(APPEND _lst "-L${libdir}" "-l${libname}")
++ list(APPEND _lst "-l${libname}")
+ else()
+ list(APPEND _lst "-l${item}")
+ endif()
+@@ -66,10 +66,14 @@ ocv_list_unique(_3rdparty)
+
+ set(OPENCV_PC_LIBS
+ "-L\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}"
++ "-L\${exec_prefix}/${OPENCV_3P_LIB_INSTALL_PATH}"
+ "${_modules}"
+ )
+ if (BUILD_SHARED_LIBS)
+- set(OPENCV_PC_LIBS_PRIVATE "${_extra}")
++ set(OPENCV_PC_LIBS_PRIVATE
++ "-L\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}"
++ "${_extra}"
++ )
+ else()
+ set(OPENCV_PC_LIBS_PRIVATE
+ "-L\${exec_prefix}/${OPENCV_3P_LIB_INSTALL_PATH}"
diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
index b8fb6a51376f..6f0c83829809 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
+++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
@@ -16,7 +16,8 @@ SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a"
SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c"
SRCREV_FORMAT = "opencv"
SRC_URI = "git://github.com/Itseez/opencv.git;name=opencv \
- git://github.com/Itseez/opencv_contrib.git;destsuffix=contrib;name=contrib"
+ git://github.com/Itseez/opencv_contrib.git;destsuffix=contrib;name=contrib \
+ file://fixpkgconfig.patch"
PV = "3.1+git${SRCPV}"
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [meta-oe][PATCH v7 4/7] opencv: Add missing dependencies
2016-04-01 21:36 [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Ricardo Ribalda Delgado
` (2 preceding siblings ...)
2016-04-01 21:36 ` [meta-oe][PATCH v7 3/7] opencv: Fix pkg-config file Ricardo Ribalda Delgado
@ 2016-04-01 21:36 ` Ricardo Ribalda Delgado
2016-04-01 21:36 ` [meta-oe][PATCH v7 5/7] opencv: Use pre-downloaded ipp Ricardo Ribalda Delgado
` (3 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-04-01 21:36 UTC (permalink / raw)
To: Martin Jansa, Andre McCurdy, Lukas Bulwahn, openembedded-devel
opencv-3.1+gitAUTOINC+92387b1ef8: libopencv-videoio rdepends on
libgphotoport, but it isn't a build dependency, missing libgphoto2 in
DEPENDS or PACKAGECONFIG? [build-deps]
opencv-3.1+gitAUTOINC+92387b1ef8: libopencv-videoio rdepends on
libgphoto2, but it isn't a build dependency, missing libgphoto2 in
DEPENDS or PACKAGECONFIG? [build-deps]
opencv-3.1+gitAUTOINC+92387b1ef8: libopencv-dnn rdepends on protobuf,
but it isn't a build dependency, missing protobuf in DEPENDS or
PACKAGECONFIG? [build-deps]
Credit-to: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
meta-oe/recipes-support/opencv/opencv_3.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
index 6f0c83829809..de6d8d9fe345 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
+++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
@@ -10,7 +10,7 @@ ARM_INSTRUCTION_SET_armv5 = "arm"
DEFAULT_PREFERENCE = "-1"
-DEPENDS = "python-numpy libtool swig swig-native python bzip2 zlib glib-2.0 libwebp"
+DEPENDS = "python-numpy libtool swig swig-native python bzip2 zlib glib-2.0 libwebp libgphoto2 protobuf protobuf-native"
SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a"
SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c"
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [meta-oe][PATCH v7 5/7] opencv: Use pre-downloaded ipp
2016-04-01 21:36 [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Ricardo Ribalda Delgado
` (3 preceding siblings ...)
2016-04-01 21:36 ` [meta-oe][PATCH v7 4/7] opencv: Add missing dependencies Ricardo Ribalda Delgado
@ 2016-04-01 21:36 ` Ricardo Ribalda Delgado
2016-04-01 21:36 ` [meta-oe][PATCH v7 6/7] opencv: Fix build on x86 platform Ricardo Ribalda Delgado
` (2 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-04-01 21:36 UTC (permalink / raw)
To: Martin Jansa, Andre McCurdy, Lukas Bulwahn, openembedded-devel
We should not rely on cmake downloading ipp at configure time.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
...01-3rdparty-ippicv-Use-pre-downloaded-ipp.patch | 28 ++++++++++++++++++++++
meta-oe/recipes-support/opencv/opencv_3.1.bb | 12 ++++++++++
2 files changed, 40 insertions(+)
create mode 100644 meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch b/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch
new file mode 100644
index 000000000000..d568018b8d91
--- /dev/null
+++ b/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch
@@ -0,0 +1,28 @@
+From 049f931207631aa54af55a2917318d032b2ef3fa Mon Sep 17 00:00:00 2001
+From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
+Date: Thu, 31 Mar 2016 00:20:15 +0200
+Subject: [PATCH] 3rdparty/ippicv: Use pre-downloaded ipp
+
+Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
+---
+ 3rdparty/ippicv/downloader.cmake | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/3rdparty/ippicv/downloader.cmake b/3rdparty/ippicv/downloader.cmake
+index a6016dbe10bc..af4062c8e95e 100644
+--- a/3rdparty/ippicv/downloader.cmake
++++ b/3rdparty/ippicv/downloader.cmake
+@@ -31,8 +31,10 @@ function(_icv_downloader)
+ return() # Not supported
+ endif()
+
++ if(NOT DEFINED OPENCV_ICV_PATH)
+ set(OPENCV_ICV_UNPACK_PATH "${CMAKE_CURRENT_LIST_DIR}/unpack")
+ set(OPENCV_ICV_PATH "${OPENCV_ICV_UNPACK_PATH}${OPENCV_ICV_PACKAGE_SUBDIR}")
++ endif()
+
+ if(DEFINED OPENCV_ICV_PACKAGE_DOWNLOADED
+ AND OPENCV_ICV_PACKAGE_DOWNLOADED STREQUAL OPENCV_ICV_PACKAGE_HASH
+--
+2.8.0.rc3
+
diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
index de6d8d9fe345..63955a862d4a 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
+++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
@@ -14,19 +14,31 @@ DEPENDS = "python-numpy libtool swig swig-native python bzip2 zlib glib-2.0 libw
SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a"
SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c"
+SRCREV_party3 = "81a676001ca8075ada498583e4166079e5744668"
+IPP_MD5 = "808b791a6eac9ed78d32a7666804320e"
+
SRCREV_FORMAT = "opencv"
SRC_URI = "git://github.com/Itseez/opencv.git;name=opencv \
git://github.com/Itseez/opencv_contrib.git;destsuffix=contrib;name=contrib \
+ git://github.com/Itseez/opencv_3rdparty.git;branch=ippicv/master_20151201;destsuffix=party3;name=party3 \
+ file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \
file://fixpkgconfig.patch"
PV = "3.1+git${SRCPV}"
S = "${WORKDIR}/git"
+do_unpack_extra() {
+ tar xzf ${WORKDIR}/party3/ippicv/ippicv_linux_20151201.tgz -C ${WORKDIR}
+}
+addtask unpack_extra after do_unpack before do_patch
+
EXTRA_OECMAKE = "-DPYTHON2_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/include \
-DOPENCV_EXTRA_MODULES_PATH=${WORKDIR}/contrib/modules \
-DWITH_1394=OFF \
-DCMAKE_SKIP_RPATH=ON \
+ -DOPENCV_ICV_PACKAGE_DOWNLOADED=${IPP_MD5} \
+ -DOPENCV_ICV_PATH=${WORKDIR}/ippicv_lnx \
${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \
${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \
${@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)} \
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [meta-oe][PATCH v7 6/7] opencv: Fix build on x86 platform
2016-04-01 21:36 [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Ricardo Ribalda Delgado
` (4 preceding siblings ...)
2016-04-01 21:36 ` [meta-oe][PATCH v7 5/7] opencv: Use pre-downloaded ipp Ricardo Ribalda Delgado
@ 2016-04-01 21:36 ` Ricardo Ribalda Delgado
2016-04-01 21:46 ` Andre McCurdy
2016-04-01 21:36 ` [meta-oe][PATCH v7 7/7] opencv: Remove blacklist Ricardo Ribalda Delgado
2016-04-03 11:48 ` [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Martin Jansa
7 siblings, 1 reply; 13+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-04-01 21:36 UTC (permalink / raw)
To: Martin Jansa, Andre McCurdy, Lukas Bulwahn, openembedded-devel
OpenCV wrongly assumes that the X86 variable would be set on Intel 32
bit architectures.
This patch adds the missing definition on those cases.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
meta-oe/recipes-support/opencv/opencv_3.1.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
index 63955a862d4a..b89fbbb214f6 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
+++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
@@ -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)} \
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [meta-oe][PATCH v7 6/7] opencv: Fix build on x86 platform
2016-04-01 21:36 ` [meta-oe][PATCH v7 6/7] opencv: Fix build on x86 platform Ricardo Ribalda Delgado
@ 2016-04-01 21:46 ` Andre McCurdy
2016-04-01 21:57 ` Ricardo Ribalda Delgado
0 siblings, 1 reply; 13+ messages in thread
From: Andre McCurdy @ 2016-04-01 21:46 UTC (permalink / raw)
To: Ricardo Ribalda Delgado; +Cc: openembedded-devel
On Fri, Apr 1, 2016 at 2:36 PM, Ricardo Ribalda Delgado
<ricardo.ribalda@gmail.com> wrote:
> OpenCV wrongly assumes that the X86 variable would be set on Intel 32
> bit architectures.
>
> This patch adds the missing definition on those cases.
>
> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
> ---
> meta-oe/recipes-support/opencv/opencv_3.1.bb | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
> index 63955a862d4a..b89fbbb214f6 100644
> --- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
> +++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
> @@ -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"
That should be:
EXTRA_OECMAKE_append_x86 = " -DX86=ON"
Note the leading space. See:
http://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending-override-style-syntax
>
> PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb \
> ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \
> --
> 2.8.0.rc3
>
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [meta-oe][PATCH v7 6/7] opencv: Fix build on x86 platform
2016-04-01 21:46 ` Andre McCurdy
@ 2016-04-01 21:57 ` Ricardo Ribalda Delgado
2016-04-01 22:16 ` Khem Raj
2016-04-01 22:23 ` Andre McCurdy
0 siblings, 2 replies; 13+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-04-01 21:57 UTC (permalink / raw)
To: Andre McCurdy; +Cc: openembeded-devel
Hi Andre
+= does not add the leading space?
http://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending-override-style-syntax
I thought += was preferred.
I am confused. What shall I resend += " foo" or = " foo" ?
Regards
On Fri, Apr 1, 2016 at 11:46 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
> On Fri, Apr 1, 2016 at 2:36 PM, Ricardo Ribalda Delgado
> <ricardo.ribalda@gmail.com> wrote:
>> OpenCV wrongly assumes that the X86 variable would be set on Intel 32
>> bit architectures.
>>
>> This patch adds the missing definition on those cases.
>>
>> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
>> ---
>> meta-oe/recipes-support/opencv/opencv_3.1.bb | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
>> index 63955a862d4a..b89fbbb214f6 100644
>> --- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
>> +++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
>> @@ -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"
>
> That should be:
>
> EXTRA_OECMAKE_append_x86 = " -DX86=ON"
>
> Note the leading space. See:
>
> http://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending-override-style-syntax
>
>>
>> PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb \
>> ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \
>> --
>> 2.8.0.rc3
>>
--
Ricardo Ribalda
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [meta-oe][PATCH v7 6/7] opencv: Fix build on x86 platform
2016-04-01 21:57 ` Ricardo Ribalda Delgado
@ 2016-04-01 22:16 ` Khem Raj
2016-04-01 22:23 ` Andre McCurdy
1 sibling, 0 replies; 13+ messages in thread
From: Khem Raj @ 2016-04-01 22:16 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2389 bytes --]
> On Apr 1, 2016, at 2:57 PM, Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> wrote:
>
> Hi Andre
>
> += does not add the leading space?
>
> http://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending-override-style-syntax
>
> I thought += was preferred.
its not a designed behavior but a byproduct.
>
> I am confused. What shall I resend += " foo" or = " foo”
append/prepend without any override style syntax is much cleaner to understand
> ?
>
> Regards
>
> On Fri, Apr 1, 2016 at 11:46 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
>> On Fri, Apr 1, 2016 at 2:36 PM, Ricardo Ribalda Delgado
>> <ricardo.ribalda@gmail.com> wrote:
>>> OpenCV wrongly assumes that the X86 variable would be set on Intel 32
>>> bit architectures.
>>>
>>> This patch adds the missing definition on those cases.
>>>
>>> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
>>> ---
>>> meta-oe/recipes-support/opencv/opencv_3.1.bb | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
>>> index 63955a862d4a..b89fbbb214f6 100644
>>> --- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
>>> +++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
>>> @@ -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"
>>
>> That should be:
>>
>> EXTRA_OECMAKE_append_x86 = " -DX86=ON"
>>
>> Note the leading space. See:
>>
>> http://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending-override-style-syntax
>>
>>>
>>> PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb \
>>> ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \
>>> --
>>> 2.8.0.rc3
>>>
>
>
>
> --
> Ricardo Ribalda
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [meta-oe][PATCH v7 6/7] opencv: Fix build on x86 platform
2016-04-01 21:57 ` Ricardo Ribalda Delgado
2016-04-01 22:16 ` Khem Raj
@ 2016-04-01 22:23 ` Andre McCurdy
1 sibling, 0 replies; 13+ messages in thread
From: Andre McCurdy @ 2016-04-01 22:23 UTC (permalink / raw)
To: Ricardo Ribalda Delgado; +Cc: openembeded-devel
On Fri, Apr 1, 2016 at 2:57 PM, Ricardo Ribalda Delgado
<ricardo.ribalda@gmail.com> wrote:
> Hi Andre
>
> += does not add the leading space?
It does. But the preferred way is not to combine _append and +=.
Therefore if you use _append, you should combine it with = and add the
leading space explicitly.
> http://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending-override-style-syntax
>
> I thought += was preferred.
Where does it say that?
> I am confused. What shall I resend += " foo" or = " foo" ?
Martin's comment (in reply to the v4 patch) was:
"Please don't combine _append and +=. _append and leading space in
value (as you already have) is enough."
The version you should use is:
EXTRA_OECMAKE_append_x86 = " -DX86=ON"
> Regards
>
> On Fri, Apr 1, 2016 at 11:46 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
>> On Fri, Apr 1, 2016 at 2:36 PM, Ricardo Ribalda Delgado
>> <ricardo.ribalda@gmail.com> wrote:
>>> OpenCV wrongly assumes that the X86 variable would be set on Intel 32
>>> bit architectures.
>>>
>>> This patch adds the missing definition on those cases.
>>>
>>> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
>>> ---
>>> meta-oe/recipes-support/opencv/opencv_3.1.bb | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
>>> index 63955a862d4a..b89fbbb214f6 100644
>>> --- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
>>> +++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
>>> @@ -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"
>>
>> That should be:
>>
>> EXTRA_OECMAKE_append_x86 = " -DX86=ON"
>>
>> Note the leading space. See:
>>
>> http://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending-override-style-syntax
>>
>>>
>>> PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb \
>>> ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \
>>> --
>>> 2.8.0.rc3
>>>
>
>
>
> --
> Ricardo Ribalda
^ permalink raw reply [flat|nested] 13+ messages in thread
* [meta-oe][PATCH v7 7/7] opencv: Remove blacklist
2016-04-01 21:36 [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Ricardo Ribalda Delgado
` (5 preceding siblings ...)
2016-04-01 21:36 ` [meta-oe][PATCH v7 6/7] opencv: Fix build on x86 platform Ricardo Ribalda Delgado
@ 2016-04-01 21:36 ` Ricardo Ribalda Delgado
2016-04-03 11:48 ` [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Martin Jansa
7 siblings, 0 replies; 13+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-04-01 21:36 UTC (permalink / raw)
To: Martin Jansa, Andre McCurdy, Lukas Bulwahn, openembedded-devel
Opencv 3.1 builds fine with ffmpeg.
ricardo@neopili:~/curro/qt5022/oe/openembedded-core/build$ bitbake
opencv
Loading cache: 100%
|############################################################################|
ETA: 00:00:00
Loaded 2018 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.29.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Debian-testing"
TARGET_SYS = "i586-oe-linux"
MACHINE = "qemux86"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "m32 i586"
TARGET_FPU = ""
meta = "master:300f858ba07c938427ccd05a3d7220027a03d461"
meta-oe = "master:29462f7161b346dbc2ea00830da869a0a1c35fb9"
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1242 tasks of which 1228 didn't need to
be rerun and all succeeded.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
meta-oe/recipes-support/opencv/opencv_3.1.bb | 2 --
1 file changed, 2 deletions(-)
diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
index b89fbbb214f6..3501db6d16ab 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
+++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
@@ -146,5 +146,3 @@ do_install_append() {
cp -f bin/*-tutorial-* bin/*-example-* ${D}${datadir}/OpenCV/samples/bin/
}
-# http://errors.yoctoproject.org/Errors/Details/40660/
-PNBLACKLIST[opencv] ?= "Not compatible with currently used ffmpeg 3"
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl
2016-04-01 21:36 [meta-oe][PATCH v7 0/7] opencv: Update to 3.1 and remove bl Ricardo Ribalda Delgado
` (6 preceding siblings ...)
2016-04-01 21:36 ` [meta-oe][PATCH v7 7/7] opencv: Remove blacklist Ricardo Ribalda Delgado
@ 2016-04-03 11:48 ` Martin Jansa
7 siblings, 0 replies; 13+ messages in thread
From: Martin Jansa @ 2016-04-03 11:48 UTC (permalink / raw)
To: Ricardo Ribalda Delgado; +Cc: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1614 bytes --]
On Fri, Apr 01, 2016 at 11:36:23PM +0200, Ricardo Ribalda Delgado wrote:
> What can I say... Sorry about all the spam :S. This should have
> never reach v7.
>
> Hopefully all the dependecies are ok this time.
> It also predownloads the Intel IPP, using bitbake.
>
> I have decided to resend the whole patchset because it is now a
> mess of v7, v6, v5...
Previous revision failed like this:
http://errors.yoctoproject.org/Errors/Details/59759/
and latest revision doesn't look to fix this.
Can you double check?
>
> It is also available on
> https://github.com/ribalda/meta-openembedded/tree/opencv-v7
>
> Regards
>
> Ricardo Ribalda Delgado (7):
> opencv: Fix use before set error on meta package
> opencv: Update to version 3.1
> opencv: Fix pkg-config file.
> opencv: Add missing dependencies
> opencv: Use pre-downloaded ipp
> opencv: Fix build on x86 platform
> opencv: Remove blacklist
>
> ...01-3rdparty-ippicv-Use-pre-downloaded-ipp.patch | 28 +++++++++++++++++++++
> .../opencv/opencv/fixpkgconfig.patch | 29 ++++++++++++++++++++++
> .../opencv/{opencv_3.0.bb => opencv_3.1.bb} | 28 +++++++++++++++------
> 3 files changed, 77 insertions(+), 8 deletions(-)
> create mode 100644 meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch
> create mode 100644 meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch
> rename meta-oe/recipes-support/opencv/{opencv_3.0.bb => opencv_3.1.bb} (86%)
>
> --
> 2.8.0.rc3
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread