Installation

JonoonDB is available and supported only as a 64bit library. JonoonDB has to be built from source and then installed. Before building JonoonDB, you have to build/install its 3rd party dependencies.

Supported Compilers

JonoonDB requires a C++ compiler that at least supports C++14 standard. It should work with the following compilers:

  • MSVC VS2015 SP3 and above.
  • GCC 5.2.1 and above.
  • Clang 3.4 and above.
Build/Install 3rd party dependencies
  1. Download and install the latest cmake from cmake's website.
Clone and build JonoonDB

Using cmake you can generate project files for Visual Studio, Eclipse CDT and other IDEs. After that you can build using your IDE of choice. On Linux you can also generate makefile if you don't want to use IDEs.

CMAKE_INSTALL_PREFIX sets the install directory where JonoonDB will be installed. If you don't specify it then this variable defaults to /usr/local on Linux/MacOS X and C:/Program Files on Windows.

Building from IDE

Execute the commands given below to clone and generate the solution file for VS 2015:

git clone https://github.com/zarianw/jonoondb.git
cd jonoondb/
mkdir build
cd build
cmake .. -G "Visual Studio 14 Win64" -Dgtest_force_shared_crt=ON -DCMAKE_INSTALL_PREFIX=/path/to/install/directory

Please note that -G "Visual Studio 14 Win64" command line argument shown above generates the files for VS 2015 with 64bit build configuration. To generate project files for Eclipse CDT4 on Linux use -G "Eclipse CDT4 - Unix Makefiles". You can list all the available cmake generators by typing cmake --help.

Building from terminal on Linux
git clone https://github.com/zarianw/jonoondb.git
cd jonoondb/
mkdir build
cd build
cmake .. -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/path/to/install/directory
make

If you want to run unittests from terminal then you can type "ctest -V" from inside the build directory.

Install JonoonDB

Its time to install JonoonDB library and headers in the location specified by CMAKE_INSTALL_PREFIX above.

On windows, just build the INSTALL project from within Visual Studio.

On Linux/MacOS X, just execute the command sudo make install.

That's it folks. You should see the JonoonDB library, tools and headers in the install directory.

  • include: This directory will have all the headers. database.h being the most important one.
  • lib: This directory will have the jonoondb shared library. This is the library that you would link against.
  • bin: This directory will have the jonoondb_cli command-line tool. Its a tool to create or view databases.