2020-05-20 13:10:53 -04:00
|
|
|
# Building OSRM for Windows
|
|
|
|
|
2022-10-02 14:55:59 -04:00
|
|
|
There is experimental support for building OSRM on Windows.
|
2020-05-20 13:10:53 -04:00
|
|
|
|
2022-10-02 14:55:59 -04:00
|
|
|
## Dependencies
|
2020-05-20 13:10:53 -04:00
|
|
|
|
2022-10-02 14:55:59 -04:00
|
|
|
You will need a modern Windows development stack (e.g. Visual Studio 17). The published binaries are built with
|
|
|
|
[Windows Server 2022](https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md) Github hosted runners.
|
2020-05-20 13:10:53 -04:00
|
|
|
|
2022-10-02 14:55:59 -04:00
|
|
|
Dependencies are managed via [Conan](https://conan.io/) and built with [CMake](https://cmake.org/).
|
2020-05-20 13:10:53 -04:00
|
|
|
|
2022-10-02 14:55:59 -04:00
|
|
|
## Building
|
2020-05-20 13:10:53 -04:00
|
|
|
|
2022-10-02 14:55:59 -04:00
|
|
|
```bat
|
|
|
|
cmake -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON -DCMAKE_BUILD_TYPE=%CONFIGURATION% -G "Visual Studio 17 2022" ..
|
2020-05-20 13:10:53 -04:00
|
|
|
|
2022-10-02 14:55:59 -04:00
|
|
|
msbuild OSRM.sln ^
|
|
|
|
/p:Configuration=%CONFIGURATION% ^
|
|
|
|
/p:Platform=x64 ^
|
|
|
|
/t:rebuild ^
|
|
|
|
/p:BuildInParallel=true ^
|
|
|
|
/m:%NUMBER_OF_PROCESSORS% ^
|
|
|
|
/toolsversion:Current ^
|
|
|
|
/clp:Verbosity=normal ^
|
|
|
|
/nologo
|
|
|
|
```
|
2020-05-20 13:10:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|