#1 2020-03-27 01:11:52

Evaristo
Member
Registered: 2020-03-27
Posts: 5

mORMot framework for DELPHI 6 not working

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

#2 2020-03-27 20:29:49

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

Re: mORMot framework for DELPHI 6 not working

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

#3 2020-03-27 20:40:58

Evaristo
Member
Registered: 2020-03-27
Posts: 5

Re: mORMot framework for DELPHI 6 not working

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

#4 2020-03-28 00:10:36

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

Re: mORMot framework for DELPHI 6 not working

Offline

#5 2020-03-28 22:35:04

Evaristo
Member
Registered: 2020-03-27
Posts: 5

Re: mORMot framework for DELPHI 6 not working

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

#6 2020-03-29 11:00:05

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

Re: mORMot framework for DELPHI 6 not working

Incomplete github repo? I didn't have report about it.
Put a link here - I will look into it.
Perhaps we missed something.

Offline

#7 2020-03-29 17:47:17

Evaristo
Member
Registered: 2020-03-27
Posts: 5

Re: mORMot framework for DELPHI 6 not working

This is the link to the pdf file

https://docdro.id/UqJwgm3

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

https://docdro.id/gAtgz6N

Thank you ab for your unbelievable work

Offline

#8 2020-03-30 12:30:07

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

Re: mORMot framework for DELPHI 6 not working

I have added the needed files from RTL7.
Check https://github.com/synopse/mORMot/commi … 7dfeafacee

Offline

#9 2020-04-01 03:44:25

Evaristo
Member
Registered: 2020-03-27
Posts: 5

Re: mORMot framework for DELPHI 6 not working

I deleted the files

Offline

Board footer

Powered by FluxBB