2.3.2 Installing OSI for C++ on Linux

Prerequisites
Steps
  1. Open a terminal.

  2. Clone the Open Simulation repository.

    git clone https://github.com/OpenSimulationInterface/open-simulation-interface.git
  3. Switch to the repository directory.

    cd open-simulation-interface
  4. Create a new directory for the build.

    mkdir build
  5. Switch to the new directory.

    cd build
  6. Run cmake. To build a 32-bit target under 64-bit Linux, add -DCMAKE_CXX_FLAGS="-m32" to the cmake command. In this case, protobuf must be in 32-bit mode too.

    cmake ..
  7. Run make.

    make
  8. Install Open Simulation Interface.

    sudo make install