-
Notifications
You must be signed in to change notification settings - Fork 218
gst-plugins-imsdk: Enablement of python examples and qdemo application #1687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,22 +22,53 @@ DEPENDS += "\ | |
| virtual/libgbm \ | ||
| virtual/libgles2 \ | ||
| virtual/libgles3 \ | ||
| gobject-introspection \ | ||
| " | ||
|
|
||
| # This package is currently only used and tested on ARMv8 (aarch64) machines. | ||
| # Therefore, builds for other architectures are not necessary and are explicitly excluded. | ||
| COMPATIBLE_MACHINE = "^$" | ||
| COMPATIBLE_MACHINE:aarch64 = "(.*)" | ||
|
|
||
| PACKAGECONFIG ??= "sw videoproc" | ||
| PACKAGECONFIG ??= "python-examples sw videoproc" | ||
|
|
||
| PACKAGECONFIG[messaging] = "-DENABLE_GST_MESSAGING_PLUGINS=1, -DENABLE_GST_MESSAGING_PLUGINS=0, librdkafka mosquitto" | ||
| PACKAGECONFIG[ml] = "-DENABLE_GST_ML_PLUGINS=1, -DENABLE_GST_ML_PLUGINS=0, cairo json-glib opencv qairt-sdk, qairt-sdk" | ||
| PACKAGECONFIG[python-examples] = "-DENABLE_GST_PYTHON_EXAMPLES=1, -DENABLE_GST_PYTHON_EXAMPLES=0" | ||
quaresmajose marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| PACKAGECONFIG[qmmfsrc] = "-DENABLE_GST_PLUGIN_QMMFSRC=1 -DVHDR_MODES_ENABLE=ON, -DENABLE_GST_PLUGIN_QMMFSRC=0 -DVHDR_MODES_ENABLE=OFF, camera-service" | ||
| PACKAGECONFIG[redissink] = "-DENABLE_GST_PLUGIN_REDISSINK=1, -DENABLE_GST_PLUGIN_REDISSINK=0, hiredis" | ||
| PACKAGECONFIG[sw] = "-DENABLE_GST_SOFTWARE_PLUGINS=1, -DENABLE_GST_SOFTWARE_PLUGINS=0, gstreamer1.0-rtsp-server smart-venc-ctrl-algo" | ||
| 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" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. Media is not a configuration. Move it to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also no need to define this variable, just use ${datadir}/${BPN}.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Qdemo app is expecting qdemo artifacts to be part of /etc/media directory. So we are using ${sysconfdir}/media.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sure @ricardosalveti
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @muthumul then fix the app.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, NAK for media content under /etc/media. |
||
|
|
||
| do_install:append() { | ||
| mkdir -p ${D}${bindir} | ||
| 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} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please move this CMake.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure @lumag |
||
| } | ||
|
|
||
| PACKAGES =+ "${PN}-qdemo" | ||
|
|
||
| FILES:${PN}-qdemo = " \ | ||
| ${bindir}/Qdemo \ | ||
| ${INSTALL_MEDIA}/Qdemo.png \ | ||
| ${INSTALL_MEDIA}/Qdemo.gif \ | ||
| " | ||
| # The TFLite plugin loads the TensorFlow Lite library at runtime using dlopen(). To ensure runtime availability, added runtime dependency on 'tensorflow-lite'. | ||
| RDEPENDS:${PN}-qtimltflite += "tensorflow-lite" | ||
|
|
||
| RDEPENDS:${PN}-apps += "\ | ||
| python3-core \ | ||
| gstreamer1.0-python \ | ||
| python3-pygobject \ | ||
| gtk+3 \ | ||
| python3-opencv \ | ||
| " | ||
|
|
||
| RDEPENDS:${PN}-qdemo += "bash" | ||
|
|
||
| RDEPENDS:${PN} += "${PN}-qdemo" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? You will now have |
||
There was a problem hiding this comment.
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-introspectionclass instead.