#1 2017-11-06 14:17:15

WilliamAndrade
Member
Registered: 2017-11-06
Posts: 5

Using SynMongoDB

Hello guys i'd like to know if its possible to use SynMongoDB without mORMot or without the full package since i'm not going to use the orm anyway. Besides i'm using lazarus do that works in FPC?(i know that should be the first question lol) and any description of "How to" is apreciated(newbie here...), sorry for any errors not a english speaker here smile

Offline

#2 2017-11-06 14:34:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,504
Website

Re: Using SynMongoDB

Yes, you can use directly SynMongoDB, which is not tied to the mORMot ORM at all.
Just check the corresponding sample, and the associated documentation.

It should work with FPC, too (even if you may have problem with some late-binding of variants, depending on the compiler revision).

Offline

#3 2017-11-06 19:31:57

WilliamAndrade
Member
Registered: 2017-11-06
Posts: 5

Re: Using SynMongoDB

Thanks for reply! i searched the docs and find de dependencies https://synopse.info/files/html/api-1.1 … ngoDB.html after get all the dependencies and codependencies when i run my test project the following error appear: https://drive.google.com/file/d/1Q3a43I … sp=sharing
how can i solve that?

Offline

#4 2017-11-06 19:51:19

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,504
Website

Re: Using SynMongoDB

Ensure you retrieve the .o files as needed by FPC.

Offline

#5 2017-11-06 20:33:08

WilliamAndrade
Member
Registered: 2017-11-06
Posts: 5

Re: Using SynMongoDB

I already put the necessary .o guys on the project folder https://drive.google.com/file/d/1vdN52D … sp=sharing i'm out of luck... well, everybody have to be a padawan before be a jedi don't you think? unless you are Chuck Norris.... lol thanks for help

Last edited by WilliamAndrade (2017-11-06 20:33:37)

Offline

#6 2017-11-06 22:37:18

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,504
Website

Re: Using SynMongoDB

There should be in the right subfolder, as in the archive or github.

Offline

#7 2017-11-08 20:09:07

WilliamAndrade
Member
Registered: 2017-11-06
Posts: 5

Re: Using SynMongoDB

Ok i looked on the docs https://synopse.info/files/html/Synopse … l#TITL_113 assuming that Dev(/Dev/Lib) its the project folder and lib is the lib folder created inside the project directory, i moved synmongodb and his dependencies to lib running the project the same errors appear https://drive.google.com/open?id=1Q3a43 … 2d1_V7WakU in the 26.3 section theres "for FPC only: static .o files for Windows or Linux" i have downloaded then but i don't get how to use it since i'm using windows x64 extract the fpc-win64 appeared to be the right thing to do, so i moved the FOLDER fpc-win64 to the lib folder https://drive.google.com/open?id=19oTZE … rXHUfGYfNJ but as in the website says TWO folders i put the the fpc-win32 too, but the same errors appear https://drive.google.com/open?id=1Q3a43 … 2d1_V7WakU i've tried to cut the all *.o files from fpc-win64 to the x86_64-win64 and that error came https://drive.google.com/open?id=1TCLps … 6iGf8fON7U i'm also tried to get the all *.o file from fpc-win64 and move to the lib folder(together with the synmongodb and his dependencies) but just came back to the first error https://drive.google.com/openid=1Q3a43I … 2d1_V7WakU.

How can i solve this? What i have to move of folder and in what folder?

Project Directory: https://drive.google.com/open?id=1b034g … yZcLcjRhIv
Lib folder: https://drive.google.com/open?id=19oTZE … rXHUfGYfNJ

Last edited by WilliamAndrade (2017-11-08 20:11:18)

Offline

#8 2017-11-08 20:13:39

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,504
Website

Re: Using SynMongoDB

Why are you re-creating the folder hierarchy?

Just start from https://github.com/synopse/mORMot by clicking "Clone or Download" button.
Extract all files and folders in your "lib" folder.
And it will compile.

Offline

#9 2017-11-08 20:31:54

WilliamAndrade
Member
Registered: 2017-11-06
Posts: 5

Re: Using SynMongoDB

Offline

Board footer

Powered by FluxBB