Skip to content

Latest commit

 

History

History

build

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

BotBrowser

How to compile Chromium step-by-step (Ubuntu)

  1. Prepare a clean Ubuntu 22 host.
  2. Install some dependencies:
    apt install -y fonts-liberation devscripts equivs software-properties-common libmpfr-dev libgmp3-dev libmpc-dev libstdc++-12-dev clang avahi-daemon libavahi-client-dev libnss-mdns qtbase5-dev libqt5widgets5 libx11-xcb-dev
  3. Check the compilation steps provided by Google here. Skip a few steps, you just need to follow these:
  1. It's important at this point: please open your src/out/Default/args.gn and use here to replace this file. As you can see, I have set some switches to make the compilation process smoother. You can make your own changes to these switches if you need to. Refer GN build configuration.
  2. The whole compilation process is very long, so please prepare a high-performance computer. If you want to speed up the build, please refer to: https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md#faster-builds
  3. At this point it's all set up and ready to compile: Build Chromium.
  4. Go to src/out/Default and you can see that the chrome executable is already lying there quietly.