Recent

Author Topic: Cross compiling for ARM Linux  (Read 9356 times)

jboavida

  • Newbie
  • Posts: 1
Cross compiling for ARM Linux
« on: August 23, 2009, 11:32:15 am »
Dear all,

I'm a long time user of Delphi, so Pascal is my natural choice for programming. I' starting a new project that involves ARM processors under Linux OS.
Please see: http://www.friendlyarm.net/products/mini2440
This little board as some toolchains but all in C. I wonder if I can develop applications to this using Lazarus.
Developing environment will be windows, output ARM LINUX. The board uses Qtopia distribution.
The ARM is ARM9, but I dont see any reference to ARM families in Lazarus. Can anyone point me in the right direction please? I really dont want to learn C...

Thanks

Jaoquim

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Cross compiling for ARM Linux
« Reply #1 on: August 24, 2009, 05:27:06 am »
AFAIK FPC supports ARM7 and ARM9, at least for its GBA (or NDS) target. I believe you can build FPC application for it, but a Lazarus application... only if it has gtk(2) or qt installed.

What you need:
  • arm-linux GNU assembler and linker (fpc svn has it, justgoogle)
  • fpc and all required packages (rtl, fcl, lcl, + other 3rd party packages you'd like to use) cross compiled to arm linux (see wiki on how to set it up)

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Cross compiling for ARM Linux
« Reply #2 on: August 24, 2009, 06:01:16 pm »
AFAIK FPC supports ARM7 and ARM9

Do you think it might support this CPU: TI OMAP 850 (core = ARM926EJ-S)? It looks like an ARM9 processor to me.

Update: It does. Today, for the first time, I have run on this smartphone (an HTC Touch Elfin w/ Windows Mobile 6.1) one of my applications developed in Lazarus/FPC for WinCE (ARM). It has run exactly as expected, as in the Windows Mobile 6.1 Emulator, with graphics and audio. Way to go, Lazarus/FPC team!
« Last Edit: August 25, 2009, 04:59:51 am by Troodon »
Lazarus/FPC on Linux

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Cross compiling for ARM Linux
« Reply #3 on: August 26, 2009, 11:44:14 am »
Troodon, I am pleased / amazed to hear that you got things working on arm-linux too. :)

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Cross compiling for ARM Linux
« Reply #4 on: August 26, 2009, 04:18:16 pm »
you got things working on arm-linux too. :)

Vincent... "Windows Mobile 6.1" :)
Lazarus/FPC on Linux

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Cross compiling for ARM Linux
« Reply #5 on: August 26, 2009, 04:34:34 pm »
Troodon, I am confused about this thread...

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Cross compiling for ARM Linux
« Reply #6 on: August 26, 2009, 04:40:55 pm »
I know, it was my mistake to post that information here... sorry about that.
« Last Edit: August 26, 2009, 04:49:08 pm by Troodon »
Lazarus/FPC on Linux

 

TinyPortal © 2005-2018