Hi all, I'm trying to make lazarus able to cross compile from Win32 to arm-linux.
FPC is ok, but lazarus won't compile for arm-linux. I "crossinstalled" FPC by: make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=C:\Devel\binutils OPT=-dFPC_ARMEL INSTALL_PREFIX=C:\Devel\fpc\2.5.1 BINUTILSPREFIX=arm-linux- where in C:\Devel\binutils there are all arm-linux*.exe and in C:\Devel\fpc\2.5.1 there are FPC bins. It has compiled well, I think (e.g. now I have C:\Devel\fpc\2.5.1\units\arm-linux ) I added to the end of C:\Devel\fpc\2.5.1\bin\i386-win32\fpc.cfg these rows: #DEFINE LAZARUS -Fuc:\Devel\fpc/$fpcversion/units/$fpctarget/* -Flc:\Devel\fpc/$fpcversion/units/$fpctarget/rtl/ -a -Sd -Xd -Xs -O- #IFDEF CPUARM -XPC:\Devel\binutils -XrC:\Devel\fpc\2.5.1\units\arm-linux\rtl\ -XrD:\Condivisa\Lazarus\libcross -XRc:\Devel\fpc\ -darm -Tlinux #ENDIF If I try to cross compile the LCL (http://wiki.lazarus.freepascal.org/Cross_compiling#Cross_compiling_the_LCL), I get this error: C:\Devel\binw32\make.exe: Entering directory `C:/Devel/lazarus/lcl' C:/Devel/binw32/rm.exe -f units/arm-linux/alllclunits.ppu C:/Devel/fpc/2.5.1/bin/i386-win32/fpc.exe -Tlinux -Parm -XParm-linux- -Xr -gl -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fiinclude -FE. -FUunits/arm-linux -darm alllclunits.pp Free Pascal Compiler version 2.5.1 [2010/01/13] for arm Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Linux for ARMEL Compiling alllclunits.pp Compiling lclversion.pas Assembling lclversion C:\Devel\lazarus\lcl\lclversion.pas(40) Error: Assembler arm-linux-as.exe not found, switching to external assembling C:\Devel\lazarus\lcl\lclversion.pas(40) Fatal: There were 1 errors compiling module, stopping How to pass the path of binutils to lazarus? (c:\Develop\binutils ) Thanks! -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus