#1 2023-09-05 08:09:25

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 430

mormot2 inside a delphi package

I tried today to include a part my code with mormot2 in a delphi package.
During compile I am getting an error [dcc32 Fatal Error] mormot.db.raw.sqlite3.pas(1): F2084 Internal Error: GH8402 and a message box that it can not find the file in the package directory path(????)
I have tried to included it as a unit with its directory path in uses list, but the error persists

I have read problems concerning include it in a dll, but is it free of problems with a delphi package?

Offline

#2 2023-09-05 08:38:49

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

Re: mormot2 inside a delphi package

Which version of Delphi are you using?

User feedback is needed for Delphi packages, because we did not use them yet here.

Offline

#3 2023-09-05 08:41:14

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 430

Re: mormot2 inside a delphi package

Delphi 11.3 patch 1

Offline

#4 2024-11-21 19:56:40

vennexedu
Member
Registered: 2024-11-12
Posts: 12

Re: mormot2 inside a delphi package

I've got the exact same issue. I can't create a package for Delphi. I also use Delphi 11.3, but without patch 1.

Edit: I've managed to create and install the package by editing Javierus' .dpk file, creating a .bpl from it as well as a dcp file. I nested this into another dcp file. I tried it with both files: I get an error when compiling my units in Delphi telling me mormot.db.raw.sqlite3.pas was missing. Now I'm thinking it could actually be a bug inside mORMot 2 itself. I've just included units necessary for SQLite plus a few extra ones. It would be really appreciated if mORMot 2 would come with a working .dpk file on Github just like there is one for Lazarus.

Last edited by vennexedu (2024-11-21 22:25:12)

Offline

#5 2024-11-22 15:25:41

vennexedu
Member
Registered: 2024-11-12
Posts: 12

Re: mormot2 inside a delphi package

The solution was to go into Project->Options->Delphi-Compiler->C/C++-Compilation->Compiling of output file->Only build DCUs in the project that uses mORMot2's dcp file.

Last edited by vennexedu (2024-11-22 15:26:29)

Offline

Board footer

Powered by FluxBB