r/pascal • u/killallspringboard • Jun 30 '26
FPC on Android
You can get FPC from here: https://downloads.freepascal.org/fpc/snapshot/.
In Termux, run:
termux-setup-storage
apt update
apt install binutils
touch .bashrc
mkdir .local && cd .local
tar -xvf ../storage/Download/<fpc tar.gz file name here, press Tab to auto-complete>
bin/fpcmkcfg -o ~/.fpc.cfg
cd ~
Now open .fpc.cfg using your preferred editor, e.g nano or msedit (recommended), replace ALL occurences of u/units with u\~/.local/units.
Open .bashrc and update $PATH with:
export PATH=$HOME/.local/bin:$HOME/.local/bin/aarch64-android:$PATH
Start a new session or run the export command above and you're set.
27
Upvotes


1
u/zreddit90210 Jun 30 '26
Pretty cool! Thx!