<div dir="ltr">I'm experimenting with non-static and static gstreamer builds using the gst-build on an Ubuntu docker image. In both cases I'm able to successfully build gstreamer and compile my basic application that's using a webrtcbin pipeline.<div><br></div><div>Note that static in this case is referring to the "Static build" description from the gst-build readme (<a href="https://gitlab.freedesktop.org/gstreamer/gst-build#static-build">https://gitlab.freedesktop.org/gstreamer/gst-build#static-build</a>) rather than attempting to link my executable with actual static libraries.</div><div><br></div><div>For the non-static build my application is able to run the webrtcbin pipeline as expected. For static builds I get the warning below about libnice and the pipeline fails to launch (I definitely have libnice-dev installed and both docker images install an identical set of packages).</div><div><br></div><div>0:00:54.272738800    16 0x558ef5419c00 WARN               webrtcbin gstwebrtcbin.c:133:_have_nice_elements:<sendonly> error: libnice elements are not available<br></div><div><br></div><div>My understanding with the static build was that all the plugins are included in <a href="http://libgstreamer-full-1.0.so">libgstreamer-full-1.0.so</a>. The libnice symbols all seem to be in that library:</div><div><br></div><div>root@3600f52e3abd:/src/gst-webrtc-echo/builddir# nm /usr/local/lib/x86_64-linux-gnu/<a href="http://libgstreamer-full-1.0.so">libgstreamer-full-1.0.so</a> | grep nice<br>0000000000caaf60 t _gst_nice_thread<br>0000000000c95700 t _have_nice_elements<br>0000000000cb2310 t _nice_agent_stream_ids_get_type<br>0000000000cb22f0 t _nice_agent_stream_ids_get_type_once<br>...</div><div><br></div><div>The meson command I'm using to generate the static build is:</div><div><br></div><div>meson -Dgood=enabled -Dgst-plugins-good:vpx=enabled \<br>  -Dgst-plugins-good:rtpmanager=enabled \<br>  -Dbad=enabled -Dgst-plugins-bad:dtls=enabled \<br>  -Dbad=enabled -Dgst-plugins-bad:srtp=enabled \<br>  -Dbad=enabled -Dgst-plugins-bad:webrtc=enabled \<br>  --default-library=static \<br>  builddir</div><div><br></div><div>And the command I then use to build my application is:</div><div><br></div><div>gcc gst-webrtc-echo.c -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include/gstreamer-1.0 -L/usr/local/lib -L/usr/local/lib/x86_64-linux-gnu -lgstreamer-full-1.0 -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgio-2.0 -lpthread -lm -ldl -lpcre -lffi -levent -lcjson<br></div><div><br></div><div>If anybody can spot anything I might be doing wrong any suggestions would be welcome.</div><div><br></div><div>Aaron</div><div><br></div><div><br><div><br></div><div><br></div><div><br><div><br></div><div><br></div></div></div></div>