OpenCV package fails when added to rootfs

Hi,

This used to work, but seems to have stopped. The opencv packaged shipped with openembedded cannot be installed onto a rootfs. It fails with

log_check: There were error messages in the logfile

log_check: Matched keyword: [Cannot find package]
Collected errors:

  • Cannot find package opencv.
  • export D=/exports/john_tmp/built/rootfs

Im not experienced with BB to be able to fix this, as everything else in the recipe looks fine to me. Can someone please take a look at this?

Thanks

John

The opencv recipe will not generate an 'opencv' packages, as that will be fairly useless since opencv is a library. To include the opencv libs you can do a number of things:

1) include a package that links against an opencv lib, shlib deps will pull libcv<something> in automagically
2) include 'opencv-apps'
3) include 'opencv-samples'

not that 2) and 3) are the same as 1).

Speaking about opencv, does anyone know how to *cross*-compile opencv with octave support?

regards,

Koen

That should have read "note", not "not".

regards,

koen

Hi,

This used to work, but seems to have stopped. The opencv packaged shipped with openembedded cannot be installed onto a rootfs. It fails with

log_check: There were error messages in the logfile

log_check: Matched keyword: [Cannot find package]
Collected errors:

  • Cannot find package opencv.
  • export D=/exports/john_tmp/built/rootfs

Im not experienced with BB to be able to fix this, as everything else in the recipe looks fine to me. Can someone please take a look at this?

The opencv recipe will not generate an ‘opencv’ packages, as that will be fairly useless since opencv is a library. To include the opencv libs you can do a number of things:

  1. include a package that links against an opencv lib, shlib deps will pull libcv in automagically
  2. include ‘opencv-apps’
  3. include ‘opencv-samples’

not that 2) and 3) are the same as 1).

Thanks!

This answer also clears up a big piece of OE logic that I was not understanding.

Regards

John

Btw, how to install the opencv and opencv samples from OE into angstrom?

Btw, how to install the opencv and opencv samples from OE into angstrom?

'opkg update ; opkg install opencv-samples'. It doesn't install datafiles like haarcascades, but if you download a haarcascade manually you can run the facedetect sample: OpenCV facedetect running on the beagleboard | The facedetec… | Flickr

regards,

Koen