opencv on yocto in imx8qm

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

opencv on yocto in imx8qm

479 Views
yibhan
Contributor III

Hi guys,

I am curious about adding opencv library on yocto in imx8qm. Actually, when i build bitbake fsl-image-qt5-validation-imx, there is no opencv library in rootfs. So, I have added IMAGE_INSTALL_append = " opencv" in conf/local.conf, and I have found opencv library in rootfs, but when I run opencv app, below error occured: 

"error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure"

Should I add some of package to fix the above issue?

 

0 Kudos
1 Reply

476 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Yibhan,

  Try this configuration in local.conf, please!

CORE_IMAGE_EXTRA_INSTALL += " opencv libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"

 

Have a nice day!

B.R

Weidong

0 Kudos