You are not logged in.
Hello,
I installed the Lazarus / FPC through the FPCUP.
Lazarus: 1.5
FPC: 3.1.1
WIn 7 64
I took the mORMotNightlyBuild.
In Synopse.inc deisei like this: {$ define PUREPASCAL}.
Created a mORMot Server, he is compiling but I get an error on the line below in mORMot.pas:
procedure TInterfaceFactoryRTTI.AddMethodsFromTypeInfo(aInterface: PTypeInfo);
P := AlignToPtr(@PPropInfo(P)^.Name[ord(PPropInfo(P)^.Name[0])+1]);
I'm thinking I did something wrong in the installation of mORMot ...
Could someone help me? even to install on Windows, and use correctly the FPCup?
Offline
Hello,
Personnally I use CodeTyphon. It is much like Lazarus. I had this error too. I don't know if it's the best way to solve it but :
- Go to the project options - analysis and change the mode. You can use : MODE DELPHI.
It solved my compilation errors.
Thormot
Edit 2 : I had the same problem here : http://synopse.info/forum/viewtopic.php?id=2542
Last edited by Thomas-Acia (2015-07-22 07:08:41)
Delphi 2010 - Delphi XE5 (x64 Apps) - CodeTyphon - Typhon IDE v 5.7 - FPC 3.1.1 - mORMot 1.18
Windows 7 - VirtualBox : Linux Debian 8.5 Jessie 32 bits
Offline
Hello,
Thank you for your answer.
I did what you said, and also did what it says on this link:
http://synopse.info/forum/viewtopic.php?pid=16790
So, I could compile and run my mORMOt Server... I updated my FPC with FPCUP lowering the branch of rtti...
Using this branch of the FPC, it is safe?
Offline
Ensure you follow http://synopse.info/files/html/Synopse% … l#TITL_143
Add {$I Synopse.inc} at the top of all your units using mORMot.
It will define the FPC modes and syntax as expected by the framework.
Offline