#1 Re: mORMot 1 » Execution problem under Lazarus/Code Typhon » 2015-02-25 23:53:26

I don't have a Delphi license (or a Windows one hehe). I'm a GNU/Linux user and FreePascal hobbyist (and work with Java for a living).

I was happy that I found here in my house an old Borland evaluation kit CD that has Delphi 5 trial, but I just discovered (with the help of Wine) that it needed registration on the Borland website... I guess it's a bit too late for that. big_smile Now I don't know how I'll live without knowing what that problem was, but that's life! hehe

#2 Re: mORMot 1 » Execution problem under Lazarus/Code Typhon » 2015-02-25 02:50:47

Hi, thanks for the reply,

what part won't be allowed? This part of the file is inside a "{$ifdef FPC}", so Delphi won't reach that condition. (Although it would be better to end with "{$ifend}" and not "{$endif}" as in my code above, but even this would only be needed for versions lower than Delphi 6 if I'm not mistaken.)

#3 Re: mORMot 1 » Execution problem under Lazarus/Code Typhon » 2015-02-24 01:42:16

Sorry to resurrect the thread but I'm having this issue with FPC 3.0.1. Won't it be better to change that ifdef in synopse.inc and use the FPC_FULLVERSION define instead? (In order to don't need to update the condition after new fpc version releases).

Something like:

{$if FPC_FULLVERSION >= 20701} 
{$define ISFPC27}
{$endif} 

I'm not sure if this would be ok since I'm not very experienced with FPC (and have no experience with mORMot), but it seems to be easier to maintain.

#4 Re: mORMot 1 » Start with mORMot Framework in Lazarus » 2015-02-24 00:48:56

Hi,

Hope I'll not get banned posting a link in my first post here hehe, but maybe the script from http://www.getlazarus.org/  is a good try, it install lazarus and let it ready to cross compile for 32 bit linux, windows and mac os x. Guess it will be easier than setup things manually.

Board footer

Powered by FluxBB