Make sure the machine you'll be building on has the recommended requirements; the bare minimum is 32GB RAM, if you are going to use zram during the build. Decreasing the job count will help with RAM usage, and could even possibly get it to build on 8GB RAM, but I recommend 48GB or more of RAM.
Create the directory you'll do your build in with mkdir crDroid && cd crDroid (substitute crDroid for whatever you want the folder to be called, it doesn't need to be called anything specific)
For Debian 13 and newer (as of Dec 2025) (or any distro based on Debian 13 or newer, with these packages in the repos) run this: `sudo apt install git-core gnupg flex bc ccache flex g++-multilib gcc-multilib git git-lfs gperf imagemagick liblz4* libncurses-dev libsdl1.2-dev libssl-dev bison build-essential zip curl zlib1g-dev libc6-dev-i386 x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig libxml2 lzop pngcrush rsync schedtool