#1 2016-05-25 06:17:40

markus_ja
Member
Registered: 2015-11-20
Posts: 10

Help on how to use mORMot framework in lazarus

Hello,

I am very new to lazarus, and don't know how to set the search and library path for the mORMot files. I read in the lazarzs forums, that I cannot set such pathes!?
So how to tell lazarus, where the files are located in order my project can find it?

thanks,
Markus

Offline

#2 2016-05-25 06:23:14

hnb
Member
Registered: 2015-06-15
Posts: 290

Re: Help on how to use mORMot framework in lazarus

Project->Project Options->Compiler Options->Paths ; in field "Other unit files"


best regards,
Maciej Izak

Offline

#3 2016-05-25 07:08:22

markus_ja
Member
Registered: 2015-11-20
Posts: 10

Re: Help on how to use mORMot framework in lazarus

Thanks!

Offline

#4 2016-05-25 07:34:53

markus_ja
Member
Registered: 2015-11-20
Posts: 10

Re: Help on how to use mORMot framework in lazarus

I have added all 3 pathes as mentioned in the documentation, but when I use the mormot unit, I get the error message: "Cannot open include file "Synopse.inc" in the mormot.pas file.

That file is present and that path is also in the project options. Any hint, why it cannot open that file?

Offline

#5 2016-05-25 07:44:41

hnb
Member
Registered: 2015-06-15
Posts: 290

Re: Help on how to use mORMot framework in lazarus

Lazarus is different than Delphi. You need to add additional path to mORMot directory (place where Synopse.inc is located) in:

Project->Project Options->Compiler Options->Paths ; in field "Include files"


best regards,
Maciej Izak

Offline

#6 2016-05-25 07:53:39

markus_ja
Member
Registered: 2015-11-20
Posts: 10

Re: Help on how to use mORMot framework in lazarus

Thanks a lot. You saved my day smile

Offline

Board footer

Powered by FluxBB