{{{ #!forumlinks }}} = Build !SwarmPlayer on the MAC = To build a !SwarmPlayer installer on Mac OS/X from scratch, do the following. Note: Our subversion access to {{{https}}} requires authorisation. For read-only access, use {{{http}}}. == Installing required software == Newer versions could well be OK too, these are just the ones I've tried. 1. Download and install [http://www.python.org/download/releases/2.5.1/ Python 2.5.1]. 1. Download and install [https://sourceforge.net/project/showfiles.php?group_id=10718&package_id=10559 wxPython 2.8.4.2-unicode]. 1. Download and install [http://cheeseshop.python.org/pypi/py2app/ py2app 0.3.6]. 1. Download and install, for instance through [http://svn.macosforge.org/repository/macports/downloads/MacPorts-1.5.0/ MacPorts]: git, gmake, subversion, swig. And anything else that turns out to be missing. 1. Download and install [http://code.google.com/p/apsw/downloads/list apsw from Google]. Build using {{{python setup.py build --fetch-sqlite}}} to automatically download SQLite as well. 1. Download and install [http://developer.apple.com/tools/download/ XCode 2.4]. == Obtaining binaries == Tribler and the !SwarmPlayer use several binaries, which you can either compile or just [source:vlc/branches/vlc-0.8.6h-mac-py2.3 download them]. To compile the binaries: 1. Check out {{{https://svn.tribler.org/vlc/branches/mainbranch}}} into {{{~/svn/vlc-mainbranch}}}. 1. Open {{{Terminal.app}}} and chdir to {{{~/svn/vlc-mainbranch/macscripts}}} 1. Run {{{./buildmac.sh}}} For more details, see MacBinaries. The end-result is a tarball called {{{macbinaries-ARCH.tar.gz}}}, with ARCH=i386 or ARCH=ppc, depending on your architecture. If you update the build process, please check in the new binaries (for example at {{{vlc/branches/vlc-0.8.6h-mac-py2.3}}}). == Preparing the source == 1. Check out {{{https://svn.tribler.org/abc/branches/mainbranch}}} into {{{~/svn/mainbranch}}}. 1. Extract your {{{macbinaries-*.tar.gz}}} file, which will create a {{{macbinaries}}} subdirectory. 1. You can now run {{{./runmac.command Tribler/Player/swarmplayer.py}}} for instance. == Build installer == 1. Open {{{Terminal.app}}} and chdir to {{{~/svn/mainbranch/Tribler/Player/Build/Mac}}} 1. Run {{{make}}} You will now have an installer called {{{SwarmPlayer-ARCH.dmg}}} in that directory, enjoy :)