Recent

Author Topic: mORMot in ' uses'  (Read 6849 times)

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
mORMot in ' uses'
« on: December 22, 2015, 04:07:37 pm »
Maybe it's something simple, but I can't find it.

I'm trying mORMot for the first time. I put 'mORMot, mORMotSQLite3, SynSQLite3Static ' in my uses close of my form. The compiler can't find these units.

I put the directories ' mormot\, mormot\sqlite3 and mormot\SynDBDataset in the library path, but the compiler still can't find them.

(mormot is put in directory components of lazarus).

There are no problems if I compiling demo 01 and 02 in SQLite3\samples.

How can the compiler the required files?
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12846
  • FPC developer.
Re: mORMot in ' uses'
« Reply #1 on: December 22, 2015, 05:25:59 pm »
Simply add a requirement of the runtime package of mormot to the project.


Messing with library paths manually is so, ... Delphi.

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: mORMot in ' uses'
« Reply #2 on: December 23, 2015, 08:38:13 am »
Do you mean that I have to create my own package of mORMot to set the paths right?
But why are the samples running fine and not my application?
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

balazsszekely

  • Guest
Re: mORMot in ' uses'
« Reply #3 on: December 23, 2015, 10:24:37 am »
@mangakissa
Quote
Do you mean that I have to create my own package of mORMot to set the paths right?
@marcov was talking about adding the mORMot package to the required packages: Project-->Project Inspector-->Required Packages ..., but since mORMot doesn't have a package you cannot do this.

@mangakissa
Quote
But why are the samples running fine and not my application?
The answer is in project options(see attachment)


Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: mORMot in ' uses'
« Reply #4 on: December 24, 2015, 07:05:40 am »
@marcov was talking about adding the mORMot package to the required packages: Project-->Project Inspector-->Required Packages ..., but since mORMot doesn't have a package you cannot do this.
Just create one, adding all mormot units to the package. The path will be set accordingly.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: mORMot in ' uses'
« Reply #5 on: December 24, 2015, 07:42:26 am »

Just create one, adding all mormot units to the package. The path will be set accordingly.
[/quote]
Making package is easy, my problem is running demos beside 1,2 and 3.

balazsszekely

  • Guest
Re: mORMot in ' uses'
« Reply #6 on: December 24, 2015, 09:47:28 am »
Quote
@aredeonas
Making package is easy, my problem is running demos beside 1,2 and 3.
Example 4/Server: you need some o files, which are created from c files(see *.bat), you also need bcc32.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: mORMot in ' uses'
« Reply #7 on: December 24, 2015, 10:51:01 am »
.o files are not problem, units,demos can compiled easy and as mangakissa said, there is not even a package.

truetom

  • Jr. Member
  • **
  • Posts: 73
    • http://sourceforge.net/projects/laz4android/
Re: mORMot in ' uses'
« Reply #8 on: December 24, 2015, 01:06:07 pm »
Hello,
Please put the directories ' mORMot\; mORMot\SQLite3' in the 'Other unit files' and 'Include files' ,then can compiled ok!

Happy Christmas !
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

avra

  • Hero Member
  • *****
  • Posts: 2586
    • Additional info
Re: mORMot in ' uses'
« Reply #9 on: December 25, 2015, 10:21:43 am »
Making package is easy, my problem is running demos beside 1,2 and 3.
Not all demos are convered to FPC. Demos 1-4 work and I think that demo 20 is attached to this thread:
http://forum.lazarus.freepascal.org/index.php/topic,30649.msg195658.html#msg195658
Thread explains a little status of mORMot demos compatibility for FPC.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: mORMot in ' uses'
« Reply #10 on: January 06, 2016, 05:05:39 pm »
thanks, GetMem. Sorry for the late reply.

The samples are working correctly with these settings by 'other unit path' and 'include path'. But my examples is put elsewhere. I forgot to fill the 'include path'. Setting the absolute paths from mORMot into these two options gave me a working executable.
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

 

TinyPortal © 2005-2018