#1 Re: mORMot 1 » Project Path » 2014-09-04 10:18:06

what kind of "uses" for TSQLRecordPeople and TSQLRestAuthenticationDefault?

[DCC Error] mClient.pas(25): E2003 Undeclared identifier: 'TSQLRecordPeople'
[DCC Error] mClient.pas(31): E2003 Undeclared identifier: 'TSQLRestAuthenticationDefault'

my code is below:

unit mClient;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, SynCrossPlatformREST;

type
  TForm5 = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form5: TForm5;
  Model: TSQLModel;
  Client: TSQLRestClientHTTP;
implementation

{$R *.fmx}
begin
  Model := TSQLModel.Create([TSQLAuthUser,TSQLAuthGroup,TSQLRecordPeople]);
  Client := TSQLRestClientHTTP.Create('localhost','888',Model);
  if not Client.Connect then
    raise Exception.Create('Impossible to connect to the server');
  if Client.ServerTimeStamp=0 then
    raise Exception.Create('Incorrect server');
  if not Client.SetUser(TSQLRestAuthenticationDefault,'User','synopse') then
    raise Exception.Create('Impossible to authenticate to the server');
end.

#2 Re: mORMot 1 » Project Path » 2014-09-04 09:20:47

yeah, i attempted to built for android. Now it works with Win32, thanks for helping.
i will try with crossplatform.

#3 mORMot 1 » Project Path » 2014-09-04 09:01:33

lemonade
Replies: 4

Hi,
i extracted
mORMotNightlyBuild.zip into C:\Dev\Synopse\
sqlite3obj.7z into C:\Dev\Synopse\SQLite3\

i installed
SQLite3-64.7z but i couldnt find Win64 .exe folders, so i extracted into System32 file.

i added library paths
($(BDSLIB)\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include;C:\Program Files (x86)\Raize\CS5\Lib\RS-XE6\Win32;C:\Dev\Synopse;C:\Dev\Synopse\SQLite3;C:\Dev\Synopse\SynDBDataset;)

i ran the TestSQL3.dpr, result : 144 / 17,553,349
it gives an error in TSynTable (144/875)

now i can compile SQLite3 Samples. But when i try to compile a new project, i get an error, [DCC Fatal Error] SynZip.pas(176): F1026 File not found: 'C:\Dev\Synopse\SQLite3\Samples\NewProject\LibC.dcu'

How can i create a new project with mORMot dcus?
Thanks in advice.

Board footer

Powered by FluxBB