OpenCV causes bitbake failure for dey-image-qt : ConnectCore 8X SBC Pro

Several times, different people and different build hosts, we have failed to successfully follow the instructions presented on this page:

https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.0/cc8x/yocto_t_create-build-projects

always the opencv portion fails with the error:

opencv, attempting MIRRORS if available
ERROR: opencv-4.2.0.imx-r0 do_fetch: Fetcher failure: Unable to find revision 7187501b6bc89e111f4dd5694b58151ca98b7d9a in branch 4.2.0_imx even from upstream
ERROR: opencv-4.2.0.imx-r0 do_fetch: Fetcher failure for URL: ‘git://source.codeaurora.org/external/imx/opencv-imx.git;protocol=https;branch=4.2.0_imx;name=opencv’. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/s3dev/workspace/ccimx8x-sbc-pro/tmp/work/aarch64-mx8qxp-dey-linux/opencv/4.2.0.imx-r0/temp/log.do_fetch.24389
ERROR: Task (/usr/local/dey-3.0/sources/meta-digi/meta-digi-dey/recipes-support/opencv/opencv_4.2.0.imx.bb:do_fetch) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 6799 tasks of which 6798 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/usr/local/dey-3.0/sources/meta-digi/meta-digi-dey/recipes-support/opencv/opencv_4.2.0.imx.bb:do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I was able to get around, finally, by commenting out the line
PACKAGECONFIG_append_mx8 = " opencv kms tinycompress"
from the file
/usr/local/dey-3.0/sources/meta-digi/meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.2.imx.bb

but I’m curious as to how the initial/default firmware image was created
(i.e. the ones available here: https://ftp1.digi.com/support/digiembeddedyocto/3.0/r3/images/ccimx8x-sbc-pro-installer.zip)

Many thanks
Ken

This looks like a network error:
ERROR: opencv-4.2.0.imx-r0 do_fetch: Fetcher failure for URL: ‘git://source.codeaurora.org/external/imx/opencv-imx.git;protocol=https;branch=4.2.0_imx;name=opencv’. Unable to fetch URL from any source.

can be temporary. Are you able to access https://source.codeaurora.org/external/imx/opencv-imx.git
from a web browser on the development machine?

This has been going on for weeks. New guy started on the project and even from his home office the same error. No other sources fail to load, and the link above shows “No repositories found” from the dev machine.

please update your yocto tree, the version of the opencv you are trying to pull is pretty old. Here is the line I see when I bitbake the latest dey-3.0r4:
0: opencv-4.4.0.imx-r0 do_package_write_rpm_setscene - 10s (pid 450)

please do
~$ cd /usr/local/dey-3.0
~$ repo init -u https://github.com/digi-embedded/dey-manifest.git -b zeus
~$ repo sync -j8 --no-repo-verify

and then bitbake again
I’ve just done
bitbake opencv -c clean
bitbake opencv
and the build completed successfully
Currently 1 running tasks (0 of 0) 100% | |
0: opencv-4.4.0.imx-r0 do_packagedata_setscene - 0s (pid 2664)

Thanks for that. I was initally using the stable release but switched to the zeus branch after your suggestion.
in this case opencv at least downloads, but fails to build.

so one step further but not complete yet. I must be missing something obvious, or there could not be a precompiled option built to have available for download.

it builds here. What error do you see?

Apologies - PICNIC. It succeeded after undoing something stupid.
Ken

Good news! if your problem is resolved, please click the “Select answer” checkbox.