[Lazarus] Cross Compile for arm-linux

Kjow antispammoni at gmail.com
Wed Dec 9 22:04:32 CET 2009


It works!!!

My Nokia N900 says its first console word: "Hello!" :D

With

~/lazarus/fpc/2.5.1/lib/fpc/2.5.1/ppcrossarm -va

I saw that fpc didn't load "arm fpc.cfg" so I saved it to ~/.fpc.cfg
and than I had to adjust a couple of path on it. After that I
launched:

~/lazarus/fpc/2.5.1/lib/fpc/2.5.1/ppcrossarm -Xd -CaEABI -CfSOFT
-CpARMV5 TestARM.pas

Free Pascal Compiler version 2.5.1 [2009/12/09] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARM
Compiling TestARM.pas
Assembling hello
Linking TestARM
4 lines compiled, 0.4 sec

I copied "TestARM" on device in /opt/mydir/
then chmod +x TestARM

./TestARM

Hello!


:D

Thank you all!


About Lazarus, same thing as before, I don't have in my system
ppcarm... I need to symlink ppcrossarm somewhere?




More information about the Lazarus mailing list