Just drop a note here, in case someone want to crosscompile arm-linux(eventruly android/Maemo) from windows.
First step, you got a newest snapshot or svn , and you can make a i386-win32 built with no problem.
In your FPC Source directory, FPCMAKE -Tall, so you got a make file that can make for other platform.
for arm-wince, you got the abi-arm tool chain from FPC 2.4 so you should built with no problem too whit this command line:
{Your working FPC directory}\make crossinstall CPU_TARGET=arm OS_TARGET=wince BASEDIR={Your FPC SVN/snapshot directory}\compiler CROSSOPT="-ap -Cfvfpv2" INSTALL_PREFIX={Your desired new FPC directory}
example:
C:\lazarus\fpc\2.4.0\bin\i386-win32\make crossinstall CPU_TARGET=arm OS_TARGET=wince BASEDIR=C:\freepascal\2.5_snapshot\fpc\compiler CROSSOPT="-ap -Cfvfpv2" INSTALL_PREFIX=C:\lazarus\fpc\2.5.1
but for arm-linux, you will not build with following line when you just got the FPC Source and a working FPC.
{Your working FPC directory}\make crossinstall CPU_TARGET=arm OS_TARGET=linux BASEDIR={Your FPC SVN/snapshot directory}\compiler CROSSOPT="-ap -Cfvfpv2" INSTALL_PREFIX={Your desired new FPC directory}
You will need the GNU ARM Tools chain for win32 to build arm-linux,
but the offical GNU ARM Tools is linux only.
You will need nother GNU ARM toolchain
http://www.yagarto.de.
Install it and get the arm-none-eabi-*.exe
you will need these files in your fpc directory
arm-linux-ar.exe
arm-linux-as.exe
arm-linux-gdb.exe
arm-linux-ld.exe
arm-linux-objdump.exe
arm-linux-run.exe
arm-linux-strip.exe
or
Here with the official crosscompile tools chain.
I dont know if it support eabi or not which seems required for android.
ftp://ftp.freepascal.org/pub/fpc/contrib/cross/mingw/From now you should build with arm-linux target.