Changes between Version 24 and Version 25 of CompilationGuide/MacOSX
- Timestamp:
- Dec 25, 2013, 7:12:00 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/MacOSX
v24 v25 1 [[PageOutline( 2, Contents)]]1 [[PageOutline(1, Contents)]] 2 2 3 3 Compiling 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. 4 4 5 = = Prerequisites and Dependencies ==5 = Prerequisites and Dependencies = 6 6 7 == = XCode ===7 == XCode == 8 8 9 9 Starting 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]. 10 10 11 == = Homebrew ===11 == Homebrew == 12 12 13 13 To get FFmpeg for OS X, you first have to install [http://brew.sh/ Homebrew]: … … 17 17 }}} 18 18 19 == = Shortcut: Compile FFmpeg through Homebrew ===19 == Shortcut: Compile FFmpeg through Homebrew == 20 20 21 21 If you want to use Homebrew for compiling, you can simply run: … … 27 27 You can run {{{brew info ffmpeg}}} to see additional configuration options, e.g. in order to enable {{{libfdk_aac}}} or {{{libvpx}}}. 28 28 29 == = Remaining Dependencies ===29 == Remaining Dependencies == 30 30 31 31 First, we need to install a few dependencies: … … 40 40 ---- 41 41 42 = = Compile FFmpeg ==42 = Compile FFmpeg = 43 43 44 44 Once 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: … … 47 47 git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg 48 48 cd ffmpeg 49 ./configure --enable-gpl --enable-version3--enable-nonfree --enable-libass \49 ./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass \ 50 50 --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 53 52 make && make install 54 53 }}} … … 58 57 59 58 60 = = Manual install of the dependencies without Homebrew ==59 = Manual install of the dependencies without Homebrew = 61 60 62 == = Pkg-config & GLib ===61 == Pkg-config & GLib == 63 62 64 63 Pkg-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]. … … 69 68 70 69 71 == = Yasm ===70 == Yasm == 72 71 73 72 Yasm 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}}} 74 73 75 == = Additional libraries ===74 == Additional libraries == 76 75 77 76 These are just some examples. Run {{{.configure --help}}} for all available options.
