git clone https://github.com/Microsoft/vcpkg.git cd vcpkg bootstrap-vcpkg.bat vcpkg integrate install
You have to install all boost libraries otherwise you get compilation errors at the end missing header files.
boost
missing header files
vcpkg install lua:x64-windows vcpkg install tbb:x64-windows vcpkg install bzip2:x64-windows vcpkg install libzip:x64-windows vcpkg install boost:x64-windows
cd .. git clone https://github.com/Project-OSRM/osrm-backend.git cd osrm-backend
mkdir build cd build cmake .. -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake ^ -G "Visual Studio 17 2022" -A x64 ^ -DENABLE_CCACHE=OFF
If cmake reports some issue regarding libosrm.pc you have to comment out in CMakeLists.txt this lines and restart cmake build again...
libosrm.pc
CMakeLists.txt
file(GENERATE OUTPUT ${PROJECT_BINARY_DIR}/libosrm.pc INPUT ${PROJECT_BINARY_DIR}/pkgconfig.configured)
cmake --build . --config Release
cd Release osrm-extract.exe germany-latest.osm.pbf -p ../../profiles/car.lua osrm-partition.exe germany-latest.osrm osrm-customize.exe germany-latest.osrm osrm-routed.exe --algorithm mld germany-latest.osrm
There was an error while loading. Please reload this page.