Getting started

As mORMot is actively being developed, the best way of getting hold of the library is to grab the latest, bleeding edge, code. We do that by:

  1. Getting and installing git
  2. Grab a copy of the repository
  3. Configuring Delphi to use the library

Step 1: Get git!

This is easy enough. Visit http://msysgit.github.io/ and download and install the appropriate package.

Step 2: Get the code!

Almost as easy! Open a command prompt, change to the drive and directory where you want the library to live and type:

git clone https://github.com/synopse/mORMot.git

I suggest something like

E:
git clone https://github.com/synopse/mORMot.git mORMot

This will create and download a copy of the repository to E:\mORMot\
Next we need to grab a copy of the SQLite 3 static .obj files. This will allow our mORMot based application to embed the SQLite engine in our application.

Grab http://synopse.info/files/sqlite3obj.7z and extract to yourE:\mORMot\ folder. If you plan to develop for 64-bit targets grab http://synopse.info/files/SQLite3-64.7z and place sqlite3-64.dll in your project’s build directory or in your Windows directory.

Step 3: Configure the environment!

Add the following to your Delphi Library Path:

  • E:\mORMot;
  • E:\mORMot\SQLite3;
  • E:\mORMot\SynDBDataset;
  • E:\mORMot\SQLite3\DDD;
  • E:\mORMot\SQLite3\DDD\dom;
  • E:\mORMot\SQLite3\DDD\infra;

Step 4: Test the environment!

Open E:\mORMot\SQLite3\TestSQL3.dpr and run it. Make sure all the tests pass.

You’re done!

Advertisements

2 thoughts on “Getting started

  1. Would you mind introducing your environment? I got some fails when running TestSQL3(BSON and TPdfDocument), and I’m not sure why.. I use a Win7-32 VirtualBox VM and DelphiXE7 on it.

    Like

    1. Hi,

      I’m using a Win7-64 VirtualBox VM with Delphi XE2/7. I’ll make the exact mORMot source available as a separate download, as I have had one or two other users complain that the nightly build might be a bit too unstable. You can get it here: https://goo.gl/lIjUK9

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s