imx8: custom yocto image throwing errors Nothing provides libopencv-* at do_rootfs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8: custom yocto image throwing errors Nothing provides libopencv-* at do_rootfs

2,412 Views
vsuneja63
Contributor III

Hi,

Thanks!

I am building a custom yocto imgae on kirkstone sources for imx8mq evk. Opencv build successfully but at the end of image while do_rootfs its throwing opencv libs not found errors. My local.conf contains

CORE_IMAGE_EXTRA_INSTALL += "opencv"

Not sure why these libs are not found, could see all the libs available in opencv(in build directory). Here are the logs:

ERROR: agl-demo-platform-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/rootfs --setopt=logdir=/home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/temp --repofrompath=oe-repo,/home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/oe-rootfs-repo --nogpgcheck install alsa-lib apt can-utils cppunit curl dnf ffmpeg gcov googletest gstreamer1.0 gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly iproute2 kernel-modules lcov libdrm-tests libxkbcommon mc modemmanager ocl-icd opencl-headers opencv packagegroup-agl-core-boot packagegroup-agl-core-devel packagegroup-agl-demo-platform packagegroup-agl-image-ivi packagegroup-agl-ivi-services packagegroup-core-ssh-openssh packagegroup-core-tools-debug packagegroup-core-tools-profile packagegroup-pipewire paho-mqtt-c perl ppp python3-pip qt3d qt3d-qmlplugins qt3d-tools qtbase qtbase-plugins qtbase-tools qtcharts qtconnectivity-qmlplugins qtdatavis3d qtdeclarative qtdeclarative-plugins qtdeclarative-qmlplugins qtdeclarative-tools qtgraphicaleffects-qmlplugins qtimageformats-plugins qtlocation-plugins qtlocation-qmlplugins qtmultimedia qtmultimedia-plugins qtmultimedia-qmlplugins qtquick3d qtquickcontrols qtquickcontrols2 qtscript qtsensors qtserialport qtsvg qtsvg-plugins qtsystems qtsystems-qmlplugins qtsystems-tools qtvirtualkeyboard qtwebsockets ros-core rpm run-postinsts screen usb-modeswitch wireplumber-config-agl wireplumber-policy-config-agl wvdial' returned 1:
DNF version: 4.11.1
cachedir: /home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/oe-rootfs-repo
User-Agent: falling back to 'libdnf': could not detect OS or basearch
repo: using cache for: oe-repo
oe-repo: using metadata from Tue 02 Aug 2022 05:30:45 PM UTC.
Last metadata expiration check: 0:00:01 ago on Tue 02 Aug 2022 05:30:48 PM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error:
 Problem: conflicting requests
  - nothing provides libopencv-alphamat needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-aruco needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-barcode needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-bgsegm needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-bioinspired needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-calib3d needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-ccalib needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-core needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-datasets needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-dnn needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-dnn-objdetect needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-dnn-superres needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-dpm needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-face needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-features2d needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-flann needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-fuzzy needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-gapi needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-hfs needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-highgui needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-img-hash needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-imgcodecs needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-imgproc needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-intensity-transform needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-line-descriptor needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-mcc needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-ml needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-objdetect needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-optflow needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-phase-unwrapping needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-photo needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-plot needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-quality needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-rapid needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-reg needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-rgbd needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-saliency needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-sfm needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-shape needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-stereo needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-stitching needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-structured-light needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-superres needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-surface-matching needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-tracking needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-video needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-videoio needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-videostab needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-wechat-qrcode needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-xfeatures2d needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-ximgproc needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-xobjdetect needed by opencv-4.5.5-r0.aarch64
  - nothing provides libopencv-xphoto needed by opencv-4.5.5-r0.aarch64
  - nothing provides python-opencv needed by opencv-4.5.5-r0.aarch64
(try to add '--skip-broken' to skip uninstallable packages)

ERROR: Logfile of failure stored in: /home/vipulkumar/platform/AGL_Needlefish/build/tmp/work/imx8mq_evk-agl-linux/agl-demo-platform/1.0-r0/temp/log.do_rootfs.26737
ERROR: Task (/home/vipulkumar/platform/AGL_Needlefish/meta-agl-demo/recipes-platform/images/agl-demo-platform.bb:do_rootfs) failed with exit code '1'

Labels (1)
0 Kudos
Reply
1 Reply

2,392 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello vsuneja63,

The AGL demo does not contain anything for Opencl, you will have to use a yocto from NXP or copy all the procedure for opencl.

Regards

0 Kudos
Reply