Version 1 (modified by Martin Robinson, 11 years ago) (diff)


Build GStreamer and WebKit on Mac OS

This page describes how to enable GStreamer support on the mac port of WebKit. It is still experimental and requires patches in WebKit. The patches are currently in a `git branch`_


Git and JHBuild:


 git clone git://
 make -f Makefile.plain install


GStreamer build

My JHBuild moduleset only supports git version of GStreamer at the moment.


  git clone git:// ~/gst-build
  cd ~/gst-build
  git checkout --track -b mac origin/mac
  jhbuild -f jhbuildrc bootstrap --ignore-system
  jhbuild -f jhbuildrc build

You might see a build failure for guile. Just skip that module, it is not needed for the WebKit or GStreamer build.

WebKit repo setup

It's possible to clone directly from but it will
be slower, there's more bandwidth at :)


  cd ~/gst-build/build
  git clone git://
  cd WebKit
  git remote add igalia
  git fetch igalia
  git checkout --track -b gst-mac igalia/gst-mac
  mkdir Frameworks

GStreamer.framework build

The GStreamer.framework includes GLib as well. I first tried to bundle it separately but without
much success. It would be nice to make that happen though (I think).


  git clone git://
  cd ~/gtk-osx
  git checkout --track -b gst origin/gst

  cd ~/gtk-osx/framework
  ./ ~/gst-build/install/ ~/gst-build/build/WebKit/Frameworks

WebKit build

This can probably be done with the XCode UI:

1. Set the GLIB_ENABLED build setting of JavaScriptCore/Configurations/Optional.xcconfig to YES
2. Set the GSTREAMER_ENABLED build setting to YES in the following files:

   - WebCore/Configurations/Optional.xcconfig
   - Webkit/mac/Configurations/Optional.xcconfig

3. Then build the thing and run Safari:


     cd ~/gst-build/build/WebKit

.. _git branch:;a=shortlog;h=refs/heads/gst-mac