Skip to content

Instantly share code, notes, and snippets.

@obfusk obfusk/README.md
Last active Dec 16, 2015

Embed
What would you like to do?
building chromium (on ubuntu 12.04) w/ extra ffmpeg codecs

VM

$ mkdir -p ~/tmp/build/chromium-vagrant && cd ~/tmp/build/chromium-vagrant
$ vim Vagrantfile

$ vagrant up && vagrant halt
# use virtualbox to add 20GB swap (/dev/sdb)

$ vagrant up && vagrant ssh

vm$ sudo aptitude update && sudo aptitude safe-upgrade
vm$ sudo aptitude install git vim byobu grc htop tree build-essential
vm$ sudo vim /etc/fstab  # /dev/sdb none swap sw 0 0
vm$ sudo mkswap /dev/sdb
vm$ sudo swapon -a

Prepare

vm$ mkdir ~/build && cd ~/build
vm$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
vm$ export PATH=$HOME/build/depot_tools:$PATH

You should check https://chromium-build.appspot.com/p/chromium/console first.

vm$ mkdir ~/build/chromium && cd ~/build/chromium
vm$ fetch chromium --nosvn=True           # took ~ 4hrs w/ 1MB/s internet connection

Build

vm$ cd ~/build/chromium/src
vm$ ./build/install-build-deps.sh --no-chromeos-fonts
vm$ export GYP_DEFINES="ffmpeg_branding=Chrome proprietary_codecs=1"
vm$ gclient runhooks
vm$ time make chrome BUILDTYPE=Release    # took ~ 2hrs on quadcore i5 (3.10GHz) host
Vagrant::Config.run do |config|
config.vm.box = 'precise64'
config.vm.customize ['modifyvm', :id, '--memory', 2048]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.