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]
- Install osi using the following command:
cmake .. -G "Visual Studio 12 2013" -DCMAKE_INSTALL_PREFIX=C:/Libraries/open_simulation_interface
orcmake .. -G "Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX=C:/Libraries/open_simulation_interface