You are not logged in.
Pages: 1
It is not possible to build mormot framework in DELPHI 6
I tried download the source code from:
1. https://github.com/synopse/mORMot
1. Current and Nightly Build
2. https://synopse.info/fossil
3. Version 1.17
None of these repositories are working on DELPHI 6
Can anyone help-me please?
I updated SynDprUses.inc
{$else} // enable FastMM4 on older versions of Delphi
{$IFDEF CONDITIONALEXPRESSIONS}
{$if CompilerVersion <= 17} // Delphi 2006 (and up) have FastMM4 integrated
// UPDATE
FastMM4Messages in '..\RTL7\FastMM4Messages.pas',
FastMM4 in '..\RTL7\FastMM4.pas',
{$ifend}
{$ifdef UNICODE}
{$WARN DUPLICATE_CTOR_DTOR OFF} // global at .dpr level - see QC 100815
{$endif}
{$ELSE}
FastMM4, // no conditional expressions -> versions older than Delphi 6
{$ENDIF}
{$endif FPC}
{$endif LVCL}
I replaced all references off PtrInt to Integer
Error in SynTable.pas:
TJSONWriter = class(TTextWriterWithEcho)
[Error] SynTable.pas(803): Undeclared identifier: 'TTextWriterWithEcho'
Many thanks
Offline
I guess there is something wrong with your configuration.
You may have some files from SynPDF also on the same paths.
I am able to compile and run the regression tests:
Borland Delphi Version 14.0
Copyright (c) 1983,2002 Borland Software Corporation
D:\dev\lib\SynCrtSock.pas(4372) Warning: Variable 'ip' might not have been initialized
D:\dev\lib\SynCrtSock.pas(10049) Warning: Variable 'wsRequestHeaders' might not have been initialized
mORMot.pas(20396) Warning: Variable 'nested' might not have been initialized
mORMot.pas(40054) Warning: Variable 'TableIndexes' might not have been initialized
mORMot.pas(52916) Warning: Variable 'toregisteragain' might not have been initialized
mORMot.pas(57854) Warning: Comparing signed and unsigned types - widened both operands
mORMotDDD.pas(1422) Warning: Variable 'hier' might not have been initialized
mORMotSQLite3.pas(1515) Warning: Symbol 'Backup' is deprecated
mORMotSQLite3.pas(1566) Warning: Symbol 'BackupGZ' is deprecated
378342 lines, 1.55 seconds, 2957896 bytes code, 179009 bytes data.
Then the tests:
Using mORMot 1.18.5907
TSQLite3LibraryStatic 3.31.0 with internal MM
Generated with: Delphi 6 32 bit compiler
Time elapsed for all tests: 9.88s
Performed 2020-03-27 21:29:06 by User on XP3
Total assertions failed for all test suits: 0 / 23,439,629
! All tests passed successfully.
Done - Press ENTER to Exit
Offline
Thanks for you quick answer
Can you please share or point me to the source code repository you use to run the regression tests
Offline
The official ones:
1. https://github.com/synopse/mORMot
2. https://synopse.info/fossil
Offline
Thank you very much for your time.
The problem was:
1. The github repository is incomplete
2. I have to to force a recompilation of all units used by your project, using the Build command instead of Ctrl + F9.
I created a small tutorial (PDF) describing the process.
Do you allow me to publish it?
Maybe it can help someone else with a similar problem.
Offline
This is the link to the pdf file
The step 3 contains a comparison between the two repositories fossil vs github
I shared the pdf with public visibility. After analyzing it, please tell me and I will remove it
This is the link to the DOCX file if you want to change/correct it
Thank you ab for your unbelievable work
Offline
I have added the needed files from RTL7.
Check https://github.com/synopse/mORMot/commi … 7dfeafacee
Offline
I deleted the files
Offline
Pages: 1