---
# System prepended metadata

title: Latest Gstreamer Build From Source

---

Latest Gstreamer Build From Source 
===


Delete all old gstreamer

```
sudo 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)


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 -Dgood=enabled -Dgst-plugins-good:qt5=enabled ```
 
 create "build" dir inside repo.
 go to build directory and run the following command:
 
```
/home/octo/Downloads/meson-0.63.2/meson.py ../ --prefix=/usr -Dlibsoup:sysprof=disabled -Dtests=disabled -Dgood=enabled -Dgst-plugins-good:qt5=enabled 
 
ninja -j8 

ninja install
```
 Go to the directory gst, inside run 

``` 
ninja -j8 

ninja install
```
 
after installation, check gstreamer is installed via terminal.
 
