#1 Re: mORMot 1 » Softwares created using mORMot » 2017-03-20 18:18:09

Is there a list of open source software created with mORMot that I can be used to study how mORMot  works in practice?

#2 mORMot 1 » Compling TestSQL3.dpr results in variable RLIMIT not found error? » 2017-03-20 17:35:22

vonH
Replies: 3

When I try to compile TestSQL3.dpr on Linux the following error comes up in SynCrtSock line 3033. The code is from the github version of March 17 2017.

Compile Project, Target: fpc/bin/i386-linux/TestSQL3: Exit code 256, Errors: 10, Warnings: 24
SynCrtSock.pas(3303,12) Error: Identifier not found "RLIMIT"
SynCrtSock.pas(3303,18) Error: Error in type definition
SynCrtSock.pas(3311,23) Error: Illegal qualifier
SynCrtSock.pas(3312,23) Error: Illegal qualifier
SynCrtSock.pas(3317,12) Error: Identifier not found "RLIMIT"

function GetFileOpenLimit(hard: boolean=false): integer;
var limit: RLIMIT;
begin
  {$ifdef FPC}
  if fpgetrlimit(RLIMIT_NOFILE,@limit)=0 then
  {$else}
  if getrlimit(RLIMIT_NOFILE,limit)=0 then
  {$endif}
    if hard then
      result := limit.rlim_max else
      result := limit.rlim_cur else
    result := -1;
end;

The code is in an ifdef which does not apply to Windows.

PS. Is there any kind of package, ie a Lazarus lpk that can be added to a mORMot based program to ensure all the mORMot dependencies and path are available to the project?

#3 Re: Free Pascal Compiler » mORMot and FPC 3.0/3.1.1 » 2017-03-08 18:43:13

hnb wrote:
d.ioannidis wrote:

... there is no need for special mormot version ...

that is true. newpascal-ccr/mORMot was created as temporary solution:

1. to host binary files in repository for supported platforms
2. was created for initial support for Mac.
3. as important part of CI for NewPascal

All is merged now into "upstream" mORMot repository, so even NewPascal CI system uses https://github.com/synopse/mORMot .

What are the additional benefits in NewPascal besides better support for mORMot?

Is there a list of its new features and some code to illustrate them in comparison with FPC? Are they things that the average user might need in their everyday programming? I haven't used any of the  newer languages like C# and even the newer versions of Delphi.

Is NewPascal always compatible with the FPC trunk  branch it is forked from?

#4 Re: Free Pascal Compiler » mORMot and FPC 3.0/3.1.1 » 2017-03-07 12:38:39

Is newpascal-ccr/mORMot designed to work with stable versions of FPC, eg FPC 3.0.2 and 3.0.0? I read somewhere that it is a version of newpascal/mORMot with some fixes to allow it work on FPC 3.0.2 etc?

I also noticed this announcment on the FPC mailing list - Feature announcement: Interface RTTI - http://lists.freepascal.org/pipermail/f … 50021.html

Does this mean that future versions of mORMot will work directly with FPC trunk without needing any fixes to it?

#5 Re: mORMot 1 » Is there some documentation on master detail relationships in mORMot? » 2016-09-23 07:00:41

How do you upgrade an object schema?

When you add more fields to your objects how is the database upgraded?

Do you have to create a table for the new schema, open all the old records and save them to the table for the new schema?

#6 mORMot 1 » Is there some documentation on master detail relationships in mORMot? » 2016-09-19 23:02:54

vonH
Replies: 8

Is there some documentation on master detail relationships in mORMot and some demos as well?

#7 Re: mORMot 1 » Some findings after spent an afternoon fiddling Linux/Lazarus/mORMot » 2016-09-17 12:03:21

AOG wrote:

Just checked with FPC fixes (3.0.1 = future 3.0.2) : same error.

Pointers are initialized correct: the version string is received (3.14.1).

