Setting up latest Ubuntu LTS to build Evolution X
This guide is for Linux Users targeting Ubuntu 24.04 LTS.
Make sure you have the appropriate performance requirements to build Android ! Minimum requirements for A14 are : 12 cores, 64Gb of RAM and 64 bit system.
Installing required packages
sudo apt update && sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick protobuf-compiler python3-protobuf lib32readline-dev lib32z1-dev libdw-dev libelf-dev lz4 libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev python-is-python3To build Android in this Ubuntu version you need to install libncurses5 from 23.04 (lunar):
wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb && sudo dpkg -i libtinfo5_6.3-2_amd64.deb && rm -f libtinfo5_6.3-2_amd64.deb
wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2_amd64.deb && sudo dpkg -i libncurses5_6.3-2_amd64.deb && rm -f libncurses5_6.3-2_amd64.debDisable Restricted unprivileged user namespaces
sudo echo 'kernel.apparmor_restrict_unprivileged_unconfined=0' >> /etc/sysctl.d/99-sysctl.conf
sudo echo 'kernel.apparmor_restrict_unprivileged_userns=0' >> /etc/sysctl.d/99-sysctl.confManually create ccache tmp directory
For those who want to use ccache, this step is important because if tmp is not created as a folder, the compiler will create tmp as a file and build process will fail with an error saying tmp is not a directory
mkdir -p ~/.cache/ccache/tmp/Next Step
Once you have completed the Ubuntu setup steps above, please proceed to Step 3 of the Environment Setup for further instructions.
Last updated on