#1 Re: mORMot 2 » Project lazarus not build with mormot2 and zeos » 2023-11-06 15:06:07

dcoun wrote:

tree: 8.0 patches

I have to use 7.2-patches for compatibility reasons

I've already managed to compile it, just open the momot2.lpk package and use the zdbc runtime package!

thanks,

#2 Re: mORMot 2 » Project lazarus not build with mormot2 and zeos » 2023-11-06 11:48:16

Thomas wrote:

I think you are using a mORMot2 version that was created before May 2022...

This version number refers to the lpk package, the source is downloaded directly from the master:

git clone https://github.com/synopse/mORMot2.git

I would like to know if anyone can use zeos in this

thanks,

#3 mORMot 2 » Project lazarus not build with mormot2 and zeos » 2023-11-04 12:29:45

cgsousa21
Replies: 4

I can't build any project with mormot2 and Zeos connector for external DB access (Firebird)!

Memo using the packages!
Package adjustments:

mormot2: NOSYNDBZEOS

Zeos.inc(7.2-patches):

{$DEFINE ZEOS_DISABLE_MYSQL}
{$DEFINE ZEOS_DISABLE_POSTGRESQL}
{$DEFINE ZEOS_DISABLE_DBLIB}
{$DEFINE ZEOS_DISABLE_ADO}
{.$DEFINE ZEOS_DISABLE_INTERBASE}
{$DEFINE ZEOS_DISABLE_SQLITE}
{$DEFINE ZEOS_DISABLE_ORACLE}
{$DEFINE ZEOS_DISABLE_ASA}
{$DEFINE ZEOS_DISABLE_POOLED}
{$DEFINE ZEOS_DISABLE_OLEDB}
{$DEFINE ZEOS_DISABLE_ODBC}
...


Compile package mormot2 2.0.1: Exit code 1, Errors: 1, Hints: 2
Hint: Start of reading config file /home/gonzaga/develop/stable/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/gonzaga/develop/stable/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.2.2-r0d122c49 [2023/04/14] for x86_64
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Linux for x86-64
Verbose: Compiling mormot2.pas
...
Verbose: Compiling /home/gonzaga/develop/mORMot2/src/db/mormot.db.sql.zeos.pas
mormot.db.sql.zeos.pas(60,3) Fatal: Cannot find ZDbcInterbase6 used by mormot.db.sql.zeos. Check if package zdbc is in the dependencies of package mormot2.
Verbose: Compilation aborted
Verbose: /home/gonzaga/develop/stable/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode

What could be wrong?

#4 Re: mORMot 1 » Websocket notification from server to web client » 2021-11-17 19:45:07

ab wrote:

You can just call the SendFrame() method of the TWebSocketProtocolChat/TWebSocketProtocol class.
It is thread-safe, so could be called from any server thread, to notify the client.

Hello AB,

I'm trying to use it like this:

type
  //simple chatting protocol
  TSimpleChatProtocol = class(TWebSocketProtocolChat)
  private
    fParent: TSimpleChatServer;
  protected
    procedure echoFrame(Sender: THttpServerResp; const Frame: TWebSocketFrame);
    constructor newSimpleChatProtocol(aParent: TSimpleChatServer; const aName: RawUTF8);
  end;

  TSimpleChatServer = class
  private
    fPort: SockString;
    fServer: TWebSocketServer;
    fProtocol: TSimpleChatProtocol;
  ...

...
function TSimpleChatServer.closeConnetionOfClient(
  aClient: THttpServerResp): Boolean;
var
  frm: TWebSocketFrame;
begin
  FrameInit(focConnectionClose, '', '', frm);
  result :=fProtocol.SendFrame(aClient, frm);
end;
...

No effect is caused, any suggestions?

Board footer

Powered by FluxBB