[Lazarus] Cross Compile for arm-linux

Dariusz Mazur darekm at emadar.com
Mon Dec 7 17:34:20 CET 2009


> view only output commands...
>
> Please, help me to make a generic script/tutorial to make fpc/lazarus
> arm-linux "compatible"!
>   
I have this script to compile FPC from svn:

make crossinstall CPU_TARGET=arm OS_TARGET=linux 
CROSSBINDIR=/home/darek2008/fpcarm/arm-linux-uclibc/bin 
CROSSOPT="-CaEABI -dFPC_ARMEL -CfSOFT -gl -O-" 
INSTALL_PREFIX=/home/darek2008/fpcarm COMPILER_OPTIONS="cpufpemu"

there are two folders with toolchain
/home/darek2008/fpcarm/arm-linux-uclibc/bin
with: as,ar, ld   ....
/home/darek2008/fpcarm/arm-linux-uclibc/lib
with : cprt0.o , libptrhead.so.0 .....


and at last fpc.cfg:

#INCLUDE /etc/fpc.cfg
#DEFINE DEMOTEST
#DEFINE DEMOTEST1
#DEFINE LAZARUS

-Fu~/fpcarm/lib/fpc/2.5.1/units/$fpctarget/*
-Fl~/fpcarm/$fpctarget-uclibc/lib/
-FU/home/darek2008/fpcarm/praca/$fpctarget
-Fu~/lib/synapsesvn/trunk
-Fu/usr/lib/lazarus/lcl
-Fi/usr/lib/lazarus/lcl/include
-Fu/usr/lib/lazarus/lcl/nonwin32

-a
-Sd
-Xd
-Xs


-O-


#IFDEF CPUARM
;-XParm-linux-uclibc-
-XP/home/darek2008/fpcarm/arm-linux-uclibc/bin/
-Xr/home/darek2008/fpcarm/arm-linux-uclibc/lib
-XR/home/darek2008/fpcarm/arm-linux-uclibc/
-darm
-CfSOFT
-CaEABI
-Tlinux

#ENDIF
#IFDEF CPUI386

-XP/home/darek2008/fpcarm/i386-linux-uclibc/bin/
-Xr/home/darek2008/fpcarm/i386-linux-uclibc/lib/
-FL/home/darek2008/fpcarm/i386-linux-uclibc/ld-uClibc.so.0
#ENDIF



-- 
  Darek








More information about the Lazarus mailing list