Replicant60BuildDependenciesInstallation » History » Version 77

Denis 'GNUtoo' Carikli, 01/28/2021 02:22 PM
fix typo

1 73 Denis 'GNUtoo' Carikli
h1. Replicant 6.0 build dependencies installation
2 72 Denis 'GNUtoo' Carikli
3 40 Paul Kocialkowski
*Replicant can only be built on 64 bit x86 architectures, building on 32 bit x86 systems is no longer supported.*
However, some prebuilt tools are still 32 bit x86 executables and some host tools are generated as 32 bit x86 executables.
5 1 Paul Kocialkowski
6 19 Paul Kocialkowski
It is recommended to have at least 4GB of RAM available.
7 58 Wolfgang Wiedmeyer
8 73 Denis 'GNUtoo' Carikli
h2. Debian-based systems
9 1 Paul Kocialkowski
10 54 Wolfgang Wiedmeyer
*Debian 9*
12 49 Paul Kocialkowski
Packages installation:
13 1 Paul Kocialkowski
15 54 Wolfgang Wiedmeyer
dpkg --add-architecture i386 ; apt-get update
16 1 Paul Kocialkowski
apt-get build-dep gcc binutils llvm-defaults
17 54 Wolfgang Wiedmeyer
apt-get install bash gcc-arm-none-eabi cmake python-dev swig ant bc proguard maven-debian-helper libemma-java libasm4-java libguava-java libnb-platform18-java libnb-org-openide-util-java libandroidsdk-ddmlib-java libmaven-source-plugin-java libfreemarker-java libmaven-javadoc-plugin-java ca-cacert curl gawk libgmp3-dev libmpfr-dev libmpc-dev git-core gperf libncurses-dev squashfs-tools pngcrush zip zlib1g-dev lzma libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-dev lib32ncurses5-dev zlib1g-dev:i386 xsltproc python-mako schedtool gradle dirmngr libandroidsdk-sdklib-java eclipse-jdt libgradle-android-plugin-java android-sdk-build-tools android-sdk-platform-23 aapt lzop rsync
18 71 Denis 'GNUtoo' Carikli
19 1 Paul Kocialkowski
20 74 Denis 'GNUtoo' Carikli
As @repo@ tend to update itself (by downloading a new version of repo and running it) and that newer versions of repos also require newer versions of python, it doesn't work anymore on Debian 9 (stretch). 
22 75 Denis 'GNUtoo' Carikli
To work around that, we also released "a version of repo that is self-contained": . Make sure to read the README for installation instructions. The README content is also signed with gpg (by [[People#Denis-GNUtoo-Carikli|Denis 'GNUtoo' Carikli]], who at the time of writing did the last Replicant 6 Release Candidates).
23 54 Wolfgang Wiedmeyer
24 77 Denis 'GNUtoo' Carikli
In addition you also need to workaround some issues with Debian 9 (stretch) with the path of grep, sed, and mkdir that prevent building the toolchain. See the [[Replicant60BuildTips#usrbingrep-usrbinsed-usrbinmkdir-No-such-file-or-directory|/usr/bin/grep, /usr/bin/sed, /usr/bin/mkdir: No such file or directory]] section for how to do that.