Again, after sqlite3 := TSQLite3LibraryStatic.Create, all function pointers are set to the value of initialize (@sqlite3_initialize) !!

??????

Perhaps it is a code generation error?

#8 Re: mORMot 1 » Some findings after spent an afternoon fiddling Linux/Lazarus/mORMot » 2016-09-13 14:44:19

Thanks to edwinsh and hnb on their replies at http://synopse.info/forum/viewtopic.php … 689#p21689 and http://synopse.info/forum/viewtopic.php … 690#p21690.

I remember being able to get some parts of mORMot working on Linux using some precreated object files for sqlite, http://synopse.info/files/sqlite3fpc.7z. That was with FPC 2.7.1 so I assume that I should able to do that now with the current release version 3.0.2_rc or 3.0 fixes branch.

So I just want to confirm my conclusions so far as from ab's response - http://synopse.info/forum/viewtopic.php … 917#p20917

ab wrote:

No need to worry: we want to stay 100% compatible with the main FPC branch.
In the meanwhile, you may either:
- use the patched FPC compiler directly from "newpascal";
- compile the FPC compiler yourself and include the "interface RTTI" patch;
- compile the FPC compiler from the "interface RTTI" branch yourself;
- use the official FPC compiler, but generate the RTTI by hand (e.g. from a Delphi compiler).

You have indeed a way to generate the needed RTTI as source code for a straight, plain, vanilla free FPC compiler, without the "interface RTTI" branch.
Please RTFM at http://synopse.info/files/html/Synopse% … #TITLE_639
This is what I'm currently using.


To get the whole of Synopose mORMot framework working on Linux you must either:

1. Use a compiler with interfaceRTTI capability built in
      or
2. Use the standard FPC trunk compiler but additional files to your project for additional RTTI support.

