Skip to content

Instantly share code, notes, and snippets.

@obfusk obfusk/
Last active Dec 16, 2015

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


$ 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


vm$ mkdir ~/build && cd ~/build
vm$ git clone
vm$ export PATH=$HOME/build/depot_tools:$PATH

You should check first.

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


vm$ cd ~/build/chromium/src
vm$ ./build/ --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 do |config| = 'precise64'
config.vm.customize ['modifyvm', :id, '--memory', 2048]
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.