I want to install opencv-3.4.x version via "bitbake opencv".

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

I want to install opencv-3.4.x version via "bitbake opencv".

648 Views
lllllliilllililll
Contributor I

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.

aaaa.PNG

Labels (1)
0 Kudos
5 Replies

640 Views
jimmychan
NXP TechSupport
NXP TechSupport

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)

0 Kudos

600 Views
lllllliilllililll
Contributor I

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?

0 Kudos

626 Views
lllllliilllililll
Contributor I

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,

0 Kudos

622 Views
jimmychan
NXP TechSupport
NXP TechSupport

You may check the error log file to see what is the error during the compiling.

0 Kudos

618 Views
lllllliilllililll
Contributor I

When I checked the log file, the following error occurred.

캡처.PNG

0 Kudos