hi, i've a computer that runs on an ARM9 processor (exacly ARM920T), running linux.
i've read some time ago that it is possible to cross compile to arm with freepascal.. is it true? any hint on how to do it/things i should be aware of?
thanks!
hi, i've a computer that runs on an ARM9 processor (exacly ARM920T), running linux.
i've read some time ago that it is possible to cross compile to arm with freepascal.. is it true? any hint on how to do it/things i should be aware of?
thanks!
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
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)
you mean this page;
http://www.freepascal.org/wiki/index...ompile_For_ARM
?
uhm looks simple! :shock:
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
If you use Linux on your desktop, you also can download the 2.0.4 ARM-linux release to cross-compile to ARM.
No, I mean this page:Originally Posted by {MSX}
http://www.freepascal.org/wiki/index...ameBoy_Advance
of course, changing the needed here and there
I tried compiling a FPC ARM cross-compiler a while back, but the FPC compiler would crash about an hour into the "make all" when trying to compile the runtime library. gtkspinbutton.pas would cause an internal compiler error that no-one on the FPC mailing list seemed interested in fixing, and I don't know how to debug that sort of thing with gdb.
Hi Legolas :-)Originally Posted by 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:
Any ideas?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
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.
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Try to ifdef it, we cannot multithread on ARM at this time.
Ok, what about if I added a -Dgp2x define in the compile line and did something like this in the SDL.pas file:Originally Posted by dmantione
{$IFNDEF gp2x}
//the whole pthreads section
{$ENDIF}
could this work?
cheers,
Paul.
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Hey, keep at it Paul! GP2X will be a really nice addition to the list of game platforms for FPC.
I can't exactly speak for him, but I think that after Legolas is done with getting the major stuff for GBA and NDS working he'll be interested in helping our add support for GP2X in FPC too.
Bookmarks