Skip to content

Windows Compilation

Jaif edited this page May 17, 2023 · 22 revisions

Note: as of April 2016 Windows builds may or may not work. See https://lists.openstreetmap.org/pipermail/osrm-talk/2016-May/001214.html

Ready to use Release binaries are available here

Currently Debug binaries are out of date.

If you plan to run the binaries on a machine without Visual Studio 2015 installed you need the latest Microsoft Visual C++ 2015 Redistributable (currently Update 3): https://www.microsoft.com/en-us/download/details.aspx?id=48145


To start compiling following software needs to be installed:

  1. Latest Visual Studio 2015 Update 3 (Community or better, MSVC full version 190024210) - earlier versions are not supported
  1. Git for Windows:
  1. CMake
  1. 7-Zip
  1. nodejs 4.x LTS (needed to run tests)

Use a stock command prompt, don't use a VS2015 command prompt.


  • Open a stock command prompt
  • Change to a folder of your choice
  • git clone https://github.com/Project-OSRM/osrm-backend.git
  • cd osrm-backend
  • build-local.bat

After a few minutes (depending on how powerful your machine is) you should end up with an archive named osrm_Release.zip that contains everything needed to run OSRM.

As mentioned above: If you plan to run the binaries on a machine without Visual Studio 2015 installed you need the latest Microsoft Visual C++ 2015 Redistributable (currently Update 3): https://www.microsoft.com/en-us/download/details.aspx?id=52982