GStreamer Meson Build Options¶
A reference to the Meson configuration options that affect a custom GStreamer build.
This English edition preserves the original commands, configuration fragments, and diagrams so the steps can be reproduced directly.












Commands and configuration¶
# ===============以下可选择==============
# 更换安装目录方法:
# 测试通过命令
# 假如出现配置问题,删除之前配置,再配置一次
# rm -rf builddir
meson setup builddir --prefix=/home/hywelstar/Develop/gstreamer/_install \
-Ddefault_library=static \
-Dgst-full=enabled \
-Dgst-full-libraries=app,video \
-Dgst-full-target-type=static_library
# 更改
meson setup --reconfigure builddir --prefix=/home/hywelstar/Develop/gstreamer/_install \
-Ddefault_library=static \
-Dgst-full=enabled \
-Dgst-full-libraries=app,video
$ ninja -C build-gst-full
# =====================================
meson setup --reconfigure builddir --prefix=/home/hywelstar/Develop/gstreamer/_install \
-Ddefault_library=static \
-Dgst-full=enabled \
-Dgst-full-libraries=app,video \
-Dgst-plugins-bad:openh264=enabled \
-Dgst-plugins-ugly:x264=enabled \
-Dgpl=enabled \
-Dlibav=enabled
# 其他
meson setup --reconfigure builddir --prefix=/home/hywelstar/Develop/gstreamer/_install \
-Ddefault_library=static \
-Dgst-full=enabled \
-Dgst-full-libraries=app,video \
-Dgst-plugins-bad:openh264=enabled \
-Dgst-plugins-ugly:x264=enabled \
-Drtsp_server=enabled \
-DFFmpeg:gpl=enabled \
-Dgst-rtsp-server=enabled \
-Dgpl=enabled \
-Dlibav=enabled
Notes¶
Use these examples as a starting point and adjust versions, device names, codecs, and network addresses for the target platform.