OpenSimulationInterface / open-simulation-interface

A generic interface for the environmental perception of automated driving functions in virtual scenarios.
Other
272 stars 127 forks source link

Enrich description of installation for C++ on Windows #527

Open max-rosin opened 3 years ago

max-rosin commented 3 years ago

Using vcpkg to properly build the required configurations of protobuf on Visual Studio (here VS 2017):

The CMAKE_TOOLCHAIN_FILE must point to your vcpkg directory, which in my example was parallel to the osi-sensor-model-packaging directory…

This might complain somewhat depending on cmake and compiler settings, but builds without problems (and should support release and debug builds out of the box).

_Originally posted by @pmai in https://github.com/OpenSimulationInterface/open-simulation-interface/pull/519#discussion_r648157494_

max-rosin commented 3 years ago
Helloezzi commented 2 years ago

I am very grateful for your help. @max-rosin

cd examples
mkdir build
cd build
cmake .. -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build .