Build fail occurs when adding mediatek-experimental-layer to enable onnxruntime for G520

I’m building a yocto linux image for my Genio 520 EVK using the instructions here: Build Genio 720/520 EVK Images from Latest IoT Yocto v25.1-dev

I’m interested in adding the ONNX runtime to my image using the mediatek-experimental-layer mentioned here: ONNX Runtime — IoT Yocto documentation

However, I get the error below. In the link above, step 4 mentions ‘Add the following to your local.conf: " onnxruntime onnxruntime-examples onnxruntime-staticdev "

I have removed " onnxruntime-staticdev " from the image and have successfully built the image.

Is " onnxruntime-staticdev " necessary? What will I be missing?

ERROR: rity-demo-image-1.0-r0 do_rootfs: Unable to install packages. Command ‘/home/nimisht/iot-yocto/build/tmp/work/genio_720_evk-poky-linux/rity-demo-image/1.0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/nimisht/iot-yocto/build/tmp/work/genio_720_evk-poky-linux/rity-demo-image/1.0/opkg.conf -t /home/nimisht/iot-yocto/build/tmp/work/genio_720_evk-poky-linux/rity-demo-image/1.0/temp/ipktemp/ -o /home/nimisht/iot-yocto/build/tmp/work/genio_720_evk-poky-linux/rity-demo-image/1.0/rootfs  --force_postinstall --prefer-arch-to-version   install autotest-suite ax88179 base-passwd benchmark-suite gstreamer1.0-meta-audio gstreamer1.0-meta-base gstreamer1.0-meta-debug gstreamer1.0-meta-video gstreamer1.0-python ite-it6510-driver lontium-lt6911-driver ltp maxim-serdes-driver onnxruntime onnxruntime-examples onnxruntime-staticdev opkg packagegroup-base packagegroup-base-extended packagegroup-core-base-utils packagegroup-core-boot packagegroup-core-full-cmdline packagegroup-core-ssh-dropbear packagegroup-rity-ai-ml packagegroup-rity-audio-extended packagegroup-rity-debug packagegroup-rity-debug-extended packagegroup-rity-devel-extended packagegroup-rity-display-extended packagegroup-rity-graphics packagegroup-rity-mtk-neuropilot packagegroup-rity-mtk-video packagegroup-rity-multimedia-extended packagegroup-rity-net-extended packagegroup-rity-optee-extended packagegroup-rity-tools packagegroup-rity-tools-extended packagegroup-rity-zeroconf-extended packagegroup-tools-bluetooth python3-opencv python3-pip rity-demo-opencl run-postinsts shadow stress-scripts u-boot-env’ returned 255:
  • opkg_prepare_url_for_install: Couldn’t find anything to satisfy ‘onnxruntime-staticdev’.
    
ERROR: Logfile of failure stored in: /home/nimisht/iot-yocto/build/tmp/work/genio_720_evk-poky-linux/rity-demo-image/1.0/temp/log.do_rootfs.1262256ERROR: Task (/home/nimisht/iot-yocto/src/poky/../meta-rity/meta-rity-demo/recipes-demo/images/rity-demo-image.bb:do_rootfs) failed with exit code ‘1’

Hello @Nimish_Tambe,

Hope everything is going great!

I don’t think you are missing on anything by not including onnxruntime-staticdev. According to this documentation file it should include the static version of onnxruntime libraries. However, inside the recipes-onnxruntime directory there is nothing that provides the -staticdev support specifically. My best guess is that the documentation might be a little outdated on that step.

Are you facing any specific issues by using your current build with the way you added ONNX support?

best regards,

Andres
Embedded Software Engineer at ProventusNova

Hi Andres - thanks for your reply!

No specific issues yet with my current build.

I wanted to confirm that it was OK to remove " onnxruntime-staticdev "from my local.conf.

Hopefully, it’s just outdated documentation.

Hi Nimish,
for G720, and scarthgap build onnxruntime-staticdev is not needed and is safe to remove it. your build should already have dynamically linked libraries which should support onnxruntime application