Skip to contentSkip to conversation

opencv: Add missing dependencies

PATCH In review Ricardo Ribalda Delgado 2 participants 6 messages Mar 21, 2016 – Mar 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opencv: Add missing dependencies

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 <[email protected]>

---
 meta-oe/recipes-support/opencv/opencv_3.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/opencv/opencv_3.1.bb +1 -1
index 87338cad4a4b..e9e85fe2af0a 100644
@@ -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"
 
 SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a"
 SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c"
Signature · 1 line
2.7.0
#1 lore raw
Quoted 9 lines · Ricardo Ribalda Delgado

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]

Still shows:
WARN: opencv: libopencv-dnn rdepends on protobuf, but it isn't a build dependency?

protobuf support in dnn probably depends on something else which is also autodetected.

Quoted 22 lines

Credit-to: Martin Jansa <[email protected]>

---
 meta-oe/recipes-support/opencv/opencv_3.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/opencv/opencv_3.1.bb +1 -1
index 87338cad4a4b..e9e85fe2af0a 100644
@@ -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"
 
 SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a"
 SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c"
Signature · 1 line
2.7.0
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw

Hi Martin

Quoted 5 lines · Martin Jansa

Still shows:
WARN: opencv: libopencv-dnn rdepends on protobuf, but it isn't a build dependency?

protobuf support in dnn probably depends on something else which is also autodetected.

if I just clone a clean version of meta-oe and meta-core and do a bitbake opencv i cannot replicate the error.

Any idea of how to replicate it without having to do a bitbake world before bitbake opencv?

Regards!

#3 lore raw
Quoted 9 lines · Ricardo Ribalda Delgado

Hi Martin

Quoted 4 lines · Martin Jansa

Still shows:
WARN: opencv: libopencv-dnn rdepends on protobuf, but it isn't a build dependency?

Quoted 7 lines
Quoted 1 line

protobuf support in dnn probably depends on something else which is also autodetected.

if I just clone a clean version of meta-oe and meta-core and do a bitbake opencv i cannot replicate the error.

Any idea of how to replicate it without having to do a bitbake world before bitbake opencv?

Check temp/log.do_package if you see protobuf dependency being added for libopencv-dnn package.

If not then read configure script or sources to see what in libopencv-dnn is being autodetected -> then build these autodetected dependencies before rebuilding opencv and re-check the log.do_package file.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw

It's also downloading something during do_configure which isn't acceptable:
http://errors.yoctoproject.org/Errors/Details/57094/

Everything should go through bitbake fetcher and premirror, so that builds are reproducible (even after upstream sites are gone) or when user explicitly disables network access.

Regards,

Quoted 31 lines · Martin Jansa
Quoted 3 lines · Ricardo Ribalda Delgado

Hi Martin

On Wed, Mar 23, 2016 at 11:12 AM, Martin Jansa <[email protected]>

Quoted 7 lines · wrote:
Quoted 7 lines

Still shows:
WARN: opencv: libopencv-dnn rdepends on protobuf, but it isn't a build dependency?

protobuf support in dnn probably depends on something else which is

also autodetected.

Quoted 6 lines

if I just clone a clean version of meta-oe and meta-core and do a bitbake opencv i cannot replicate the error.

Any idea of how to replicate it without having to do a bitbake world before bitbake opencv?

Check temp/log.do_package if you see protobuf dependency being added for libopencv-dnn package.

If not then read configure script or sources to see what in libopencv-dnn is being autodetected -> then build these autodetected dependencies before rebuilding opencv and re-check the log.do_package file.

--
Martin 'JaMa' Jansa jabber: [email protected]

#5 lore raw

Hi Martin

I will take a look to this next week

Thanks!!

Quoted 44 lines · Martin Jansa

It's also downloading something during do_configure which isn't acceptable:
http://errors.yoctoproject.org/Errors/Details/57094/

Everything should go through bitbake fetcher and premirror, so that builds are reproducible (even after upstream sites are gone) or when user explicitly disables network access.

Regards,

Quoted 31 lines · Martin Jansa
Quoted 10 lines · Ricardo Ribalda Delgado

Hi Martin

Quoted 4 lines · Martin Jansa

Still shows:
WARN: opencv: libopencv-dnn rdepends on protobuf, but it isn't a build dependency?

Quoted 8 lines
Quoted 2 lines

protobuf support in dnn probably depends on something else which is also autodetected.

if I just clone a clean version of meta-oe and meta-core and do a bitbake opencv i cannot replicate the error.

Any idea of how to replicate it without having to do a bitbake world before bitbake opencv?

Check temp/log.do_package if you see protobuf dependency being added for libopencv-dnn package.

If not then read configure script or sources to see what in libopencv-dnn is being autodetected -> then build these autodetected dependencies before rebuilding opencv and re-check the log.do_package file.

--
Martin 'JaMa' Jansa jabber: [email protected]

Signature · 1 line
Ricardo Ribalda