Static build fails to load libnice elements

Nicolas Dufresne nicolas at
Fri Mar 5 02:21:59 UTC 2021

Le jeudi 04 mars 2021 à 18:47 -0500, Olivier Crête a écrit :
> Hi,
> Those symbols are from the library, not from the plugin. The simple reason the
> libnice plugin isn't included is that I think you need to do some meson magic
> inside the libnice build system to make it be included... and, with my libnice
> maintainer hat on, I have no idea what this is, so merge requests are welcome
> ;)

Ah, it uses introspection, just like, just need to define a plugins
array somewhere. Sent an MR.

commit c4c58f22917c2519f3d64ba67cb8fe993c31f9f3 (HEAD -> gst-env-fix, dev/gst-env-fix)
Author: Nicolas Dufresne <nicolas.dufresne at>
Date:   Thu Mar 4 21:18:47 2021 -0500

    gst: Fix gst-env and suppport
    gst-build uses meson introspection and reads the plugins array of each
    subproject in order to locate the plugins. Setting libnice plugins array allow
    enabling nice plugin in both and when building single library

diff --git a/gst/ b/gst/
index 091a37f..572c6ab 100644
--- a/gst/
+++ b/gst/
@@ -16,6 +16,7 @@ libgstnice = library('gstnice',
   link_with: libnice,
   install_dir: gst_plugins_install_dir,
   install: true)
+plugins = [libgstnice]
 # Generate pc files for static plugins if we build static plugins
 if get_option('default_library') != 'shared'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list