Sign in Join
Wiki copytemporary

Revision 1 of 3, by FTurtle on 7-14-2015. The page as it is now.

Cross Compile with FPC for ARM

Overview

These instructions cover cross compiling to Linux on ARM. See arm-wince for instructions on cross-compiling to Windows CE on ARM.

Cross compile with FPC for ARM (e.g. Zaurus)

bash
cd somedir
tar zxvf arm-linux-fpc.i386-linux-20050217.tar.gz
bash
mkdir -p /usr/local/lib/fpc/1.9.7/units
cp -fr lib/fpc/1.9.7/units/arm-linux /usr/local/lib/fpc/1.9.7/units/
bash
cp lib/fpc/1.9.7/ppcarm /usr/local/lib/fpc/1.9.7
bash
ln -sf /usr/local/lib/fpc/1.9.7/ppcarm /usr/local/bin/ppcarm
bash
ppcarm -iV
bash
cd somedir
tar zxvf binutils.tar.gz
bash
cp arm-linux-* /usr/local/bin
bash
echo "program hello; begin writeln('Hello World'); end." > hello.pas
ppcarm -XParm-linux- hello.pas
bash
scp hello zaurus:/home/zaurus
bash
./hello

From the Free Pascal wiki, page "Cross Compile with FPC for ARM", as it stood on 2015-07-14 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.