# Minimal compilation

**URL:** <https://discourse.gstreamer.org/t/minimal-compilation/281>\
**Category:** Build issues\
**Created:** [October 11, 2023, 4:03pm UTC](https://discourse.gstreamer.org/t/minimal-compilation/281 "2023-10-11T16:03:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![FabPoll](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/fabpoll/32/1620_2.png) [@FabPoll](https://discourse.gstreamer.org/u/FabPoll)\
**Post date:** [October 11, 2023, 4:03pm UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/1 "2023-10-11T16:03:47Z")

</div>

Hi,

I’d like to compile gstreamer with the minimum options.  
According to the documentation, this  
`meson -Dauto_features=disabled -Dgstreamer:tools=enabled`  
compile `gst-inspect-1.0` , `gst-launch-1.0`. But I can’t find them after a meson install. They should be in /usr/local/bin by default right?

This is the current main branch.

I will add the plugins I need one by one, once this minimal example will work.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![fengalin](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/fengalin/32/34_2.png) [@fengalin](https://discourse.gstreamer.org/u/fengalin)\
**Post date:** [October 11, 2023, 5:28pm UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/2 "2023-10-11T17:28:21Z")

</div>

Try with `-Dtools=enabled` 🙂

---

<div class="post-metadata">

**Author:** ![FabPoll](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/fabpoll/32/1620_2.png) [@FabPoll](https://discourse.gstreamer.org/u/FabPoll)\
**Post date:** [October 12, 2023, 7:13am UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/3 "2023-10-12T07:13:31Z")

</div>

Thanks ([again](https://discourse.gstreamer.org/t/how-to-install-gst-version-1-22-on-ubuntu/222/9) 🙂 ), it works!  
I am new to meson, so maybe it is the way is works, but what’s the difference between `-Dtools=enabled` and `-Dgstreamer:tools=enabled` ?  
I am a bit lost with the way to enable options. `meson configure` outputs a lot of things. I see `tools` but it was not clear that I should use Dtools and Dgstreamer:tools. Same for bad plugins for instance. Shall I use Dbad=true and then Dgst-plugins-bad:webrtcdsp=enabled (for instance)? Is it documented somewhere?

---

<div class="post-metadata">

**Author:** ![fengalin](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/fengalin/32/34_2.png) [@fengalin](https://discourse.gstreamer.org/u/fengalin)\
**Post date:** [October 12, 2023, 9:10am UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/4 "2023-10-12T09:10:00Z")

</div>

I usually look at the `meson_options.txt` files at the root of each sub-project. E.g. the `tools` & `bad` options are defined at the root of the mono repo in [meson\_options.txt · main · GStreamer / gstreamer · GitLab](https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/meson_options.txt?ref_type=heads).

---

<div class="post-metadata">

**Author:** ![FabPoll](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/fabpoll/32/1620_2.png) [@FabPoll](https://discourse.gstreamer.org/u/FabPoll)\
**Post date:** [October 12, 2023, 9:39am UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/5 "2023-10-12T09:39:35Z")

</div>

Yep but I don’t see much details. Like if I want to have the opus codec I need `-Dgst-plugins-base:opus=enabled`. I’ve found the option somewhere in the sources.

Another example. I want `h264parse`. I tried -Dgst-plugins-bad:h264parse=enabled, but it is not that. I don’t know where to look

---

<div class="post-metadata">

**Author:** ![fengalin](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/fengalin/32/34_2.png) [@fengalin](https://discourse.gstreamer.org/u/fengalin)\
**Post date:** [October 12, 2023, 10:06am UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/6 "2023-10-12T10:06:46Z")

</div>

If you’re not sure which sub-project to look for, you could run something in the line of:

```shell
find . -name 'meson_options.txt' -exec grep opus {} +

```

For the `h264parse`, one way to discover it could be (from a non-minimal system):

```shell
gst-inspect-1.0 | grep h264 | grep parse

```

You should get `videoparsersbad: h264parse: H.264 parser`. So you know the element is `h264parse` and it is part of the `videoparsersbad` plugin. Looking in `meson_options.txt` under `subprojects/gst-plugins-bad` you’ll find:

```auto
option('videoparsers', type : 'feature', value : 'auto')

```

---

<div class="post-metadata">

**Author:** ![FabPoll](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/fabpoll/32/1620_2.png) [@FabPoll](https://discourse.gstreamer.org/u/FabPoll)\
**Post date:** [October 12, 2023, 12:02pm UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/7 "2023-10-12T12:02:45Z")

</div>

Damn I’m stuck again. I can’t get the plugins webrtcsink webrtcsrc, although this is on : `-Drs=enabled -Drs:webrtc=enabled -Dgst-plugins-bad:webrtc=enabled -Dgst-plugins-bad:webrtcdsp=enabled

---

<div class="post-metadata">

**Author:** ![FabPoll](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/fabpoll/32/1620_2.png) [@FabPoll](https://discourse.gstreamer.org/u/FabPoll)\
**Post date:** [October 12, 2023, 12:40pm UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/8 "2023-10-12T12:40:52Z")

</div>

Got it : `-Dgst-plugins-rs:webrtc=enabled`

---

<div class="post-metadata">

**Author:** ![dabrain34](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/dabrain34/32/1675_2.png) [@dabrain34](https://discourse.gstreamer.org/u/dabrain34)\
**Post date:** [October 12, 2023, 7:48pm UTC](https://discourse.gstreamer.org/t/minimal-compilation/281/9 "2023-10-12T19:48:01Z")

</div>

Unfortunately the use of rust plugins in gstreamer-full is not tested. You might be able to register the whole plugin (tbc) but not element by element.
