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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

730 次查看
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

标签 (1)
0 项奖励
5 回复数

722 次查看
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 项奖励

682 次查看
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 项奖励

708 次查看
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 项奖励

704 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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

0 项奖励

700 次查看
lllllliilllililll
Contributor I

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

캡처.PNG

0 项奖励