When I run "bitbake opencv", "opencv-4.5.2" is installed by default.
I want to change it to "opencv-3.4.x", how can I do that?
in the file "meta-imx/meta-bsp/conf/layer.conf"
"PREFERRED_VERSION_opencv_mx6~8 ?= "3.4.%.imx" does not change it.
You also need to modify or create the corresponding .bb files for opencv-3.4.x.
You could find the opencv .bb file in the <yocto_folder>/sources/. (e.g. find . |grep opencv)
It simply appears that you should not import and use another version of the .bb file. Could you tip me which part of the .bb file needs to be modified?
Thanks for reply!
As you said, I took the file "opencv_4.4.0.bb" from "git.openembedded.org" and ran bitbake. However, an error "failed with exit code '1'" occurred during do_compile().
Can't I install "opencv 4.4.0" version in hardknott version?
Best regards,
You may check the error log file to see what is the error during the compiling.
When I checked the log file, the following error occurred.