Skip to content

Mac & Linux Install

Simon Ninon edited this page Feb 14, 2018 · 6 revisions

Requirement

This library currently uses C++11.

It has the following depencies:

Compiling and installing

The library is based on cmake for the compilation. In order to build the library, follow these steps:

# Clone the project
git clone --recursive https://github.com/thibault-martinez/iota.lib.cpp.git
# Go inside the project directory
cd iota.lib.cpp
# Get dependencies submodule
git submodule updat --init
# Create a build directory and move into it
mkdir build && cd build
# Generate the Makefile using CMake
cmake .. -DCMAKE_BUILD_TYPE=Release
# Build the library
make
# Install the library
make install

Then, you just have to include <iota/iota> in your source files and link the iota library with your project.

Customizing compilation and installation

Please refer to this page of the wiki.

Clone this wiki locally