Skip to content

Latest commit

 

History

History
56 lines (52 loc) · 877 Bytes

installing_linux_cpp.adoc

File metadata and controls

56 lines (52 loc) · 877 Bytes

../_config.adoc = 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