Building OpenCV Open Embedded Image & SDK

Hi,

I’m trying to build an OE image with OpenCV included starting from this article, but I’m getting an error on this command:
repo init -u https://git.toradex.com/toradex-manifest.git -b dunfell-5.x.y -m tdxref/default.xml

File "/home/alex/oe-core/.repo/repo/main.py", line 79
    file=sys.stderr)
        ^
SyntaxError: invalid syntax

repo Supported Python Versions

sometimes this is quite a problem if you are using an older linux e.g. Debian 9

solution from my bookmarks
How to Install Python 3.7 on Debian 9

1 Like

Thank you. Have managed to progress past that. Have modified the local.conf file to include opencv, but getting this error when trying to run bitbake tdx-reference-multimedia-image

ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/home/alex/oe-core/build/bitbake-cookerdaemon.log):
— Starting bitbake server pid 9623 at 2021-11-09 21:12:50.163164 —
ERROR: The following layer directories do not exist:
ERROR: /home/alex/oe-core/build/…/layers/meta-yocto/meta-poky
ERROR: Please check BBLAYERS in /home/alex/oe-core/build/conf/bblayers.conf

You might want to check out TipsAndTricks/CropsCLIContainers - Yocto Project
It saved me from upgrading a beasty older machine tied to other builds and allowed me to build for toradex/yocto/bitbake.

1 Like

Thanks! Managed to move past the error, but it seems like some repositories aren’t available?

WARNING: atk-2.34.1-r0 do_fetch: Failed to fetch URL https://download.gnome.org/sources//atk/2.34/atk-2.34.1.tar.xz;name=archive, attempting MIRRORS if available
WARNING: u-boot-toradex-2020.04-r0 do_fetch: Failed to fetch URL git://git.toradex.com/u-boot-toradex.git;protocol=https;branch=toradex_imx_v2020.04_5.4.70_2.3.0, attempting MIRRORS if available
ERROR: u-boot-toradex-2020.04-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH=“/home/alex/oe-core/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/alex/oe-core/build/tmp/work/apalis_imx8-tdx-linux/u-boot-toradex/2020.04-r0/recipe-sysroot-native/usr/bin/python3-native:/home/alex/oe-core/layers/openembedded-core/scripts:/home/alex/oe-core/build/tmp/work/apalis_imx8-tdx-linux/u-boot-toradex/2020.04-r0/recipe-sysroot-native/usr/bin/aarch64-tdx-linux:/home/alex/oe-core/build/tmp/work/apalis_imx8-tdx-linux/u-boot-toradex/2020.04-r0/recipe-sysroot/usr/bin/crossscripts:/home/alex/oe-core/build/tmp/work/apalis_imx8-tdx-linux/u-boot-toradex/2020.04-r0/recipe-sysroot-native/usr/sbin:/home/alex/oe-core/build/tmp/work/apalis_imx8-tdx-linux/u-boot-toradex/2020.04-r0/recipe-sysroot-native/usr/bin:/home/alex/oe-core/build/tmp/work/apalis_imx8-tdx-linux/u-boot-toradex/2020.04-r0/recipe-sysroot-native/sbin:/home/alex/oe-core/build/tmp/work/apalis_imx8-tdx-linux/u-boot-toradex/2020.04-r0/recipe-sysroot-native/bin:/home/alex/oe-core/layers/openembedded-core/bitbake/bin:/home/alex/oe-core/build/tmp/hosttools”; export HOME=“/home/alex”; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror “Index of /u-boot-toradex.git” /home/alex/oe-core/build/…/downloads/git2/git.toradex.com.u-boot-toradex.git --progress failed with exit code 128, no output
ERROR: u-boot-toradex-2020.04-r0 do_fetch: Bitbake Fetcher Error: FetchError(‘Unable to fetch URL from any source.’, ‘git://git.toradex.com/u-boot-toradex.git;protocol=https;branch=toradex_imx_v2020.04_5.4.70_2.3.0’)
ERROR: Logfile of failure stored in: /home/alex/oe-core/build/tmp/work/apalis_imx8-tdx-linux/u-boot-toradex/2020.04-r0/temp/log.do_fetch.22212
ERROR: Task (/home/alex/oe-core/build/…/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2020.04.bb:do_fetch) failed with exit code ‘1’

Have managed to build the image in the end, just by redoing all the steps. I guess the Git repositories weren’t accessible at that time.