forked from antimof/UxPlay
-
Notifications
You must be signed in to change notification settings - Fork 78
Building GStreamer from Source on macOS with MacPorts
fduncanh edited this page Feb 2, 2023
·
13 revisions
GStreamer 1.22.0 (just released) has been successfully built from source on MacPorts 2.8.1:
- install the build system:
sudo port install meson ninja bison flex cmake git pkgconfig
- Install some of the external libraries used by GStreamer:
sudo port install glib2-upstream ffmpeg-upstream pango graphene libvorbis libogg libopus libdv libjpeg-turbo
- On MacPorts, it is also important to do
export LIBRARY_PATH=/opt/local/lib:$LIBRARY_PATH
before compiling, because MacPorts has modified symbols in libiconv, and you must prevent the macOS version of libiconv in /usr/lib from being used. (This leads to build failures with the error "_iconv not found
".)
- now download GStreamer, build and install (this assumes v1.22.0; modify as needed, method is valid for 1.19.0 and later). This installs GStreamer in /usr/local/lib.
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer
cd gstreamer
git checkout 1.22.0
meson setup build
cd build
ninja
sudo ninja install