Changes between Version 1 and Version 2 of GStreamer/GStreamerOnMac


Ignore:
Timestamp:
Mar 19, 2013 12:54:06 AM (9 years ago)
Author:
Philippe Normand
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GStreamer/GStreamerOnMac

    v1 v2  
    1 {{{
    2 #!rst
    31
    4 =====================================
    5 Build GStreamer and WebKit on Mac OS
    6 =====================================
     2= Build GStreamer and WebKit on Mac OS =
    73
    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`_
     4This 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]
    95
    10 Requirements
    11 ============
     6== Requirements ==
    127
    138Git and JHBuild:
    149
    15 ::
     10{{{
     11git clone git://git.gnome.org/jhbuild
     12make -f Makefile.plain install
     13PATH=$PATH:~/.local/bin
     14}}}
    1615
    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 ==
    2417
    2518My JHBuild moduleset only supports git version of GStreamer at the moment.
    2619
    27 ::
    28 
    29   git clone git://github.com/philn/jhbuild.git ~/gst-build
    30   cd ~/gst-build
    31   git checkout --track -b mac origin/mac
    32   jhbuild -f jhbuildrc bootstrap --ignore-system
    33   jhbuild -f jhbuildrc build
     20{{{
     21git clone git://github.com/philn/jhbuild.git ~/gst-build
     22cd ~/gst-build
     23git checkout --track -b mac origin/mac
     24jhbuild -f jhbuildrc bootstrap --ignore-system
     25jhbuild -f jhbuildrc build
     26}}}
    3427
    3528You might see a build failure for guile. Just skip that module, it is not needed for the WebKit or GStreamer build.
    3629
    37 WebKit repo setup
    38 =================
     30== WebKit repo setup ==
    3931
    4032It's possible to clone directly from git.igalia.com but it will
    4133be slower, there's more bandwidth at git.webkit.org :)
    4234
    43 ::
     35{{{
     36cd ~/gst-build/build
     37git clone git://git.webkit.org/WebKit.git
     38cd WebKit
     39git remote add igalia http://git.igalia.com/webkit.git
     40git fetch igalia
     41git checkout --track -b gst-mac igalia/gst-mac
     42mkdir Frameworks
     43}}}
    4444
    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 ==
    5546
    5647The GStreamer.framework includes GLib as well. I first tried to bundle it separately but without
    5748much success. It would be nice to make that happen though (I think).
    5849
    59 ::
     50{{{
     51cd
     52git clone git://github.com/philn/gtk-osx.git
     53cd ~/gtk-osx
     54git checkout --track -b gst origin/gst
    6055
    61   cd
    62   git clone git://github.com/philn/gtk-osx.git
    63   cd ~/gtk-osx
    64   git checkout --track -b gst origin/gst
     56cd ~/gtk-osx/framework
     57./create-GStreamer-framework.sh ~/gst-build/install/ ~/gst-build/build/WebKit/Frameworks
     58}}}
    6559
    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 ==
    7161
    7262This can probably be done with the XCode UI:
    7363
    74641. 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 
     651. Set the GSTREAMER_ENABLED build setting to YES in the following files:
     66    * WebCore/Configurations/Optional.xcconfig
     67    * Webkit/mac/Configurations/Optional.xcconfig
     681. Then build the thing and run Safari:
     69{{{
     70cd ~/gst-build/build/WebKit
     71Tools/Scripts/build-webkit
     72Tools/Scripts/run-safari
    9273}}}