Skip to content

gst-plugins-imsdk: Enablement of python examples and qdemo application#1687

Open
muthumul wants to merge 1 commit intoqualcomm-linux:masterfrom
muthumul:branch/python-examples-enablement
Open

gst-plugins-imsdk: Enablement of python examples and qdemo application#1687
muthumul wants to merge 1 commit intoqualcomm-linux:masterfrom
muthumul:branch/python-examples-enablement

Conversation

@muthumul
Copy link
Contributor

@muthumul muthumul commented Mar 5, 2026

Added python-examples PACKAGECONFIG and enabled it by default since it is only dependent on oe-core. Installed Qdemo binary and media assets via do_install:append and defined ${PN}-qdemo package with runtime dependencies. This will allow the python sample apps to be packaged as gst-plugins-imsdk-apps and qdemo artifacts to be packaged as gst-plugins-imsdk-qdemo.

Added python-examples PACKAGECONFIG and enabled it by default since it is only dependent on oe-core.
Installed Qdemo binary and media assets via do_install:append and defined ${PN}-qdemo package with
runtime dependencies. This will allow the python sample apps to be packaged as gst-plugins-imsdk-apps
and qdemo artifacts to be packaged as gst-plugins-imsdk-qdemo.

Signed-off-by: Muthumula Sai Harshith Reddy <muthumul@qti.qualcomm.com>
PACKAGECONFIG[tflite] = "-DENABLE_GST_PLUGIN_MLTFLITE=1, -DENABLE_GST_PLUGIN_MLTFLITE=0, tensorflow-lite"
PACKAGECONFIG[videoproc] = "-DENABLE_GST_VIDEOPROC_PLUGINS=1, -DENABLE_GST_VIDEOPROC_PLUGINS=0, cairo"

INSTALL_MEDIA = "${sysconfdir}/media"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Media is not a configuration. Move it to ${datadir}/${BPN}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also no need to define this variable, just use ${datadir}/${BPN}.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Media is not a configuration. Move it to ${datadir}/${BPN}

Qdemo app is expecting qdemo artifacts to be part of /etc/media directory. So we are using ${sysconfdir}/media.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also no need to define this variable, just use ${datadir}/${BPN}.

Sure @ricardosalveti

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muthumul then fix the app.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, NAK for media content under /etc/media.

mkdir -p ${D}${INSTALL_MEDIA}
install -m 755 ${S}/gst-python-examples/files/Qdemo ${D}${bindir}/
install -m 755 ${S}/gst-python-examples/files/Qdemo.png ${D}${INSTALL_MEDIA}
install -m 755 ${S}/gst-python-examples/files/Qdemo.gif ${D}${INSTALL_MEDIA}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this CMake.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure @lumag


RDEPENDS:${PN}-qdemo += "bash"

RDEPENDS:${PN} += "${PN}-qdemo"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? You will now have ${PN}-oss-meta RDEPENDing on ${PN}-demo and ${PN}-apps already. ${PN} is empty.

virtual/libgbm \
virtual/libgles2 \
virtual/libgles3 \
gobject-introspection \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there are any introspection files to be built, then should inherit the gobject-introspection class instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants