Recent

Author Topic: MORMot problems with Lazarus  (Read 5708 times)

automacaosamos

  • New Member
  • *
  • Posts: 21
MORMot problems with Lazarus
« on: June 19, 2018, 11:20:03 pm »
adding mORMot in the clause use when compiling the message:

interface

uses
  Classes, SysUtils, mORMot;
.
.

Warning: Object fpc-linux64/sha512-x64sse4.o not found, Linking may fail !
Warning: Object fpc-linux64/crc32c64.o not found, Linking may fail !

help me please

thank you

Xor-el

  • Sr. Member
  • ****
  • Posts: 404
Re: MORMot problems with Lazarus
« Reply #1 on: June 19, 2018, 11:46:32 pm »
adding your Lazarus and FPC Version will help a lot in narrowing the issue down.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: MORMot problems with Lazarus
« Reply #2 on: June 20, 2018, 07:09:42 am »
If you are using Lazarus:
Goto the Project / Options / Paths. Point the Libraries (-FL) towards the correct static libraries for your system. See the libraries inside the static-directory of mORMot.

A good method to get an idea of all the settings, is to open or look into TestSQL3.lpi inside the mORMot directory. You will find something like this:
<Libraries Value="..\static\$(TargetCPU)-$(TargetOS)"/>
This line causes Lazarus to auto-magically use the right libs !

automacaosamos

  • New Member
  • *
  • Posts: 21
Re: MORMot problems with Lazarus
« Reply #3 on: June 20, 2018, 03:23:55 pm »
thanks for the help !

I tried using TestSQL3 to learn
but the errors were as follows

Linking /home/samos/Lazarus/mORMot/SQLite3/fpc/bin/x86_64-linux/TestSQL3
/usr/bin/ld: not found fpc-linux64/sha512-x64sse4.o
/usr/bin/ld: not found fpc-linux64/crc32c64.o
/usr/bin/ld: not found fpc-linux64/ecclin64O2.o
/usr/bin/ld: not found fpc-linux64/sqlite3-64.o
/usr/bin/ld: not found fpc-linux64/lizard_compress.o
/usr/bin/ld: not found fpc-linux64/lizard_decompress.o
/usr/bin/ld: not found fpc-linux64/lizard_frame.o
/usr/bin/ld: not found fpc-linux64/huf_compress.o
/usr/bin/ld: not found fpc-linux64/huf_decompress.o
/usr/bin/ld: not found fpc-linux64/fse_compress.o
/usr/bin/ld: not found fpc-linux64/fse_decompress.o
/usr/bin/ld: not found fpc-linux64/entropy_common.o
/usr/bin/ld: not found fpc-linux64/xxhash.o
TestSQL3.dpr(205,1) Error: Error while linking

I check: Options for Projects + Compile and Target
Target Platform selected as default
I performed tests.
messages:
WARNING: library search path does not exist: /home/samos/Lazarus/mORMot/fpc-linux
HINT: using config file /etc/fpc.cfg

thanks

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: MORMot problems with Lazarus
« Reply #4 on: June 20, 2018, 03:55:15 pm »
Quote
library search path does not exist: /home/samos/Lazarus/mORMot/fpc-linux

The above is strange.
This path is wrong.
Look at the included picture of a standard mORMot checkout on Git.
The libs are placed in a "static" directory, under their CPU-OS type !

automacaosamos

  • New Member
  • *
  • Posts: 21
Re: MORMot problems with Lazarus
« Reply #5 on: June 22, 2018, 03:10:50 pm »
I'm really having difficulty, could you send me an image of the lib settings, both for windows and for linux

thanks

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: MORMot problems with Lazarus
« Reply #6 on: June 22, 2018, 04:14:08 pm »
You should be able to find out by yourself, with a little help from me.

First, get the mORMot from GitHub:
https://github.com/synopse/mORMot/archive/master.zip

Unpack somewhere.

Start Lazarus and open:
mORMot-master/SQLite3/TestSQL3.lpi

Compile. This should work out-of-the-box.

Look at the path-settings in the Lazarus Project Options to get the idea !

automacaosamos

  • New Member
  • *
  • Posts: 21
Re: MORMot problems with Lazarus
« Reply #7 on: June 23, 2018, 12:09:12 am »
worked perfect
Thank you

MacWomble

  • Jr. Member
  • **
  • Posts: 79
Re: MORMot problems with Lazarus
« Reply #8 on: November 25, 2018, 09:03:36 am »
I did also the text witch runs fine, but shows one error with mustache renderer:

Code: Pascal  [Select][+][-]
  1. 1.2. Low level types:
  2.   - RTTI: 443 assertions passed  499us
  3.   - Url encoding: 200 assertions passed  1.56ms
  4.   - Encode decode JSON: 396,259 assertions passed  675.96ms
  5.   - Variants: 64 assertions passed  44us
  6.   - Mustache renderer: 147 assertions passed  5.05ms
  7. ! Low level types - TDocVariant
  8. ! Exception EAccessViolation raised with messsage:
  9. !  Access violation
  10.   - TDecimal128: 17,446 assertions passed  12.80ms
  11.   - BSON: 245,068 assertions passed  36.21ms
  12.      100000 TBSONObjectID.ComputeNew in 33.61ms i.e. 2974773/s, aver. 0us
  13.   - TSynTableStatement: 221 assertions passed  401us
  14.   - TSynMonitorUsage: 1,202 assertions passed  458us
  15.   Total failed: 0 / 732,801  - Low level types PASSED  955.22ms
  16.  

Any ideas?
Mint 19.3 Cinnamon, FPC/ Lazarus Trunk 64Bit

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: MORMot problems with Lazarus
« Reply #9 on: November 25, 2018, 12:57:29 pm »
This is not-reproducible with FPC trunk of today.

 

TinyPortal © 2005-2018