Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.46 KB

installation.md

File metadata and controls

72 lines (49 loc) · 1.46 KB

Installation

Windows

Prerequisites

CMake

  1. Download the latest version of CMake from the official CMake website.
  2. Run the installer and follow the instruction. After installation, add CMake to the environment PATH.

Visual Studio

  1. Install Visual Studio with C++ workload. This includes the C++ compiler (MSVC) and the Windows SDK.

You can use MinGW instead of MSVC.

(Optional) Eigen

Please see the below

Build from sources

mkdir build
cd build
cmake -G "Visual Studio 16 2019" .. 
cmake --build . --config Release

Linux

Prerequisites

sudo apt install -y build-essential cmake

(Optional) Eigen

Eigen library is optional. If you want to use Eigen vector, install eigen library and just include header file before rbpodo header file. Detail installation guide can be found in this page.

sudo apt install -y wget
wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2
tar xvf eigen-3.4.0.tar.bz2
cd eigen-3.4.0
mkdir build 
cd build && cmake .. && sudo cmake --build . --target install

Build from sources

mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release .. 
make

Options

  • BUILD_EXAMPLES
  • BUILD_EIGEN_EXAMPLES

Install the binaries

cd build 
sudo make install