[Lazarus] Cross-compile for ARM-Linux on a Windows host????

Bo Berglund bo.berglund at gmail.com
Mon Jan 3 21:18:27 CET 2011


On Mon, 03 Jan 2011 10:37:41 -0500, Paul Breneman
<list2010 at BrenemanLabs.com> wrote:

>Hi Bo,
>
>> I am setting up an environment for developing a simple GUI application
>> for RS232 communications that will eventually be loaded on an embedded
>> ARM system running a debian linux port.
>> 
>> I am not used to Linux so I figured I could develop on Windows and
>> test it natively there and then cross-compile for the ARM-linux
>> platform when I am done.
>> 
>> For the development I have installed FPC 2.4.2 and gotten Lazarus,
>> both trunk and the fixes_0_9_30 branch from SVN. Both compiled OK so I
>> am good concerning the Windows dev tools.
>> 
>> Question 1:
>> Is the scenario I am after at all possible?
>> 
>> Question 2:
>> I have tried to locate an FPC 2.4.2 cross compiler for ARM targets
>> running on a Windows host, but failed. Is one available or must I
>> change my development hosting to a (for me unknown) linux system?
>> I *have* googled some wiki pages outlining cross-compile for ARM, but
>> these are using linux as the host, unfortunately...
>
>What you want is certainly possible but you might need to learn how to 
>build your own cross-compile FPC and Lazarus.  You might consider doing 
>what I did and install CodeTyphon in a virtual machine:
>   http://www.pilotlogic.com/
>
>That uses a recent FPC and Lazarus trunk so it isn't the stable versions 
>you want.  But it might be useful for you to see what is possible on 
>Windows:
>   http://www.pilotlogic.com/codetyphon_help/layers_and_areas.htm
>
>Paul

Thanks,
if most people use Linux (Ubuntu?) to do the cross-compile stuff I
might as well fix me up with a virtual machine running Ubuntu. In fact
I have done this several times already but every time I never get
around to actually using the Ubuntu VM for anything....

Incidentally, my target as you might guess is the board you told me
about a couple of months back...

Since then I am retiring my old DELL XP-Pro PC in favour of an HP
EliteBook laptop with Win7 X64. Turns out that I had to also create a
virtual machine for running some of my older dev tools on since they
would not work on Win7. So I already have decided to put all the dev
tools in an XP VM (VMWare), which is what I am setting up right now.

Could as well also create an Ubuntu 10 VM for the FPC and Lazarus
cross compile.
But now I had a quick look at the CodeTyphon project you linked to and
found that it probably runs on Win32 (my XP VM), so I will download it
and have alook. :-)
Thanks again.


-- 
Bo Berglund
Developer in Sweden





More information about the Lazarus mailing list