RecentChanges TextFormattingRules AllWikiTopics OrphanedWikiTopics ToDoWikiTopics WikiLockList RSS Export2HTML WikiSearch SetUsername StartingPoints Home |
OSX:buildFFmpeg @Jun 3, 2011 6:13:59 PM
This is tested on Mac OS 10.6.7 (a Mac Book Pro and a MacMini)
Get essential build environmentInstall Xcode 3 - you don't need to spend $5 on Xcode 4 xcode_3.2.6_and_ios_sdk_4.3.dmg Install MacPorts MacPorts-1.9.2-10.6-SnowLeopard.dmg If you cannot rsync, for instance if you're in a corporation where its hard to get through firewalls, then edit /opt/local/etc/macports/sources.conf replacing the default entry at the end of the file sudo vim /opt/local/etc/macports/sources.conf Sync the MacPorts sources, if you are in a corporation that has a proxy server you might need to set the http_proxy environment variable as I have done in this example: sudo http_proxy=http://www-cache.reith.bbc.co.uk:80 \ Get tools to build the sourcesudo http_proxy=http://www-cache.reith.bbc.co.uk:80 \ To access source files for building parts of FFmpeg, git might need access through a SOCKS proxy: sudo http_proxy=http://www-cache.reith.bbc.co.uk:80 \ Then, when you have to do a git clone or a git pull do this instead: tsocks git clone git:// copy the sample tsocks.conf sudo cp -a /opt/local/etc/tsocks.conf.sample /opt/local/etc/tsocks.conf and edit /opt/local/etc/tsocks.conf. For example, in a corporation you might need to add something like: local = 132.0.0.0/255.0.0.0 to the local block near the top and change server and server_port to server = 132.185.136.18 Build other librariesDecide and create the place where you are going to do all your building, and set an environment variable so that it is easy to script the install: export PREFIX=/usr/local libx264cd $PREFIX/src ./configure \ make PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/ \
|