Changes between Version 24 and Version 25 of CompilationGuide/MacOSX


Ignore:
Timestamp:
Dec 25, 2013, 9:12:00 PM (5 years ago)
Author:
llogan
Comment:

remove forgotten --enable-version3

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/MacOSX

    v24 v25  
    1 [[PageOutline(2, Contents)]]
     1[[PageOutline(1, Contents)]]
    22
    33Compiling on Mac OS X is as easy as any other *nix machine, there are just a few caveats. The general procedure is {{{./configure <flags>; make && sudo make install}}}, but some use a different configuration scheme, or none at all.  You can also install the latest stable version of FFmpeg without the need to compile it yourself, which saves you a bit of time. Just follow this guide.
    44
    5 == Prerequisites and Dependencies ==
     5= Prerequisites and Dependencies =
    66
    7 === XCode  ===
     7== XCode  ==
    88
    99Starting with Lion 10.7, Xcode is available for free from the Mac App Store and is required to compile anything on your Mac. Make sure you install the Command Line Tools from Preferences > Downloads > Components. Older versions are still available with an AppleID and free Developer account at [http://developer.apple.com developer.apple.com].
    1010
    11 === Homebrew ===
     11== Homebrew ==
    1212
    1313To get FFmpeg for OS X, you first have to install [http://brew.sh/ Homebrew]:
     
    1717}}}
    1818
    19 === Shortcut: Compile FFmpeg through Homebrew ===
     19== Shortcut: Compile FFmpeg through Homebrew ==
    2020
    2121If you want to use Homebrew for compiling, you can simply run:
     
    2727You can run {{{brew info ffmpeg}}} to see additional configuration options, e.g. in order to enable {{{libfdk_aac}}} or {{{libvpx}}}.
    2828
    29 === Remaining Dependencies ===
     29== Remaining Dependencies ==
    3030
    3131First, we need to install a few dependencies:
     
    4040----
    4141
    42 == Compile FFmpeg ==
     42= Compile FFmpeg =
    4343
    4444Once you have compiled all of the codecs/libraries you want, you can now download the FFmpeg source either with Git or the from release tarball links on the website. Study the output of {{{./configure --help}}} and make sure you've enabled all the features you want, remembering that `--enable-nonfree` and `--enable-gpl` will be necessary for some of the dependencies above. A sample command is:
     
    4747git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
    4848cd ffmpeg
    49 ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-libass \
     49./configure  --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass \
    5050--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus \
    51 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 \
    52 --enable-libxvid --prefix=/usr/local
     51--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
    5352make && make install
    5453}}}
     
    5857
    5958
    60 == Manual install of the dependencies without Homebrew  ==
     59= Manual install of the dependencies without Homebrew  =
    6160
    62 === Pkg-config & GLib  ===
     61== Pkg-config & GLib  ==
    6362
    6463Pkg-config is necessary for detecting some of the libraries you can compile into FFmpeg, and it requires GLib which is not included in Mac OS X (but almost every other *nix distribution). You may either download pkg-config 0.23, or download the large tarball from [http://ftp.gnome.org/pub/GNOME/sources/glib/ Gnome.org] and compile it. Pkg-config is available from [http://pkgconfig.freedesktop.org/releases/ Freedesktop.org].
     
    6968
    7069
    71 === Yasm  ===
     70== Yasm  ==
    7271
    7372Yasm is available from [http://yasm.tortall.net/Download.html tortall.net] and is necessary for compiling C code that contains machine-independent Assembler code. To compile, run {{{./configure --enable-python; make && sudo make install}}}
    7473
    75 === Additional libraries  ===
     74== Additional libraries  ==
    7675
    7776These are just some examples. Run {{{.configure --help}}} for all available options.