Latest Gstreamer Build From Source
===
Delete all old gstreamer
```
rm -rf /usr/bin/gst-* /usr/{lib,libexec}/gstreamer-1.0
```
See this link for more help , [LINK](https://www.linuxfromscratch.org/blfs/view/svn/multimedia/gstreamer10.html)
Sample Build Config to understand , how meson build system works. Please refer to the below build config and if you don't understand refer to the guide as mentioned.
```
meson build --libdir=/usr/local/lib --libexecdir=/usr/local/lib --prefix=/usr/local --buildtype=plain -Dexamples=disabled -Dtests=disabled -Ddoc=disabled -Dintrospection=enabled -Dgtk_doc=disabled -Dcustom_subprojects="gst-libav,gst-plugins-base,gst-plugins-good,gst-plugins-bad,gst-plugins-ugly"
```
Meson Tutorial Guide
Note : Make sure to install meson 0.63 or above as Gstreamer project requires meson 0.59 minimum. I am running **0.63.2.**
First install meson with pip3 install meson, after installation when trying to use meson command in terminal , there may be a error
```
bash: /usr/bin/meson: No such file or directory
```
In that case , add ``` PATH="/usr/local/bin:$PATH" ``` to bashrc as python dist packages are installed in this path !
Understanding the Meson Build System , it is just like cmake with a lot of advanced features.
Just go through this quick 5 min tutorial for meson, which is enough to continue installation.
[Tutorial](https://mesonbuild.com/Tutorial.html)
Now Buidling Steps ,
1. go to gstreamer gitlab mono repository, [here](https://gitlab.freedesktop.org/gstreamer/gstreamer)
Do Not use github gstreamer links
If you get Build errors, <config.h> con found , add below disable flag.
-Dlibsoup:sysprof=disabled
Do not build inside the cloned gstreamer directory. Command for building
inside cloned gstreamer directory.
```meson ~/gst --prefix=/usr -Dlibsoup:sysprof=disabled -Dtests=disabled```
Go to the directory gst, inside run
```
ninja -j8
ninja install
```
after installation, check gstreamer is installed via terminal.