Quote Originally Posted by Legolas
Yep!
Some months ago I built a crosscompiler for arm-linux. This binary package is a bit outdated and I have lost on my hd the batch script I have made for building, but IIRC it should be pretty similar to gba crossbuild (see the wiki)
Hi Legolas :-)

I have tried using that crosscompiler for arm-linux so I can make some pascal GP2X programs and I am having troubles.

If I try compiling this code which uses the JEDI-SDL 1.0 beta units.

[pascal]Program Test_gp2x;
Uses
SDL;
Begin
End.[/pascal]

I get this output:

Code:
C:\>ppcrossarm -Fuc:\fpc\2.0.4\Units\arm-linux Test_gp2x.pp
Free Pascal Compiler version 2.1.1 [2006/09/09] for arm
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for ARM
Compiling Test_gp2x.pp
Compiling SDL.pas
jedi-sdl.inc(293,4) Warning: Illegal compiler directive "$THREADING"
Fatal: Can't find unit pthreads
Fatal: Compilation aborted
Any ideas?

I know I read somewhere about the $THREADING being removed/changed or something, but the fatal error is obviously the killer

If you noticed the 2.0.4 version in the path, this is because I dumped the crosscompile units and binaries into separate unit and bin folders in the native fpc 2.0.4 version. I can't see this affecting the crosscompile?

cheers,
Paul.