Here is the detailed process of installation of ApertureData Platform dependencies.


sudo apt-get install scons
sudo apt-get install libjsoncpp-dev
sudo apt-get install automake libtool curl make g++ unzip libgtest-dev
sudo apt-get install cmake wget zlib1g-dev libbz2-dev libssl-dev liblz4-dev
sudo apt-get install libtiff5-dev libjasper-dev libgtk-3-dev
sudo apt-get install wget
sudo apt-get install ffmpeg

// Also, install one of the following for MPI
sudo apt-get install libopenmpi-dev
sudo apt-get install mpich

Install gtest

Unfortunately apt doesn’t build gtest; you need to do the following steps to get it to work correctly:

cd /usr/src/gtest/
sudo cmake CMakeLists.txt
sudo make
sudo cp *.a /usr/lib


Google Protobufs. Default install location is /usr/local.
git clone
cd protobuf/
make && make check
sudo make install
sudo ldconfg


Below are instructions for installing OpenCV v3.3.1. It may also work with newer versions of OpenCV. Download OpenCV 3.3.1.

cd 3.3.1
mkdir build
cd build/
make -jX   # substitute X for maximum number of CPUs (or leave it off to use all available)
sudo make install

Note: When using videos, and getting the following error: “Unable to stop the stream: Inappropriate ioctl for device”, you may need to include more flags when compiling OpenCV. Follow these instructions ([source](

sudo apt-get install ffmpeg
sudo apt-get install libavcodec-dev libavformat-dev libavdevice-dev

// Rebuild OpenCV with the following commands:

cd build
make -j7
sudo make install


ApertureData Platform works with TileDB v1.3.1. The directions below will help you install TileDB v1.3.1 from source. You can also follow the directions listed here.

sudo apt-get install zlib1g-dev libssl-dev liblz4-dev libbz2-dev

Install Blosc

git clone`
cd c-blosc/
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX='/usr' ..
cmake --build .
sudo cmake --build . --target install

Install ZStandard

tar xf v1.1.0.tar.gz
cd zstd-1.1.0
sudo make install PREFIX='/usr'

Build TileDB

git clone
cd TileDB
git checkout 1.3.1
mkdir build
cd build
../bootstrap --prefix=/usr/local/
make -jX   # substitute X for maximum number of CPUs (or leave it off to use all available)
sudo make install-tiledb


Facebook Faiss library for similarity search, used as alternitive engines.

Download (Faiss 1.2.1)

tar -xzvf v1.2.1.tar.gz
cd faiss-1.2.1
mkdir build
cd build/
cmake ..
make -j

You may need to change some flags in the CMakeFile depending on configurations on your system.

Things that we have needed to change in CMakeLists.txt: * If your system doesn’t have a GPU, make sure that BUILD_WITH_GPU is OFF * You may need to add -msse4 to set(CMAKE_CXX_FLAGS * Change the add_library call to be SHARED instead of STATIC

This library does not offer an install. Make sure you move .h files to /usr/lib/include/faiss or /usr/local/lib/include/faiss, and make sure you make the library ( is available system-wide Or follow instructions [here](


Persistent Memory Graph Database (PMGD)

Python Client Module

ApertureData Platform offers the Python Client Module through the pip package manager, and it is compatible with Python 2.7+ and 3.3+. pip (or pip2 and pip3) will automatically install dependencies (protobuf).

pip install vdms


git clone
// Or download a release.

cd vdms
scons [FLAGS]
Flag Description
–no-server Compiles client libraries (C++/Python) only. (will not compile neither server nor tests)
–timing Compiles server with chronos for internal timing, experimental.
-jX Compiles in parallel, using X cores
AD_PATH=path Path to the root folder containing pmgd. Default is “./” which is pmgd inside aperture data folder. Example: scons AD_PATH=/opt/ad/

Running The ApertureData Platform Server

The config.json file contains the configuration of the server. Some of the parameters include the TCP port that will be use for incoming connections, maximun number of simultaneous clients, and paths to the folders where data/metadata will be stored.

We provide a script ( that will create some default directories, corresponding the default values in the config-vdms.json.

To run the server using the default directories and port, simply run: