Skip to content

Instantly share code, notes, and snippets.

@vibhoraggarwal
Last active June 22, 2020 13:40
Show Gist options
  • Save vibhoraggarwal/f62038a3920e49a7f953160a1d1435bd to your computer and use it in GitHub Desktop.
Save vibhoraggarwal/f62038a3920e49a7f953160a1d1435bd to your computer and use it in GitHub Desktop.

## On Windows

Install cmake (v3.7 or higher required):

Go to the cmake download page

Download and install cmake 3.8.0

Installing protobuf could be done by: vcpkg install protobuf protobuf:x64-windows Make sure that your system is not using proxy otherwise you have to mention environment variables HTTPS_PROXY and HTTP_PROXY

Installed protobuf subsets: protobuf::libprotoc protobuf::libprotobuf protobuf::libprotobuf-lite

Follow the procedure to build protobuf mentioned here: https://github.com/protocolbuffers/protobuf/blob/master/cmake/README.md

Prerequisites: zlib: could be installed from http://gnuwin32.sourceforge.net/packages/zlib.htm In case the zconf.h file tries to #include<unistd.h> replace the line with #include<io.h> io.h is a file that acts as a replacement for unistd.h in Visual Studio. [Reference: https://stackoverflow.com/questions/341817/is-there-a-replacement-for-unistd-h-for-windows-visual-c]

  1. Install osi using the following command: cmake .. -G "Visual Studio 12 2013" -DCMAKE_INSTALL_PREFIX=C:/Libraries/open_simulation_interface or cmake .. -G "Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX=C:/Libraries/open_simulation_interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment