ohchase / divert

Rust bindings for Recast Navigation.
https://crates.io/crates/divert
31 stars 10 forks source link

comiple failure #1

Closed chr1s78 closed 2 years ago

chr1s78 commented 2 years ago

hi, i catch an error like this:

   Compiling regex v1.6.0
   Compiling divert v0.3.0 (E:\wow\divert-master)
error: failed to run custom build command for `divert v0.3.0 (E:\wow\divert-master)`

Caused by:
  process didn't exit successfully: `E:\wow\divert-master\target\debug\build\divert-fda6f2f70278ca2b\build-script-build` (exit code: 1)
  --- stderr

  error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "recastnavigation/Detour/Include" "-W4" "-DDT_POLYREF64=1" "-FoE:\\wow\\divert-master\\target\\debug\\build\\divert-a36680083424e849\\out\\recastnavigation/Detour/Source/DetourAlloc.o" "-c" "recastnavigation/Detour/Source/DetourAlloc.cpp" with args "cl.exe" did not execute successfully (status code exit code: 2).

warning: build failed, waiting for other jobs to finish...

how do i fix this?

chr1s78 commented 2 years ago

i forgot to copy the recastnavigation folder, : (

ohchase commented 2 years ago

No worries, I'll add a how to build section; For anyone reading this issue and running into similar issue fix is when git cloning to also clone submodules. RecastNavigation is added as a submodule to this project so you need this additional flag to actually download RecastNavigation when cloning. git clone --recurse-submodules ...