For option 1 - Use an FPC compiler with interfaceRTTI capability built in - either:

  a. Use the interfaceRTTI branch of the compiler from SVN

  b. Use the FPC trunk but add the interfaceRTTI source code patches manually (I take it that if you need new trunk features that haven't been added to interfaceRTTI branch this may be the way to go)

For option 2 - To use the FPC trunk version - either:

   a. generate the RTTI by hand (e.g. from a Delphi compiler)

   b. generate the RTTI as source code using the method documented by ab at http://synopse.info/files/html/Synopse% … #TITLE_639



https://github.com/LongDirtyAnimAlf/mORMot is made for the current FPC 3.0 fixes branch but not all mORMot features work. Can RTTI work with https://github.com/LongDirtyAnimAlf/mORMot via the Option 2 approach? I prefer to use trunk, but FPC 3.0.2 may be a safer bet as some trunk tends to break some existing packages.

#9 Re: mORMot 1 » Some findings after spent an afternoon fiddling Linux/Lazarus/mORMot » 2016-09-11 15:43:19

Few questions on the above topic.

What is the connection between https://github.com/LongDirtyAnimAlf/mORMot, https://github.com/dathox/newpascal and the FPC interfacertti branch?

Is NewPascal a bundle which combines the 3 of them?

I want to run mORMot on Linux and want to know how NewPascal can be compiled for Linux 64bit, or if the cross compilation from Windows to Linux works well enough.

I also want to develop something along these lines - https://sourceforge.net/projects/vclua/ and want to know if it is the kind of thing the interfaceRTTI branch of FPC makes easier.

So in a nutshell will being able to compile and install newpascal on Linux get both interfaceRTTI and mORMot working on Linux?

#10 mORMot 1 » Does Synopse have a tool to generation documention from source code? » 2015-03-22 13:24:34

vonH
Replies: 1

Does Synopse have a tool to generation documention from source code?

Can it generate HTML or a PDF?

#11 mORMot 1 » Is the Spidermonkey library compatible with FPC? » 2015-03-21 22:48:16

vonH
Replies: 1

Is the Spidermonkey library compatible with FPC?

I tried to compile it and got a lot of this errors.

SynSMAPI.pas(4466,32) Error: Illegal type conversion: "jsval" to "jsval_layout"

The message goes away I add {$MODE DELPHI}, but it creates a conflict in Synopse.inc

Synopse.inc(183,4) Error: Mode switch "DELPHI" not allowed here

I also got an error about an unknown type 'uint' which is not present is it the same as an unsigned integer, and is it architecture dependent?

SynSMAPI.pas(4015,73) Error: Identifier not found "uint"

#12 Re: mORMot 1 » Compatible Projects - FPC » 2015-03-21 22:35:10

ab wrote:

... or use a good old Delphi compiler to generate the units...
smile

Does this meaning using a Delphi compiler to generate the units and linking them with FPC afterwards?

How old can the Delphi compiler be?

#13 mORMot 1 » Are mORMotUI aind mORMot18n ready for FPC and Lazarus? » 2015-03-16 09:37:31

vonH
Replies: 1

mORMoti18n has an unclosed comment at line 64 with triggers a warning in the compiler and turns the whole file into a comment.

uses ini-compatible plain text messages language file format (*.msg)

There are also some comments starting with '((' which trigger further errors, and I am wondering whether their purpose is to disable some code or it is a mismatch between the FreePascal compiler and the Delphi compiler.

The other problem is around line 711 where a group of language Constants are not defined:

const
LANG_MACEDONIAN = $2f;
LANG_DARI = $8c;
LANG_PASHTO = $63;
sPriLang: array[TLanguages] of byte =
(LANG_HEBREW,LANG_GREEK,0,LANG_DARI,0,LANG_CATALAN,0,LANG_CZECH,0,0,0,

Are these constants defined in mORMot or do they come from Delphi?


mORMotUI also uses Windows unit directly I replaced with:

  {$ifdef FPC}
  LCLIntf, LCLType, LMessages,
  {$else}
  Windows,
  {$endif}

I have come across 2 problems:

One is the unit Consts, whose equivalent in Lazarus I don't know, and it is hard to tell whether it is for Windows only.

The other is problems with 2 constants, TWMTimer and WM_TIMER which appear to be Windows related constants. They may be related to the Consts unit.

#14 Re: mORMot 1 » First time issues » 2015-03-07 17:35:22

I have loaded them and triied to compile, but they are not being found. Which directories should  fpc-win32 and fpc-linux32 be copied to, as well as the mingw files after I obtain them?

#15 Re: mORMot 1 » First time issues » 2015-03-07 06:29:32

I am cross compiling from Linux to Win32 and I am getting a simlar error

Is there some place to download these files?

Project02.lpr(57,1) Error: Can't open object file: fpc-win32/sqlite3.o
Project02.lpr(57,1) Error: Can't open object file: fpc-win32/libkernel32.a
Project02.lpr(57,1) Error: Can't open object file: fpc-win32/libgcc.a

I downloaded the sqlite3.7z file and  it contains sqlite3.obj and sqlitefts3.obj

Where can I get the files in the mingw installation?

If I want to use the dll approach which file will I add this line to -  sqlite3 := TSQLite3LibraryDynamic.Create('sqlite3.dll');

#16 Re: mORMot 1 » How do I get started with Lazarus and FreePascal? » 2015-03-06 07:28:13

I have seen the samples and on trying the first one on 64bit Lazarus I get this error::

SynCrypto.pas(1282,6) Error: Identifier not found "cfSSE41"

Could it be related to this new update:

http://blog.synopse.info/post/2015/02/2 … or-SHA-256

#17 mORMot 1 » How do I get started with Lazarus and FreePascal? » 2015-03-06 07:06:24

vonH
Replies: 2

Hi, this is my first post to this forum

How do I get started using Lazarus and FreePascal on Linux?

Are there any demos or samples I can try out?

Board footer

Powered by FluxBB