opencv - Yocto how to add a gstreamer plugin? -
i'm trying build custom image i.mx6 board using yocto.
want add plugin 'gstmotioncells' gstreamer opencv plugins ( https://github.com/gstreamer/gst-plugins-bad/tree/master/ext/opencv )
build.
but can't figure out how add plugin yocto build.
tried things these have not worked.
need add local.conf file or need modify .bb file?
after following instructions of jku, still got error.
error: esomimx6-sta-image-1.0-r0 do_rootfs: unable install packages. command '/home/toon/yocto/sta/esomimx6/build_esom/tmp/sysroots/x86_64-linux/usr/bin/opkg --volatile-cache -f /home/toon/yocto/sta/esomimx6/build_esom/tmp/work/esomimx6micro-poky-linux-gnueabi/esomimx6-sta-image/1.0-r0/opkg.conf -o /home/toon/yocto/sta/esomimx6/build_esom/tmp/work/esomimx6micro-poky-linux-gnueabi/esomimx6-sta-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install fsl-alsa-plugins packagegroup-core-ssh-openssh libfreetype6 packagegroup-esom-qt5 cpufrequtils glib-networking libcairo2 openssh-sftp-server packagegroup-core-boot packagegroup-core-x11-base glibmm packagegroup-fsl-gstreamer1.0-full packagegroup-esom-tools-testapps alsa-state ruby packagegroup-fsl-gstreamer1.0 packagegroup-fsl-tools-gpu gstreamer1.0-plugins-bad-opencv packagegroup-fsl-tools-testapps packagegroup-core-tools-debug opkg packagegroup-base-extended libfontconfig1' returned 255: collected errors: * opkg_prepare_url_for_install: couldn't find satisfy 'gstreamer1.0-plugins-bad-opencv'.
do know going wrong?
as first step, need enable opencv plugin in gstreamer1.0-plugins-bad recipe. there's packageconfig should work in local.conf or distro configuration:
packageconfig_append_pn-gstreamer1.0-plugins-bad = " opencv"
(the space in front of string required)
this make recipe depend on opencv not in oe-core layer. have add meta-oe layers if it's not there already.
you'll want add relevant packages image: @ least gstreamer1.0-plugins-bad-opencv
. in production happen application recipe requires opencv plugin depend on it. testing can add
image_install_append = " gstreamer1.0-plugins-bad-opencv"
into local.conf.
Comments
Post a Comment