HowToCompileMPE

This How-To will guide you through the necessary steps to set up the build environment of MPlayer OSX Extended and compile a version of it yourself.

Get the MPE source

You can get the MPE source from its SVN repository. Simply open the Terminal, cd to the directory you like the source to go and issue following command:

svn co svn://mplayerosx.sttz.ch/mplayerosx/trunk/ mplayerosx

You'll then find the MPE XCode project with all source files in a directory called "mplayerosx".

Bundled MPlayer binaries

You'll need a correctly structured mpBinaries bundle, which contains a few shared libraries MPE links against and which you'll need to playback anything with MPE.

To get you started, the easiest way is to download the latest version of MPE and copy the bundle to your MPE XCode project folder:

cp -R "/Applications/MPlayer OSX Extended.app/Contents/Resources/Binaries/mpextended.mpBinaries" "/path/to/mplayerosx/Binaries"

Alternatively, you can compile MPlayer yourself and create your own binary bundle ([[BinaryBundleReference|see here for details]). Note that you'll have to update the shared libraries the XCode project requires (currently expat, iconv, freetype and fontconfig).

Sparkle

MPE uses a custom Sparkle version you can find in this Git repository:
http://github.com/Nairda/Sparkle

Either clone the repository, compile Sparkle and copy the framework to the MPE XCode project directory or take the Sparkle framework from the latest MPE release (which might not be up to date):

p -R "/Applications/MPlayer OSX Extended.app/Contents/Frameworks/Sparkle.framework" "/path/to/mplayerosx"

BWToolkit

MPE uses BWToolkit for some of it's interface elements. Download the BWToolkit Interface Builder plugin, open MPE's Player.xib and locate the plugin when Interface Builder asks for it.
http://www.brandonwalkin.com/bwtoolkit/

Compile MPE

You should now be ready to open the MPE XCode project and compile MPE!