Changes between Version 1 and Version 2 of GStreamer/GStreamerOnMac
- Timestamp:
- Mar 19, 2013, 12:54:06 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GStreamer/GStreamerOnMac
v1 v2 1 {{{2 #!rst3 1 4 ===================================== 5 Build GStreamer and WebKit on Mac OS 6 ===================================== 2 = Build GStreamer and WebKit on Mac OS = 7 3 8 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`_4 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 [http://git.igalia.com/cgi-bin/gitweb.cgi?p=webkit.git;a=shortlog;h=refs/heads/gst-mac git branch] 9 5 10 Requirements 11 ============ 6 == Requirements == 12 7 13 8 Git and JHBuild: 14 9 15 :: 10 {{{ 11 git clone git://git.gnome.org/jhbuild 12 make -f Makefile.plain install 13 PATH=$PATH:~/.local/bin 14 }}} 16 15 17 git clone git://git.gnome.org/jhbuild 18 make -f Makefile.plain install 19 20 PATH=$PATH:~/.local/bin 21 22 GStreamer build 23 =============== 16 == GStreamer build == 24 17 25 18 My JHBuild moduleset only supports git version of GStreamer at the moment. 26 19 27 :: 28 29 git clone git://github.com/philn/jhbuild.git~/gst-build30 cd ~/gst-build 31 git checkout --track -b mac origin/mac 32 jhbuild -f jhbuildrc bootstrap --ignore-system 33 jhbuild -f jhbuildrc build 20 {{{ 21 git clone git://github.com/philn/jhbuild.git ~/gst-build 22 cd ~/gst-build 23 git checkout --track -b mac origin/mac 24 jhbuild -f jhbuildrc bootstrap --ignore-system 25 jhbuild -f jhbuildrc build 26 }}} 34 27 35 28 You might see a build failure for guile. Just skip that module, it is not needed for the WebKit or GStreamer build. 36 29 37 WebKit repo setup 38 ================= 30 == WebKit repo setup == 39 31 40 32 It's possible to clone directly from git.igalia.com but it will 41 33 be slower, there's more bandwidth at git.webkit.org :) 42 34 43 :: 35 {{{ 36 cd ~/gst-build/build 37 git clone git://git.webkit.org/WebKit.git 38 cd WebKit 39 git remote add igalia http://git.igalia.com/webkit.git 40 git fetch igalia 41 git checkout --track -b gst-mac igalia/gst-mac 42 mkdir Frameworks 43 }}} 44 44 45 cd ~/gst-build/build 46 git clone git://git.webkit.org/WebKit.git 47 cd WebKit 48 git remote add igalia http://git.igalia.com/webkit.git 49 git fetch igalia 50 git checkout --track -b gst-mac igalia/gst-mac 51 mkdir Frameworks 52 53 GStreamer.framework build 54 ========================= 45 == GStreamer.framework build == 55 46 56 47 The GStreamer.framework includes GLib as well. I first tried to bundle it separately but without 57 48 much success. It would be nice to make that happen though (I think). 58 49 59 :: 50 {{{ 51 cd 52 git clone git://github.com/philn/gtk-osx.git 53 cd ~/gtk-osx 54 git checkout --track -b gst origin/gst 60 55 61 cd 62 git clone git://github.com/philn/gtk-osx.git 63 cd ~/gtk-osx 64 git checkout --track -b gst origin/gst 56 cd ~/gtk-osx/framework 57 ./create-GStreamer-framework.sh ~/gst-build/install/ ~/gst-build/build/WebKit/Frameworks 58 }}} 65 59 66 cd ~/gtk-osx/framework 67 ./create-GStreamer-framework.sh ~/gst-build/install/ ~/gst-build/build/WebKit/Frameworks 68 69 WebKit build 70 ============ 60 == WebKit build == 71 61 72 62 This can probably be done with the XCode UI: 73 63 74 64 1. Set the GLIB_ENABLED build setting of JavaScriptCore/Configurations/Optional.xcconfig to YES 75 2. Set the GSTREAMER_ENABLED build setting to YES in the following files: 76 77 - WebCore/Configurations/Optional.xcconfig 78 - Webkit/mac/Configurations/Optional.xcconfig 79 80 3. Then build the thing and run Safari: 81 82 :: 83 84 cd ~/gst-build/build/WebKit 85 Tools/Scripts/build-webkit 86 Tools/Scripts/run-safari 87 88 89 90 .. _git branch: http://git.igalia.com/cgi-bin/gitweb.cgi?p=webkit.git;a=shortlog;h=refs/heads/gst-mac 91 65 1. Set the GSTREAMER_ENABLED build setting to YES in the following files: 66 * WebCore/Configurations/Optional.xcconfig 67 * Webkit/mac/Configurations/Optional.xcconfig 68 1. Then build the thing and run Safari: 69 {{{ 70 cd ~/gst-build/build/WebKit 71 Tools/Scripts/build-webkit 72 Tools/Scripts/run-safari 92 73 }}}