Forum > PDAs and Smartphones
[Tutorial] Cross Compile for arm-linux (Finally it works!)
marcov:
There are many ARM targets. There is no universal arm-linux. It all depends on device, and target CPU
Diego:
I understand Marcov, really must be difficult to create a version of lazarus i386 or x86_64 with configuring cross compile for Arm preconfigured.
Leledumbo agree with you, it really is very strange. The worst that the entire configuration of fpc, fpc-src and beanutils is successful. The binary for ARM are created when executed by the terminal using only the fpc, but when starting configuration for Lazarus generate for binaries ARM, many mistakes happen.
According to my tests I believe that should be the file ~/.fpc.cfg that is not well configured for Lazarus. Mine is like this:
#INCLUDE /etc/fpc.cfg
#DEFINE DEMOTEST
#DEFINE DEMOTEST1
#DEFINE LAZARUS
-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/*
-Fl/usr/lib/fpc/2.6.4/units/$fpctarget/rtl/
-a
-Sd
-Xd
-Xs
-O-
#IFDEF CPUARM
-XP/home/user/lazarus/fpc/binutils/
-Xr/usr/lib/fpc/2.6.4/units/arm-linux/rtl/
-Xr/home/user/lazarus/fpc/libcross
-XR/home/user/lazarus/fpc/
-darm
-Tlinux
#ENDIF
Navigation
[0] Message Index
[*] Previous page