Saturday, September 8, 2012

Doing horrible things to platforms.

So recently I've been distracted from my goal of an extensible SDL engine by a couple of things. Compiling a  Kernel for my Android tablet (Ainol Elf II) which is a [i]very[/i] good tablet for the price by the way and trying to compile FreePascal and Lazarus from SVN.

The latter may sound easy. Well it is. But it isn't. I can compile Pascal. I can make a .deb package for Pascal. I can install Pascal.
I can compile Lazarus. I can make a .deb of Lazarus. I can install Lazarus but...

Lazarus depends on a matching version of fp. If I compile fp, install it and try to compile Lazarus it chucks a wobbly about differing signatures of the RTL. fff...

I can even compile Pascal, install it, then compile Pascal again so it has self compiled, install it and Lazarus still won't compile!

Lazarus will compile with the standard package version of fp however.

Why am I going to such effort?

Well you see, the SVN version of fp has JVM as a target. So I could compile a Pascal program with it. Instead of write once, compile anywhere, it'd be write once, compile once. My ultimate goal was to self compile Pascal in the JVM, but I'm having no luck with that. Why? Because I think it'd be neat.

I should also point out that when I'm saying fp I mean FreePascal, not fp the textmode IDE for FreePascal, which is also pretty cool by the way if you date back to that sort of thing like myself. It's like coming home.

No comments:

Post a Comment