Building GStreamer 1.24 with Meson¶
Steps and build options for compiling GStreamer 1.24 from source with Meson.
This English edition preserves the original commands, configuration fragments, and diagrams so the steps can be reproduced directly.















Commands and configuration¶
$ cat /proc/version
Linux version 6.5.0-44-generic (buildd@lcy02-amd64-103) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 14:36:16 UTC 2
sudo apt-get install libxv-dev libasound2-dev libtheora-dev libogg-dev libvorbis-dev libbz2-dev libv4l-dev libvpx-dev libjack-jackd2-dev libsoup2.4-dev libpulse-dev faad libfaad-dev libfaac-dev libx264-dev libmad0-dev yasm
# 配置
meson setup builddir
# 推荐!!!!配置安装指定路径
mkdir _install
meson setup --prefix=/home/hywelstar/Develop/gstreamer/_install builddir
# 编译
meson compile -C builddir
# ===============以下可选择==============
# 更换安装目录方法:
# 首次配置的话采用
meson setup --prefix=/home/hywelstar/Develop/gstreamer/_install builddir
# 中途更改安装到指定路径
meson setup builddir --reconfigure --prefix=/home/hywelstar/Develop/gstreamer/_install
# =====================================
Notes¶
Use these examples as a starting point and adjust versions, device names, codecs, and network addresses for the target platform.