# Building static gstreamer with gst-plugin-webrtchttp plugin

**URL:** <https://discourse.gstreamer.org/t/building-static-gstreamer-with-gst-plugin-webrtchttp-plugin/5499>\
**Category:** General Discussion\
**Created:** [November 6, 2025, 3:22am UTC](https://discourse.gstreamer.org/t/building-static-gstreamer-with-gst-plugin-webrtchttp-plugin/5499 "2025-11-06T03:22:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![murugs](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@murugs](https://discourse.gstreamer.org/u/murugs)\
**Post date:** [November 6, 2025, 3:22am UTC](https://discourse.gstreamer.org/t/building-static-gstreamer-with-gst-plugin-webrtchttp-plugin/5499/1 "2025-11-06T03:22:11Z")

</div>

Trying to build static libraries for gstreamer and gst-plugins-rs. While running gst-inspect the plugin in looking for shared library instead of static gstreamer.

> ```auto
> git clone --recurse-submodules https://gitlab.freedesktop.org/gstreamer/gstreamer.git
> 
> ```
> 
> ```auto
> cd gstreamer
> 
> ```
> 
> ```auto
> meson --prefix=/opt/gstreamer ../build-gst-full-static -Ddefault_library=static -Dintrospection=disabled
> 
> ```
> 
> ```auto
> ninja -C ../build-gst-full-static
> 
> ```
> 
> ```auto
> meson install -C ../build-gst-full-static
> 
> ```
> 
> ```auto
> git clone https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
> 
> ```
> 
> ```auto
> cd gst-plugin-rs
> 
> ```
> 
> ```auto
> cargo cbuild -p gst-plugin-webrtchttp
> 
> ```
> 
> ```auto
> cargo cinstall --release --prefix=/usr --libdir /opt/gstreamer/lib/x86_64-linux-gnu -p gst-plugin-webrtchttp
> 
> ```

> export LD\_LIBRARY\_PATH=/opt/gstreamer/lib/x86\_64-linux-gnu
> 
> export GST\_PLUGIN\_PATH=/opt/gstreamer/lib/x86\_64-linux-gnu/gstreamer-1.0

> $ gst-inspect-1.0 whipsink
> 
> (gst-plugin-scanner:217643): GStreamer- **WARNING** \*\*: 03:17:06.885: Failed to load plugin ‘/opt/gstreamer/lib/x86\_64-linux-gnu/gstreamer-1.0/libgstwebrtchttp.so’: libgstsdp-1.0.so.0: cannot open shared object file: No such file or directory
> 
> (gst-plugin-scanner:217643): GStreamer- **WARNING** \*\*: 03:17:06.885: Failed to load plugin ‘/opt/gstreamer/lib/x86\_64-linux-gnu/gstreamer-1.0/libgstwebrtchttp.so’: libgstsdp-1.0.so.0: cannot open shared object file: No such file or directory
> 
> No such element or plugin ‘whipsink’

---

<div class="post-metadata">

**Author:** ![taruntej](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/taruntej/32/86_2.png) [@taruntej](https://discourse.gstreamer.org/u/taruntej)\
**Post date:** [November 6, 2025, 7:06pm UTC](https://discourse.gstreamer.org/t/building-static-gstreamer-with-gst-plugin-webrtchttp-plugin/5499/2 "2025-11-06T19:06:13Z")

</div>

Hi,

`gst-inspect` cannot look for static libraries unless you have compiled it with linking all the necessary static libs.

Unrelated, but `whipsink` is deprecated now and unmaintained, please consider changing to `whipclientsink` 🙂

---

<div class="post-metadata">

**Author:** ![murugs](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@murugs](https://discourse.gstreamer.org/u/murugs)\
**Post date:** [November 6, 2025, 7:26pm UTC](https://discourse.gstreamer.org/t/building-static-gstreamer-with-gst-plugin-webrtchttp-plugin/5499/3 "2025-11-06T19:26:30Z")

</div>

Thanks for the suggestion.

I tried different build command to build gst-plugins-rs along with gstreamer but that also failed with Error.

> meson setup --buildtype=release --prefix /opt/gstreamerstatic1106 --strip --default-library=static -Dgst-full-libraries=video,audio,app,pbutils,sdp,webrtc,rtsp-server -Dintrospection=disabled -Dtools=enabled -Dbase=enabled -Dgood=enabled -Dbad=enabled -Dlibnice=enabled -Dlibav=enabled -Drs=enabled -Drtsp\_server=enabled -Dges=disabled -Ddevtools=disabled -Dpython=disabled ../gst-build-1106

but it failed with

Executing subproject **gst-plugins-rs**

gst-plugins-rs| Project name: **gst-plugins-rs**

gst-plugins-rs| Project version: **0.15.0-alpha.1**

gst-plugins-rs| C compiler for the host machine: **cc** (gcc 11.4.0 “cc (Ubuntu 11.4.0-1ubuntu1~22.04.2) 11.4.0”)

gst-plugins-rs| C linker for the host machine: **cc** ld.bfd 2.38

gst-plugins-rs| Rust compiler for the host machine: **rustc -C linker=cc** (rustc 1.91.0 “1.91.0”)

gst-plugins-rs| Rust linker for the host machine: **rustc -C linker=cc** ld.bfd 2.38

gst-plugins-rs| Program python3 (tomllib) found: **NO**

gst-plugins-rs| Program python3 (tomli) found: **YES** (/usr/bin/python3) modules: tomli

gst-plugins-rs| Program **cargo** found: **YES** 1.91.0 1.91.0 (/root/.cargo/bin/cargo)

gst-plugins-rs| Program **cargo\_wrapper.py** found: **YES** (/home/ubuntu/gstreamer/subprojects/gst-plugins-rs/cargo\_wrapper.py)

gst-plugins-rs| Program **cargo-cbuild** found: **YES** 0.10.18 0.10.18 (/root/.cargo/bin/cargo-cbuild)

gst-plugins-rs| Dependency **glib-2.0** found: **YES** 2.72.4 **(cached)**

gst-plugins-rs| Dependency **gstreamer-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-app-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-audio-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-base-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-video-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-rtp-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-webrtc-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-sdp-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-check-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-gl-1.0** from subproject **subprojects/gst-plugins-base** found: **NO**

gst-plugins-rs| Dependency **gstreamer-net-1.0** found: **YES** 1.27.2.1 **(overridden)**

gst-plugins-rs| Dependency **gstreamer-analytics-1.0** found: **YES** 1.27.2.1 **(overridden)**

subprojects/gst-plugins-rs/meson.build:328:24: **ERROR:** No default provided for dependency , which is not pkg-config, cmake, or config-tool based.

---

<div class="post-metadata">

**Author:** ![taruntej](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/taruntej/32/86_2.png) [@taruntej](https://discourse.gstreamer.org/u/taruntej)\
**Post date:** [November 7, 2025, 5:48am UTC](https://discourse.gstreamer.org/t/building-static-gstreamer-with-gst-plugin-webrtchttp-plugin/5499/4 "2025-11-07T05:48:40Z")

</div>

> gst-plugins-rs| Dependency **gstreamer-gl-1.0** from subproject **subprojects/gst-plugins-base** found: **NO**

I am guessing the dependencies for **`gstreamer-gl-1.0`** are missing, which are needed by gst-plugins-rs also.
