Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build manuals for windows server #7075

Open
urosjarc opened this issue Nov 22, 2024 · 0 comments
Open

Build manuals for windows server #7075

urosjarc opened this issue Nov 22, 2024 · 0 comments

Comments

@urosjarc
Copy link

urosjarc commented Nov 22, 2024

Prerequesits

  • Download and install Visual Studio Community Edition with C++ support
  • Download and install CMake
  • Download and install Git

Install vcpkg

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
vcpkg integrate install

Install vcpkg libraries

You have to install all boost libraries otherwise you get compilation errors at the end 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

Get osrm backend

cd ..
git clone https://github.com/Project-OSRM/osrm-backend.git
cd osrm-backend

Create build and configure cmake

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...

file(GENERATE
     OUTPUT
     ${PROJECT_BINARY_DIR}/libosrm.pc
     INPUT
     ${PROJECT_BINARY_DIR}/pkgconfig.configured)

Compile osrm

cmake --build . --config Release

Run osrm

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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant