Build Instructions (Linux)
- At least 25GB disk space and 8GB RAM.
- Node.js. There are various ways to install Node. You can download source code from and compile it. Doing so permits installing Node on your own home directory as a standard user. Or try repositories such as NodeSource.
- 3.4 or later.
- Development headers of GTK 3 and libnotify.
On Ubuntu >= 20.04, install the following libraries:
On Ubuntu < 20.04, install the following libraries:
$ sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \
libnotify-dev libgnome-keyring-dev \
libasound2-dev libcap-dev libcups2-dev libxtst-dev \
libxss1 libnss3-dev gcc-multilib g++-multilib curl \
gperf bison python-dbusmock openjdk-8-jre
On RHEL / CentOS, install the following libraries:
$ sudo yum install clang dbus-devel gtk3-devel libnotify-devel \
cups-devel libXtst-devel alsa-lib-devel libXrandr-devel \
nss-devel python-dbusmock openjdk-8-jre
On Fedora, install the following libraries:
libgnome-keyring alsa-lib libcap libcups libxtst \
libxss nss gcc-multilib curl gperf bison \
python2 python-dbusmock jdk8-openjdk
Other distributions may offer similar packages for installation via package managers such as pacman. Or one can compile from source code.
If you want to build for an arm
target you should also install the following dependencies:
$ sudo apt-get install libc6-dev-armhf-cross linux-libc-dev-armhf-cross \
g++-arm-linux-gnueabihf
Similarly for arm64
, install the following:
And to cross-compile for arm
or targets, you should pass the target_cpu
parameter to gn gen
:
$ gn gen out/Testing --args='import(...) target_cpu="arm"'
Prebuilt will try to link to libtinfo.so.5
. Depending on the host architecture, symlink to appropriate libncurses
:
The default building configuration is targeted for major desktop Linux distributions. To build for a specific distribution or device, the following information may help you.
By default Electron is built with prebuilt clang binaries provided by the Chromium project. If for some reason you want to build with the clang
installed in your system, you can specify the clang_base_path
argument in the GN args.
For example if you installed clang
under /usr/local/bin/clang
: