C / C++

Begin by downloading a release tarball or by cloning the TileDB GitHub repo and checking out a release tag (where <version> is the version you wish to use (e.g., 1.7.4)

$ git clone https://github.com/TileDB-Inc/TileDB.git
$ cd TileDB
$ git checkout <version>

To configure TileDB, use the bootstrap script:

$ mkdir build
$ cd build
$ ../bootstrap <flags>
$ # Or use CMake directly instead of bootstrap:
$ # cmake <flags> ..

The flags for the bootstrap script and the CMake equivalents are as follows:

To build after configuration, run the generated make script

$ make -j <nprocs>

To install to the configured prefix

$ make install-tiledb

Note that building against the installed shared library requires setting the library search path at build- or run-time, as documented in Usage. (system-wide installations requiring sudo permissions may avoid this step by running sudo ldconfig after installation).

Other helpful makefile targets:

# Runs the tests
make check

# Builds the examples
make examples

Last updated