Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (28 loc) · 963 Bytes

BUILD.leveldb.md

File metadata and controls

39 lines (28 loc) · 963 Bytes

Installation of LevelDB for NabLab

LevelDB installation

LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

To install levelDB 1.23 version from GitHub repository

	cd
	git clone https://github.com/google/leveldb.git -b 1.23 leveldb
	cd leveldb
	git submodule update --init
	mkdir install; mkdir build; cd build
	cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/leveldb/install
	make; make install
	cd ..; rm -rf build

NabLab examples compilation

To generate code with levelDB support, add this block in nablagen (after VtkOutput block)

LevelDB
{
	leveldb_ROOT = "$ENV{HOME}/leveldb/install";
}

Then the json datafile waits for nonRegression field that could be CreateReference or CompareToReference.

NabLabExamplesTest

To run NabLabExamplesTest, you have to set leveldb_ROOT

export leveldb_ROOT=$HOME/leveldb/install