You are not logged in.
Pages: 1
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.
Last edited by lemonade (2014-09-04 09:07:38)
Offline
Sounds fine, so far.
The issues in TestSQL3.dpr are not fatal issues - I guess they are linked to the fact that your Windows system is not in Win1252 charset.
The main units set of the framework (like SynZip, SynCommons or mORMot.pas) do work only under Win32 and Win64 platforms by now.
I suppose you attempt to built for another target, so it complains about a missing LibC.pas unit - which is, by the way, only available in Kylix (i.e. the old Delphi for Linux).
For other operating systems, see the cross-platform client code generation - http://blog.synopse.info/post/2014/08/1 … -Platforms
Offline
yeah, i attempted to built for android. Now it works with Win32, thanks for helping.
i will try with crossplatform.
Offline
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.
Offline
Pages: 1