Delete all old gstreamer
See this link for more help , LINK
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 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
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.
Now Buidling Steps ,
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
after installation, check gstreamer is installed via terminal.