On Friday, 11 January 2013 01:26:48 UTC+10, Sebastian Steinhauer wrote:
> Hi, thanks for your work porting Moria over to FreePascal.
> But I've encountered some trouble when trying to compile it on my Linux
> Box. Which version of FreePascal do you use ?! And why have you copied the
> crt.pas unit file into your source directory? Why is it needed, instead of
> the builtin crt unit from the FPC RTL?
Sorry for not getting back to you until now. I hope your interest hasn't disappeared like I seem to have done...
I actually used Lazarus to do all of my compilations on Linux. However, another individual (Michal Bielinski) did compile it with FPC only, as far as I know.
I had to use my own CRT unit because there were some compatibility problems with the FPC one and it didn't handle colour intelligently enough. I was going to have to make patches to the FPC one that I didn't want to commit back to the FPC project at that time. I will reinvestigate this once I have set up my Linux test box again (I've had to rebuild all of my PCs because of some drama...). You'll notice I use my own unit for it under Windows and MacOS, as well. The standard ones just didn't have the features/compatibility I required.
I apologise about the IniFiles dependency but it was more or less required unless I wrote my own replacement. I tried to say away from any LCL usage but didn't want to rewrite that one unit. AFAIK, its own dependencies are very minimal (SysUtils and Contnrs which both only need the RTL) and incorporating it into a vanilla FPC build process should be relatively painless.
Back in January (almost a whole year ago) I did some extensive changes on the project and I'll post about it in another thread. I hope you can become involved!