Build C++ libraries

Note: The C++ inference with CUDA extension is not covered in this build manual. We’ll add it very soon.

This document describes how to build and install C++ libraries, headers and executabls on Ubuntu 16.04 using CMake build system. We will add the installation manual on the other platforms.

Most of the procedure is the same as Build on Linux.


Some additional dependencies are required on the Python intallation.

  • HDF5, LibArchive: sudo apt-get install libhdf5-dev libarchive-dev
  • Protobuf >=3: The following snippet running on your terminal will build and install protobuf-3.1.0 from source.
curl -L -o protobuf-v3.1.0.tar.gz
tar xvf protobuf-v3.1.0.tar.gz
cd protobuf-3.1.0
mkdir build && cd build
sudo make install


git clone
mkdir -p nnabla/build && cd nnabla/build

The following command will install the libraries, the command line executables and the include header files to your system.

sudo make install