gstreamer: Add meson devenv support
This change to the build system will prepend the plugin build directory to GST_PLUGIN_PATH environment. This makes the built plugin visible to GStreamer inside meson devenv enabling uninstalled testing. In order to avoid polluting the user registry, the GST_REGISTRY environment is also set. Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
81791d2cac
commit
ebc396fc7a
2 changed files with 16 additions and 3 deletions
|
@ -120,12 +120,13 @@ setting the ``LIBCAMERA_LOG_LEVELS`` environment variable:
|
|||
Using GStreamer plugin
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
To use GStreamer plugin from source tree, set the following environment so that
|
||||
GStreamer can find it. This isn't necessary when libcamera is installed.
|
||||
To use the GStreamer plugin from the source tree, use the meson ``devenv``
|
||||
command. This will create a new shell instance with the ``GST_PLUGIN_PATH``
|
||||
environment set accordingly.
|
||||
|
||||
.. code::
|
||||
|
||||
export GST_PLUGIN_PATH=$(pwd)/build/src/gstreamer
|
||||
meson devenv -C build
|
||||
|
||||
The debugging tool ``gst-launch-1.0`` can be used to construct a pipeline and
|
||||
test it. The following pipeline will stream from the camera named "Camera 1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue