Static build fails to load libnice elements

Nicolas Dufresne nicolas at ndufresne.ca
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 gst-env.py, just need to define a plugins
array somewhere. Sent an MR.

https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/190

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

    gst: Fix gst-env and libgstreamer-full.so 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 gst-env.py and when building single library
    libgstreamer-full.so.

diff --git a/gst/meson.build b/gst/meson.build
index 091a37f..572c6ab 100644
--- a/gst/meson.build
+++ b/gst/meson.build
@@ -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: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210304/c165c8ea/attachment-0001.htm>


More information about the gstreamer-devel mailing list