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?
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?