[Lazarus] FPC cross compiling

Sven Barth pascaldragon at googlemail.com
Mon Mar 26 10:21:38 CEST 2012

Am 26.03.2012 09:52, schrieb Antonio Fortuny:
> Hi all.
> I want to turn my current Lazarus installation to cross-compile for
> Linux. The current environment is:
> - openSuse 12.1 x86_64
> - FPC 2.4.4 x86_64
> - Lazarus 0.9.31 x86_64
> I want to compile for Linux i386 too.
> I have dowloaded & installed ppc386 and compiled fpc basics using:
> 0. # cd /usr/share/fpcsrc/rtl/linux
> 1. # make all CPU_TARGET=i386
> a lot of warnings but all ran OK, then
> 2. # make install CPU_TARGET=i386
> same for fpc packages

I would do a

"make all CPU_TARGET=i386"

at the top level of the fpc source directory (you need to have full FPC 
sources for compilation). Then you can do a

"make crossinstall CPU_TARGET=i386"

When you've done this please report back whether your situation has 
improved (also it's adivceable to ask such questions on fpc-pascal 
instead of lazarus).


More information about the Lazarus mailing list