Got the freepascal crosscompiler (win32-armlinux) to output working binaries today

Here is the shopping list:
CodeSourcery G++ Lite (2009q1-203) : http://www.codesourcery.com/sgpp/lit...tal/release858
FreePascal 2.2.4 : http://www.freepascal.org/download.var
(Tortoise) SVN to get the latest FPC sources : http://tortoisesvn.net/
Latest SVN source (revision 1390

The recipie:
Install G++ Lite
Install FPC 2.2.4 into D:\FPC\2.2.4
Make an arm-linux subdir under the fpc bin directory and copy the following files from the g++ bin to it (also rename arm-none-linux-gnueabi-* to arm-linux-* )
ar, as, ld, objdump and strip.
Place the latest FPC sourcen in the FPC main dir. (something like d:\fpc\2.2.4)
Make a compilearm.bat file with the following content:
Code:
make distclean
make crossall install CPU_TARGET=arm OS_TARGET=linux OPT="-Aas -dFPC_ARMEL -O- -gl" CROSSPORT="-Aas -CpARMV7M -CfVFP -O-" CROSSBINDIR="D:\FPC\2.2.4\bin\arm-linux" BINUTILSPREFIX=arm-linux- INSTALL_PREFIX=D:\FPC\2.2.4
pause
Execute that bat file. After a (long) time it is complaining about a ppcarm file that cannot be copied.

From the compiler directory we need to copy the ppc.exe and ppcrossarm.exe to the i386-win32 folder for fpc. Be sure to rename ppc.exe to pccarm.exe.

next we need co copy the arm-linux form the rtl\units folder to the fpc units folder.

From that moment on you can compile with the following bat file:
Code:
ppcrossarm -TLINUX hello.pp
pause
That should be all ...