Search code examples
gstreameryoctobitbake

Gstreamer qmlgl plug-in enable via Yocto


I would like to use qmlgl plug-in (qmlglsink, qmlglsrc) in my application, but it is not available in the image.

Also, my environment is ARM-based board - Phytec_nunki.

gst-inspect-1.0 | grep qml does not receive any result.

I use Yocto for building images. As I understand from this link - qmlgl is located in "GStreamer Good Plug-in" bunch, but it is not enables by default.

I inspected the sources of gstreamer which is downloaded by Yocto - the files with "qmlgl" are there. So I guess I have to enable it in some config file.

I tried to add

CORE_IMAGE_EXTRA_INSTALL += " \
gst-plugins-good-qmlgl\
"

into my local.conf file. Bitbake was executed successfully but the plug-in was not appeared.

So, does anyone have an idea for solving it?


Solution

  • @UncleSav using your own layer, do:

    Example your layer is meta-xpto.

    meta-xpto/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_%.bbappend

    Inside the .bbappend add:

    inherit qmake5_paths
    
    PACKAGECONFIG[qt5] = '--enable-qt \
    --with-moc="${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/moc" \
    --with-uic="${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/uic" \
    --with-rcc="${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/rcc" \
    ,--disable-qt,gstreamer1.0-plugins-base qtbase qtdeclarative qtbase-native'
    
    PACKAGECONFIG_append = "qt5"
    

    With this change, we inform gstreamer1.0-plugins-good that we want to compile with the qt flag and inform the necessary dependencies.