Prerequisites
-
You have installed cmake as administrator.
-
You have installed protobuf as administrator.
Steps
-
Open a terminal as administrator.
-
Clone the Open Simulation repository.
git clone https://github.com/OpenSimulationInterface/open-simulation-interface.git -
Change into the repository directory.
cd open-simulation-interface -
Create a new directory for the build.
mkdir build -
Change into the new directory.
cd build -
Run cmake. To build a 64-bit target, add
Win64to the generator name. In this case, protobuf and protoc.exe must be in 64-bit mode too.cmake .. [-G <generator>] [-DCMAKE_INSTALL_PREFIX=<osi-install-directory>] -
Build and install OSI.
cmake --build . [--config Release] cmake --build . --target install