Hi Joan,
Thanks for your response. I tried with "bitbake imx-image-full" based on 5.4.3_1.0.0 and there were below error messages. It seems there is conflict between imx-gpu-viv and opencl-headers, How to solve this kind of problem?
ERROR: Multiple .bb files are due to be built which each provide opencl-headers:################ | ETA: 0:00:02
/yocto-imx8qm/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.0.p2.2-aarch64.bb
/yocto-imx8qm/sources/meta-openembedded/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb
A list of tasks depending on these providers is shown and may help explain where the dependency comes from.
/yocto-imx8qm/sources/meta-openembedded/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb has unique dependees:
/yocto-imx8qm/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.0.p2.2-aarch64.bb has unique dependees:
....
/yocto-imx8qm/sources/meta-openembedded/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb has unique provides:
/yocto-imx8qm/sources/meta-openembedded/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb has unique rprovides:
opencl-headers-dbg
opencl-headers-dev
opencl-headers-staticdev
opencl-headers-doc
opencl-headers-src
opencl-headers
opencl-headers-locale
^opencl-headers-locale-.*
WARNING: /yocto-imx8qm/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-full.bb:do_compile is tainted from a forced run | ETA: 0:00:02
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:07
Sstate summary: Wanted 68 Found 1 Missed 67 Current 3454 (1% match, 98% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
ERROR: opencv-4.2.0.imx-r0 do_prepare_recipe_sysroot: The file /usr/include/CL/cl_gl_ext.h is installed by both imx-gpu-viv and opencl-headers, aborting
ERROR: Logfile of failure stored in: /yocto-imx8qm/build-xwayland/tmp/work/aarch64-mx8-fsl-linux/opencv/4.2.0.imx-r0/temp/log.do_prepare_recipe_sysroot.24366
ERROR: Task ( /yocto-imx8qm/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb:do_prepare_recipe_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3781 tasks of which 3780 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds
Summary: 1 task failed:
/yocto-imx8qm/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb:do_prepare_recipe_sysroot
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.