#1 2020-04-30 21:48:44

pieczarka
Member
Registered: 2020-04-30
Posts: 3

Build 12 sample.

Hi!

I'm beginner in fpc and mormot. I want to build 12 sample - SynDB Explorer using Lazarus. First I see that, in SynDBExplorerMain missing uses keyword and I add this. Then can't find LMessagess on mormot directory or in Lazarus and I comment this. Then I have problem that I dont't find SynCommons, but I have ../../.. in my include dir in project options (SynCommons.pas is 3 dir up in main dir of mormot). How can I use SynCommons.pas? Please help me, and thanks for your time!

Offline

#2 2020-04-30 22:59:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,700
Website

Re: Build 12 sample.

Hello!

Sample 12 is for Delphi only...

sad

Offline

#3 2020-05-01 11:59:44

pieczarka
Member
Registered: 2020-04-30
Posts: 3

Re: Build 12 sample.

Thanks for answer, but why? In SynDBExplorerMain.pas is some LCL units and LCL are Lazarus units, and in this pas file are some FPC directives... Why I can't include SynCommons in Lazarus? I need to see some examples and debug some becouse I want to understand mormot. I want create some backend service in lazarus and mormot, to manage some english school. I want to use firebird database. Where are some example (compilable in Lazarus) of using mormot with firebird, make some crud operations, migration from orm to database structure. I want make 2 frontend - one make in LCL, and second in some Web technologi. Sorry for my English.

Offline

#4 2020-05-02 00:06:07

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

Re: Build 12 sample.

SynDBExplorer is a GUI Application. To open / explore the database. You don't need it to do what you need.

You can include SynCommons (just like the other units of the the framework) in a project created in Lazarus.
Just as you can create the background service.

Offline

#5 2020-05-03 11:50:21

pieczarka
Member
Registered: 2020-04-30
Posts: 3

Re: Build 12 sample.

Ok, this GUI app using FMX and I see now this is reason of uncompatybile with Lazarus. But main reason is lazarus conversion. After convert delphi project to lazarus project missing some paths in "Other uinit files" -Fu optins. AFter add  paths, this error disapeare. And this some fpc directives and units add Lazarus during covertion.

Offline

Board footer

Powered by FluxBB